Questions tagged [ember-i18n]

Question regarding Internationalization for Ember

Internationalization for Ember.

Github page

44 questions
1
vote
1 answer

Emberjs ember-i18n Pluralization not working

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…
Arun
  • 21
  • 1
  • 6
1
vote
1 answer

How to set the i18n.locale from within an initializer

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',…
Gundon
  • 2,081
  • 6
  • 28
  • 46
1
vote
2 answers

ember-i18n - Internalization Support

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: { …
1
vote
1 answer

Application localization using late evaluation with properties

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:…
blueFast
  • 41,341
  • 63
  • 198
  • 344
1
vote
1 answer

Javascript (Ember) I18N for a block, not just a string

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…
pjmorse
  • 9,204
  • 9
  • 54
  • 124
1
vote
0 answers

how to notifyPropertyChange to rerender view in emberjs

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…
redshoghal
  • 63
  • 1
  • 4
1
vote
1 answer

Prevent addition of span tag

I have the following markup in a template:

{{t generic.title.edit}} ...

And this is rendered as:

Editar

blueFast
  • 41,341
  • 63
  • 198
  • 344
1
vote
2 answers

how to user action helper in a i18n key in emberjs

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)
Dinesh
  • 111
  • 9
0
votes
1 answer

How to translate strings used as mapping in ember by ember-i18n?

#/mapping/date.js import { translationMacro as t } from "ember-i18n"; export default { i18n: Ember.inject.service(), DateFilter: { today: "Today", yesterday: "Yesterday", thisWeek: "This Week", lastWeek: "Last Week", …
anshika24
  • 1
  • 2
0
votes
1 answer

Ember i18n - interpolation to call translations dynamically

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…
belgoros
  • 3,590
  • 7
  • 38
  • 76
0
votes
1 answer

Ember.js re-render links on locale change

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,…
0
votes
2 answers

i18n - How to use it in application.hbs?

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…
0
votes
1 answer

Use ember-intl along with ember-i18n

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 ?
0
votes
0 answers

How to get dynamics routes from URL with Ember?

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.:…
0
votes
1 answer

Ember-i18n Missing translation: it is not working with Ember Twiddle Example

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
Marcus
  • 65
  • 7