Commit d22ab21b authored by JC Brand's avatar JC Brand

Proof of work. Load JSON file directly

instead of having to create a .js file with translations.
parent ba09fa1f
...@@ -6,8 +6,7 @@ ...@@ -6,8 +6,7 @@
*/ */
(function (root, factory) { (function (root, factory) {
define("locales", [ define("locales", ['jquery', 'jed',
'jed',
'af', 'af',
'de', 'de',
'en', 'en',
...@@ -20,10 +19,11 @@ ...@@ -20,10 +19,11 @@
'ja', 'ja',
'nb', 'nb',
'nl', 'nl',
'text!pl',
'pt_BR', 'pt_BR',
'ru', 'ru',
'zh' 'zh'
], function (jed, af, de, en, es, fr, he, hu, id, it, ja, nb, nl, pt_BR, ru, zh) { ], function ($, Jed, af, de, en, es, fr, he, hu, id, it, ja, nb, nl, pl, pt_BR, ru, zh) {
root.locales = { root.locales = {
'af': af, 'af': af,
'de': de, 'de': de,
...@@ -37,6 +37,7 @@ ...@@ -37,6 +37,7 @@
'ja': ja, 'ja': ja,
'nb': nb, 'nb': nb,
'nl': nl, 'nl': nl,
'pl': new Jed($.parseJSON(pl)),
'pt-br': pt_BR, 'pt-br': pt_BR,
'ru': ru, 'ru': ru,
'zh':zh 'zh':zh
......
...@@ -70,6 +70,7 @@ require.config({ ...@@ -70,6 +70,7 @@ require.config({
"ja": "locale/ja/LC_MESSAGES/ja", "ja": "locale/ja/LC_MESSAGES/ja",
"nb": "locale/nb/LC_MESSAGES/nb", "nb": "locale/nb/LC_MESSAGES/nb",
"nl": "locale/nl/LC_MESSAGES/nl", "nl": "locale/nl/LC_MESSAGES/nl",
"pl": "locale/pl/LC_MESSAGES/converse.json",
"pt_BR": "locale/pt_BR/LC_MESSAGES/pt_BR", "pt_BR": "locale/pt_BR/LC_MESSAGES/pt_BR",
"ru": "locale/ru/LC_MESSAGES/ru", "ru": "locale/ru/LC_MESSAGES/ru",
"zh": "locale/zh/LC_MESSAGES/zh", "zh": "locale/zh/LC_MESSAGES/zh",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment