
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
ember-cli-i18n
Advanced tools
Simple Internationalization support for ember-cli apps.
npm install ember-cli-i18n --save-dev
In your app's config/environment.js
you'll need to set
ENV.APP.defaultLocale
to a country code:
var ENV = {
APP: {
defaultLocale: 'en'
}
};
Generate a new locale file:
ember g locale en
The file will be added to `app/locales'
app/
└── locales
└── en.js
The content export a single POJO:
export default {
home: {
title: 'Welcome'
}
};
You can add keys for interpolation
export default {
age: 'You are %@1 years old.'
};
The rules for interpolation follow the same from
[Ember.String.fmt](http://emberjs.com/api/classes/Ember.String.html#method_fmt)
You can access the translations in your app with the t
helper:
{{t 'home.title'}}
Computed properties for the path are also supported:
{{t age}}
If the value has interpolation keys you can pass those values:
{{t colors colorOne colorTwo}}
We are very thankful for the many contributors
This library follows Semantic Versioning
Please do! We are always looking to improve this gem. Please see our Contribution Guidelines on how to properly submit issues and pull requests.
DockYard, Inc © 2014
FAQs
Simple Internationalization support for ember-cli apps.
The npm package ember-cli-i18n receives a total of 1 weekly downloads. As such, ember-cli-i18n popularity was classified as not popular.
We found that ember-cli-i18n demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.