Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * The cFactory portal.
- *
- * This application processes the public portal for cFactory.
- *
- * @author THINFACTORY NV <info@thinfactory.com>
- * @copyright Copyright (c) THINFACTORY NV
- * @license https://www.thinfactory.com Proprietary / Closed Source
- */
- 'use strict';
- (function () {
- angular
- .module('cFactoryApp')
- .config(function ($translateProvider, config) {
- $translateProvider
- .useUrlLoader(config.CORE.apiUrl + config.API_LOCALIZATION + config.API_LOCALIZATION_KEYS, {
- queryParameter : 'lnCode'
- })
- // .useStaticFilesLoader({
- // prefix: '/data/localizations/',
- // suffix: '.json'
- // })
- //.useCustom
- //.use('ru-RU')
- //.preferredLanguage('ru-RU')
- //.fallbackLanguage('ru-RU')
- //.preferredLanguage('fr-BE')
- .fallbackLanguage('en-GB')
- .useSanitizeValueStrategy('escape');
- })
- // .run(function ($translate, config) {
- // $translate.$translateProvider
- // .useUrlLoader(config.CORE.apiUrl + config.API_LOCALIZATION + config.API_LOCALIZATION_KEYS, {
- // queryParameter : 'lnCode'
- // })
- // // .useStaticFilesLoader({
- // // prefix: '/data/localizations/',
- // // suffix: '.json'
- // // })
- // //.useCustom
- // //.use('ru-RU')
- // //.preferredLanguage('ru-RU')
- // //.fallbackLanguage('ru-RU')
- //
- // //.preferredLanguage('fr-BE')
- // .fallbackLanguage('en-GB')
- // .useSanitizeValueStrategy('escape');
- // });
- }());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement