i18n pluralization support

This commit is contained in:
jelhan 2014-10-21 02:29:54 +02:00
parent dbda4b72d2
commit ee98dec2e3
3 changed files with 3 additions and 1 deletions

View file

@ -59,6 +59,7 @@
<script src="/vendor/ember-easyForm/index.js"></script>
<script src="/vendor/cldr/plurals.js"></script>
<script src="/vendor/ember-i18n/lib/i18n.js"></script>
<script src="/vendor/ember-i18n/lib/i18n-plurals.js"></script>
<script src="/vendor/sjcl/sjcl.js"></script>
<script src="/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>

View file

@ -28,6 +28,7 @@ export default {
Ember.FEATURES.I18N_TRANSLATE_HELPER_SPAN = false;
Ember.ENV.I18N_COMPILE_WITHOUT_HANDLEBARS = true;
Ember.I18n.translations = translations[language];
Ember.I18n.locale = language;
// inject into controller
var languageStorage = Ember.Object.extend({

View file

@ -21,7 +21,7 @@
"floatThead": "~1.2.8",
"webshim": "~1.15.3",
"modernizr": "~2.8.3",
"ember-i18n": "~2.2.2",
"ember-i18n": "~2.9.0",
"cldr": "~1.0.2"
}
}