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