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.

24 lines
822 B

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