i18next language resources - keys displayed
See original GitHub issueHey!
I’ve got a question regarding the i18next language resources app.t('key')
:
app.tell(app.t('WELCOME'));
const languageResources = { 'de-DE': { translation: { WELCOME: 'Willkommen', }, }, };
From Google Action Simulator:
output: ‘Willkommen’
From Dialogflow Debugging
output: ‘WELCOME’
What’s the reason for this behaviour? I would expect that the output is the same. Thanks for your great work!
Best regards
Issue Analytics
- State:
- Created 6 years ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
Essentials - i18next documentation
Accessing keys in different namespaces ... Namespaces are a feature in i18next internationalization framework which allows you to separate translations that get ...
Read more >Can I get full list of resource keys · Issue #1187 · i18next/react ...
And I would iterate through all the supported languages in my app. Firstly I need the full list of resource keys.
Read more >i18next - features
If a resource key isn't resolvable (en-US -> en -> fallbackLng) than normally the key would ... Hint: i18next provides the functionality for...
Read more >i18next Displayed key instead of value - Stack Overflow
if you don't do that, your resources will not be loaded, and translation values will fallback to their respective keys (see the source...
Read more >A Guide to React Localization with i18next | Phrase
Resource » If you want to start at this point and just focus on the i18n ... to our app—and to show her...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
That’s weird. Shouldn’t be a problem with the speech builder. Could you add an Englisch locale to your language resources? What’s the output for app.getLocale() ?
update: found the issue, the problem was the wrong locale send from within Dialogflow Console / Web Demo. Dialogflow is setting the language code to
en-US
instead ofde-DE
=> added the translation foren-US
and now it works.Thanks for your help!