this.get('intl').setLocale('en-us'); in addon
See original GitHub issueHi,
I managed to add ember-intl
to my addon. If the application does not use ember-intl
but uses my addon I like to set this.get(‘intl’).setLocale(‘en-us’) if locale is ‘’
Is there some Example or Doc on where and how I should do this.
Thanks
- Martin
Issue Analytics
- State:
- Created 6 years ago
- Comments:11 (6 by maintainers)
Top Results From Across the Web
setlocale - Manual - PHP
en_US.utf8. POSIX I had to install a finnish language pack with "sudo apt-get install language-pack-fi-base" Now the output for "locale -a" is: C...
Read more >Translations | Blockly - Google Developers
setLocale puts each key from the input object into Blockly.Msg . You can call it multiple times with distinct keys, but calling it...
Read more >locale — Internationalization services — Python 3.11.1 ...
Exception raised when the locale passed to setlocale() is not recognized. ... Get a string with the name of the character encoding used...
Read more >Storybook react-intl addon
This Storybook addon assumes your project is already set up with react-intl, and that it is properly configured and working.
Read more >API GetLocale - WoWWiki - Fandom
Locales · "frFR": French (France) · "deDE": German (Germany) · "enGB": English (Great Britain) if returned, can substitute 'enUS' for consistancy · "enUS":...
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
I would recommend not setting app state from within your addon (setting the app’s locale). I’d continue to recommend passing the locale attribute to each of the
t
helpers.Many thanks. Just tried and
2.29.1
solves it.