not really known
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
622 B

  1. var l10n_s;
  2. requirejs.config({
  3. baseUrl: "lib",
  4. paths: {
  5. activity: "../js"
  6. }
  7. });
  8. requirejs(["activity/activity"]);
  9. requirejs(["webL10n","sugar-web/env","moment-with-locales.min"], function(l10n, env, moment) {
  10. l10n_s = l10n; //global declaration of translate interface
  11. env.getEnvironment(function(err, environment) {
  12. var defaultLanguage = (typeof chrome != 'undefined' && chrome.app && chrome.app.runtime) ? chrome.i18n.getUILanguage() : navigator.language;
  13. var language = environment.user ? environment.user.language : defaultLanguage;
  14. l10n_s.language.code = language;
  15. moment.locale(language);
  16. });
  17. });