Skip to content

Instantly share code, notes, and snippets.

@jonpitch
Created August 29, 2016 00:48
Show Gist options
  • Save jonpitch/1cc40b6f1fc4b7790ac17b6bdc08c959 to your computer and use it in GitHub Desktop.
Save jonpitch/1cc40b6f1fc4b7790ac17b6bdc08c959 to your computer and use it in GitHub Desktop.
ember-i18n-json
// app/locales/en/translations.json
{
"app": {
"hello": "Hello"
}
}
// app/locales/es/translations.json
{
"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