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 @@
*/
(function (root, factory) {
define("locales", [
'jed',
define("locales", ['jquery', 'jed',
'af',
'de',
'en',
......@@ -20,10 +19,11 @@
'ja',
'nb',
'nl',
'text!pl',
'pt_BR',
'ru',
'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 = {
'af': af,
'de': de,
......@@ -37,6 +37,7 @@
'ja': ja,
'nb': nb,
'nl': nl,
'pl': new Jed($.parseJSON(pl)),
'pt-br': pt_BR,
'ru': ru,
'zh':zh
......
......@@ -70,6 +70,7 @@ require.config({
"ja": "locale/ja/LC_MESSAGES/ja",
"nb": "locale/nb/LC_MESSAGES/nb",
"nl": "locale/nl/LC_MESSAGES/nl",
"pl": "locale/pl/LC_MESSAGES/converse.json",
"pt_BR": "locale/pt_BR/LC_MESSAGES/pt_BR",
"ru": "locale/ru/LC_MESSAGES/ru",
"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