I am new to ember, and ember-cli and I'm still learning where everything goes. I'm trying to add multilingual support with the ember-i18n module.
I have the dependencies installed with bower
bower install cldr ember-i18n --save
And I've got my…
I use the ember-i18n library a lot and sometimes I want to output a link in a translation.
Given this example:
{{ t readmore link=(link-to 'top posts' 'posts') }}
my translation is Read more on the {{ link }} page.
But the output is not as I…
ember-i18n readme file says:
if you haven't precompiled your translations, you'll need to include
the full Handlebars, not just handlebars-runtime.js in your
application.
Problem is that even using precompiled templates, once we use function…
If I'm using an Ember.js built in helper input
{{input value=query class="form-input" placeholder="Search"}}
I want to replace the placeholder string "Search" with a translated version of that string.
Normally, if I wasn't already using the input…
I am trying to modify the way ember-i18n localizations are loaded. What I want to do is have the localizations in a separate file from the main app javascript file.
Ideally, the structure would remain the same as now. So I would have…
First of all, ember's component helper doesn't help in this case. That would only help if I knew how many components I needed to render, and in what order.
I need to be able to render components based on a string like:
{{user}} has made a bid of…
In my customer controller I have defined some constant arrays that are used for populating select input (dropdown) options.
import Ember from 'ember';
export default Ember.Controller.extend({
occupations: [
{code: 'student', name:…
I was wondering how I could pass a link into to {{t}} helper. I am using v3.0.1 of Ember i18n at the moment.
Obviously you cannot pass a link helper into a t helper (something like
{{ t "some-translation-string" link={{#link-to 'page'…
I need to rerender whole page application after language has switched. I don't like to use observers for it because of performance issues.
Language switch is done by a Ember.View. I tried to rerender parentView after changing Ember.I18n.translations…
I'm currently implementing multiple languages into a web app using ember-i18n and am looking for a way in which visitors and users can choose which language they want at any time.
I'm following a tutorial found here, creating a drop down menu which…
i have the following Problem with ember-i18n:
Error: Attempting to inject an unknown injection: 'service:i18n'
at Registry.validateInjections (ember.debug.js:2303)
at ember.debug.js:1538
at runInDebug (ember.debug.js:5813)
at Object.runInDebug…
Is there a way to use i18n in Mixin. I'd like to create Mixins as configurations for my fields, and I need to translate labels, but as far as I've read https://github.com/jamesarosen/ember-i18n/wiki/Doc:-i18n-Service I don't see an opportunity to…
I'm trying to use the ember addon ember-i18n, i already read all the documentation, but i just can't figure out why is not working.
I have already installed the addon and generated three locations: en-us, pt-BR and es and configure following the…
I tried first something like this in my application controller:
init123: function() {
var locale;
if (this.session.get('lang') === null || this.session.get('lang') === undefined)
locale = ENV.i18n.defaultLocale;
else
locale =…