Parcourir la source

Add single_locale.js

JC Brand il y a 12 ans
Parent
commit
9501bad94c
1 fichiers modifiés avec 23 ajouts et 0 suppressions
  1. 23 0
      locale/single_locale.js

+ 23 - 0
locale/single_locale.js

@@ -0,0 +1,23 @@
+/*
+ * This file specifies a single language dependency (for English).
+ *
+ * Translations take up a lot of space and you are therefore advised to remove
+ * from here any languages that you don't need.
+ */
+
+(function (root, factory) {
+    require.config({
+        paths: {
+            "jed": "Libraries/jed",
+            "en": "locale/en/LC_MESSAGES/en"
+        }
+    });
+
+    define("locales", [
+        'jed',
+        'en'
+        ], function (jed, en) {
+            root.locales = {};
+            root.locales.en = en;
+        });
+})(this);