Marcus
Marcus

Reputation: 65

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

Upvotes: 0

Views: 619

Answers (1)

Ebrahim Pasbani
Ebrahim Pasbani

Reputation: 9406

All is ok but one point. The fallback language is en and you didn't define the default. Also you didn't define anywhere that the default lang is de.

Please do below in application route :

import Ember from 'ember';

export default Ember.Route.extend({
   i18n: Ember.inject.service(),

  beforeModel(){
    this.set('i18n.locale', 'de');
  }
});

Upvotes: 1

Related Questions