-
-
Notifications
You must be signed in to change notification settings - Fork 121
Add support for .intentDefinition files #207
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@NMAC427 I just saw this in my GitHub inbox, sorry for not checking it earlier. Didn't know you actually provided an implementation here. Code looks good on first glance, but could you also please add a test which will ensure this continues to work even when I decide to do some refactoring later? Also, could you please update the README accordingly? Thanks! 👍 |
I just had another look and I'm happy to merge this, but I'd really like to have at least one simple test and a simple addition to the README that explains how this can be turned on or off. If possible, I think we should make this opt-in with the current version so users with an already setup configuration don't get confused by a new bahavior. @NMAC427 @patricks @RSickenberg Would any of you be up to completing this? |
I tried this PR, it works, but noticed that it doesn't pick up my translations from Base. Just creates a list of keys with an empty target. I'm not sure if this is convenient. I would say that it is more correct to copy the translation itself by key I.e. for example, for input: <array>
<dict>
<key>INIntentParameterPromptDialogCustom</key>
<true/>
<key>INIntentParameterPromptDialogFormatString</key>
<string>Hostname ${hostName}</string>
<key>INIntentParameterPromptDialogFormatStringID</key>
<string>n31mnR</string>
<key>INIntentParameterPromptDialogType</key>
<string>Primary</string>
</dict>
</array> In
Instead of:
|
@somenkovnikita I honestly have near to no knowledge about intent files and their translation format, so I'm the wrong person to ask. But I'd be happy to review & merge any changes to BartyCrouch as long as they are related to translations (this PR certainly is), have some tests and will not change the behavior for anyone who already has a BartyCrouch configuraton setup (as this could lead to confusion and would require a breaking change update). Feel free to fork @NMAC427's PR and make adjustments as you think they are right. I'm dependent on the Community on this topic as I don't have the time to learn and improve stuff related to this topic myself anytime soon. |
I can surely test for some intent definitions files since I use them for https://teslacompanion.app/. Just tell me what can I do to help! @Jeehut @NMAC427 @somenkovnikita |
I used this version now for a few translations, it worked without any problems. But it would be nice, if it also could add a comment with the base translation. Like the storyboard translation does. |
@RSickenberg @patricks I already mentioned exactly what is needed to get this merged, let me put it in a list form:
Once these are provided, I'll merge right away and make a new release. Thank you for your help. |
09bb412
to
a436268
Compare
@patricks @RSickenberg @somenkovnikita @NMAC427 So if you can help me understand why it didn't work for me or maybe even help fixing the issue, I would be very happy. I've rebased this PR and created a subsequent one in #241. Gonna close this, please let's continue the discussion in #241. Here's the test intent structure where this code didn't work for me, maybe it's related to the This comment was written during my regular Open Source live stream on Twitch. Follow me there to support my work! |
Fixes #151