Skip to content

Instantly share code, notes, and snippets.

@jonpitch
Created August 29, 2016 00:38
Show Gist options
  • Save jonpitch/b997c88d4debee13897c34f93c6cf874 to your computer and use it in GitHub Desktop.
Save jonpitch/b997c88d4debee13897c34f93c6cf874 to your computer and use it in GitHub Desktop.
ember-i18n
// app/locales/en/translations.js
export default {
app: {
hello: 'Hello'
}
}
// app/locales/es/translations.js
export default {
app: {
hello: 'Hola'
}
}
// app/templates/whatever.hbs
<p>{{t "app.hello"}}</p>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment