Skip to content

Instantly share code, notes, and snippets.

View buruzaemon's full-sized avatar

Brooke M. Fujita buruzaemon

View GitHub Profile
@arkadiyk
arkadiyk / Simple-I18n-for-Ember-app.md
Last active November 17, 2021 05:45
Quick'n'dirty i18n for Ember application. Allows to switch locales dynamically. Uses `i18n-js` library. Adds handlebars `t` helper and also attribute bindings `placeholderTranslation` to text input views and `promptTranslation` to select view.

Examples:

Literals:

{{t 'user.last_name'}}
{{t 'user.email' count=1}}

Placeholders: