Commit 1fa11d01 authored by JC Brand's avatar JC Brand

Remove dependency on AMD/require.js. Updates #9

parent 527c96af
...@@ -3,6 +3,7 @@ Changelog ...@@ -3,6 +3,7 @@ Changelog
0.5 (Unreleased) 0.5 (Unreleased)
---------------- ----------------
- #9 Remove dependency on AMD/require.js [jcbrand]
- #22 Fixed compare operator in strophe.muc [sonata82] - #22 Fixed compare operator in strophe.muc [sonata82]
- #23 Add Italian translations [ctrlaltca] - #23 Add Italian translations [ctrlaltca]
- #24 Add Spanish translations [macagua] - #24 Add Spanish translations [macagua]
......
(function (root, factory) { (function (root, factory) {
define("af", ['jed'], function () {
var af = new Jed({ var af = new Jed({
"domain": "converse", "domain": "converse",
"locale_data": { "locale_data": {
...@@ -452,8 +451,16 @@ ...@@ -452,8 +451,16 @@
} }
} }
}); });
if (typeof define === 'function' && define.amd) {
define("af", ['jed'], function () {
return factory(af); return factory(af);
}); });
} else {
if (!window.locales) {
window.locales = {};
}
window.locales.af = af;
}
}(this, function (af) { }(this, function (af) {
return af; return af;
})); }));
(function (root, factory) { (function (root, factory) {
define("de", ['jed'], function () {
var de = new Jed({ var de = new Jed({
"domain": "converse", "domain": "converse",
"locale_data": { "locale_data": {
...@@ -452,8 +451,16 @@ ...@@ -452,8 +451,16 @@
} }
} }
}); });
if (typeof define === 'function' && define.amd) {
define("de", ['jed'], function () {
return factory(de); return factory(de);
}); });
} else {
if (!window.locales) {
window.locales = {};
}
window.locales.de = de;
}
}(this, function (de) { }(this, function (de) {
return de; return de;
})); }));
(function (root, factory) { (function (root, factory) {
define("en", ['jed'], function () {
var en = new Jed({ var en = new Jed({
"domain": "converse", "domain": "converse",
"locale_data": { "locale_data": {
...@@ -12,8 +11,16 @@ ...@@ -12,8 +11,16 @@
} }
} }
}); });
if (typeof define === 'function' && define.amd) {
define("en", ['jed'], function () {
return factory(en); return factory(en);
}); });
} else {
if (!window.locales) {
window.locales = {};
}
window.locales.en = en;
}
}(this, function (en) { }(this, function (en) {
return en; return en;
})); }));
(function (root, factory) { (function (root, factory) {
define("es", ['jed'], function () { var es = new Jed({
var de = new Jed({
"domain": "converse", "domain": "converse",
"locale_data": { "locale_data": {
"converse": { "converse": {
...@@ -452,8 +451,16 @@ ...@@ -452,8 +451,16 @@
} }
} }
}); });
return factory(de); if (typeof define === 'function' && define.amd) {
define("es", ['jed'], function () {
return factory(es);
}); });
}(this, function (de) { } else {
return de; if (!window.locales) {
window.locales = {};
}
window.locales.es = es;
}
}(this, function (es) {
return es;
})); }));
(function (root, factory) { (function (root, factory) {
define("it", ['jed'], function () {
var it = new Jed({ var it = new Jed({
"domain": "converse", "domain": "converse",
"locale_data": { "locale_data": {
...@@ -463,8 +462,16 @@ ...@@ -463,8 +462,16 @@
} }
} }
}); });
if (typeof define === 'function' && define.amd) {
define("it", ['jed'], function () {
return factory(it); return factory(it);
}); });
} else {
if (!window.locales) {
window.locales = {};
}
window.locales.it = it;
}
}(this, function (it) { }(this, function (it) {
return it; return it;
})); }));
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