Skip to content

ember-i18next v0.3.0

Compare
Choose a tag to compare
@heathharrelson heathharrelson released this 09 Jun 15:58
· 359 commits to master since this release

Adds hooks that run around initialization of the i18next library. Any registered actions will be run when the i18next library is initialized as a result of a call to initLibraryAsyc or changing the locale.

To register a function to run before the i18next library is initialized, use the i18n service's registerPreInitAction method. Similarly, to register a function to run after the i18next library is initialized, use the registerPostInitAction method. Pre- and post-init actions can be unregistered using the unregisterPreInitAction / unregisterPostInitAction methods.

See the README for details and examples.