i have the following in my en/transaltion.js
'AllDogs': {
'Dogs' :{
'zero': 'ALL DOGS, ',
'one': '1 DOG SELECTED',
'other': '{{count}} DOG SELECTED'
}}
hbs has the following
{{t AllDogs.Dogs count=filteredCount…
I would like to set 'i18n.locale' from within an initializer in EmberJS.
I am using 1.12 via Ember-CLI with ember-i18n.
I tried this
import Ember from 'ember';
export function initialize(container, application) {
Ember.set('i18n.locale',…
I am currently using jamesarosen/ember-i18n for internalization support on my ember 1.5.1 app.
I have two languages. English and French.
Em.I18n.translations = {
en: {
animal: {
cat: 'cat',
dog: 'dog'
}
},
fr: {
…
I have a bunch of controllers, with some properties generated with a translation library:
App.CallsStatusTotalsPerHourChartController = Ember.ArrayController.extend({
title: Ember.I18n.t('dashboard.calls-per-hour.title'),
subTitle:…
We're using ember-i18n to do i18n in our Ember app, and so far it's been fine. We've got a bunch of keys for strings like "Cancel" and "Save" and "Please don't do that", but I'm not sure if string-based i18n is the right way to approach the section…
I need to rerender my main application view when app language change. I'm using ember-i18n that not support observing so i do some work to update view when language and lang property change. i switch lang in following action in my ApplicationRoute…
How to use action helper in a i18n key. For example, the i18n key is
Please click here to display the list.
How to translate this properly with ember runtime(i.e handlebars uncompiled version)
Is it possible to call a translation dynamically using interpolation in a template? I'd like to get something like that from this version:
to the below one using…
My application uses the ember-i18n addon. For SEO purposes, I wanted to put a /[lang-code]/ in the URL.
When changing the language, history.pushState can change the URL and its alright, but the links on the page do not change for the new language,…
In which route/component should I inject the "i18n" service for it to be used in application.hbs?
I'm trying to use it in other HBS files, and if I inject "i18n" into the route/component - I'm able to use it.
But it's just not working in…
I am using ember-i18n for translation. I installed ember-intl for formatting date in the application. Both addons have same helper {{t 'hello.world'}}. How could I use ember-i18n for translation and ember-intl for date formatting alone ?
How can I get the current router name in Ember with i18n?
I'm trying to make an app with some langs and I need send the user to route coming from the URL.
The routes are dynamic (see the Twiddle) and I can't get the correct route.
Ex.:…
i don't know why, but can't get the addon Ember-i18n working, what do i false?
you can see my Ember Twiddle under https://canary.ember-twiddle.com/736ba26820e429cd683a5eb54416996b?openFiles=routes.application.js%2C