How to use the ember-intl/models/locale.extend function in ember-intl

To help you get started, we’ve selected a few ember-intl examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ember-intl / ember-intl / tests / dummy / app / locales / en-us.js View on Github external
import Locale from 'ember-intl/models/locale';

export default Locale.extend({
    messages: {
        product: {
            info: '{product} will cost {price, number, EUR} if ordered by {deadline, date, time}',
            html: {
                info: '<strong>{product}</strong> will cost <em>{price, number, EUR}</em> if ordered by {deadline, date, time}'
            },
            title: 'Hello world!'
        }
    }
});
github ember-intl / ember-intl / tests / dummy / app / locales / es.js View on Github external
import Locale from 'ember-intl/models/locale';

export default Locale.extend({
    messages: {
        product: {
            title: 'Hola mundo'
        }
    }
});
github ember-intl / ember-intl / blueprints / ember-intl / files / app / locales / en.js View on Github external
import Locale from 'ember-intl/models/locale';

export default Locale.extend({
  locale: 'en',
  messages: {
    product: {
      info: '{product} will cost {price, number, EUR} if ordered by {deadline, date, time}',
      html: {
        info: '<strong>{product}</strong> will cost <em>{price, number, EUR}</em> if ordered by {deadline, date, time}'
      }
    }
  }
});