Advertisement
Guest User

Untitled

a guest
Feb 21st, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.60 KB | None | 0 0
  1. /**
  2. * The cFactory portal.
  3. *
  4. * This application processes the public portal for cFactory.
  5. *
  6. * @author THINFACTORY NV <info@thinfactory.com>
  7. * @copyright Copyright (c) THINFACTORY NV
  8. * @license https://www.thinfactory.com Proprietary / Closed Source
  9. */
  10.  
  11. 'use strict';
  12.  
  13. (function () {
  14. angular
  15. .module('cFactoryApp')
  16. .config(function ($translateProvider, config) {
  17. $translateProvider
  18. .useUrlLoader(config.CORE.apiUrl + config.API_LOCALIZATION + config.API_LOCALIZATION_KEYS, {
  19. queryParameter : 'lnCode'
  20. })
  21. // .useStaticFilesLoader({
  22. // prefix: '/data/localizations/',
  23. // suffix: '.json'
  24. // })
  25. //.useCustom
  26. //.use('ru-RU')
  27. //.preferredLanguage('ru-RU')
  28. //.fallbackLanguage('ru-RU')
  29.  
  30. //.preferredLanguage('fr-BE')
  31. .fallbackLanguage('en-GB')
  32. .useSanitizeValueStrategy('escape');
  33. })
  34. // .run(function ($translate, config) {
  35. // $translate.$translateProvider
  36. // .useUrlLoader(config.CORE.apiUrl + config.API_LOCALIZATION + config.API_LOCALIZATION_KEYS, {
  37. // queryParameter : 'lnCode'
  38. // })
  39. // // .useStaticFilesLoader({
  40. // // prefix: '/data/localizations/',
  41. // // suffix: '.json'
  42. // // })
  43. // //.useCustom
  44. // //.use('ru-RU')
  45. // //.preferredLanguage('ru-RU')
  46. // //.fallbackLanguage('ru-RU')
  47. //
  48. // //.preferredLanguage('fr-BE')
  49. // .fallbackLanguage('en-GB')
  50. // .useSanitizeValueStrategy('escape');
  51. // });
  52. }());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement