From 7123d8d22b4a22810e10508b619cb908183d198f Mon Sep 17 00:00:00 2001 From: yuriy0803 <68668177+yuriy0803@users.noreply.github.com> Date: Sat, 27 Feb 2021 23:18:17 +0100 Subject: [PATCH] Create ember-intl.js --- www/config/ember-intl.js | 53 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 www/config/ember-intl.js diff --git a/www/config/ember-intl.js b/www/config/ember-intl.js new file mode 100644 index 0000000..5d3171f --- /dev/null +++ b/www/config/ember-intl.js @@ -0,0 +1,53 @@ +/*jshint node:true*/ + +module.exports = function(environment) { + return { + /** + * The locales that are application supports. + * + * This is optional and is automatically set if project stores translations + * where ember-intl is able to look them up (/translations/). + * + * If the project relies on side-loading translations, then you must explicitly + * list out the locales. i.e: ['en-us', 'en-gb', 'fr-fr'] + * + * @property locales + * @type {Array?} + * @default "null" + */ + locales: null, + + /** + * baseLocale is used to determine if translation keys are missing from other locales. + * This is property is optional, and if you rely on sideloading translations then + * this should be null + * + * @property baseLocale + * @type {String?} + * @default "null" + */ + baseLocale: null, + + /** + * disablePolyfill prevents the polyfill from being bundled in the asset folder of the build + * + * @property disablePolyfill + * @type {Boolean} + * @default "false" + */ + disablePolyfill: false, + + /** + * prevents the translations from being bundled with the application code. + * This enables asynchronously loading the translations for the active locale + * by fetching them from the asset folder of the build. + * + * See: https://github.com/jasonmit/ember-intl/wiki/Asynchronously-loading-translations + * + * @property publicOnly + * @type {Boolean} + * @default "false" + */ + publicOnly: false + }; +};