Fix localization order
diff --git a/dev/js/src/app/de.js b/dev/js/src/app/de.js
index 6576051..332ee07 100644
--- a/dev/js/src/app/de.js
+++ b/dev/js/src/app/de.js
@@ -1,27 +1,3 @@
-require(['init'], function () {
- var loc = KorAP.Locale;
- loc.OR = 'oder';
- loc.AND = 'und';
- // EMPTY, DELETE
-
- // Virtual collection:
- loc.VC_subTitle = 'Untertitel';
- loc.VC_title = 'Titel';
- loc.VC_pubDate = 'Veröffentlichungsdatum';
- loc.VC_pubPlace = 'Veröffentlichungsort';
- loc.VC_allCorpora = 'allen Korpora';
-
- // Date picker:
- loc.WDAY = ['Mo', 'Di', 'Mi', 'Do', 'Fr', 'Sa', 'So'];
- loc.MONTH = [
- 'Januar', 'Februar', 'März', 'April',
- 'Mai', 'Juni', 'Juli', 'August',
- 'September', 'Oktober', 'November',
- 'Dezember'
- ];
-
- // Match view
- loc.ADDTREE = 'Baumansicht hinzufügen';
- loc.SHOWINFO = 'Informationen';
- loc.CLOSE = 'Schließen';
-});
+window.KorAP = window.KorAP || {};
+KorAP.Locale = KorAP.Locale || {};
+require(['loc/de','init']);
diff --git a/dev/js/src/app/en.js b/dev/js/src/app/en.js
index c7a4e5c..e851239 100644
--- a/dev/js/src/app/en.js
+++ b/dev/js/src/app/en.js
@@ -1 +1,3 @@
+window.KorAP = window.KorAP || {};
+KorAP.Locale = KorAP.Locale || {};
require(['init']);
diff --git a/dev/js/src/loc/de.js b/dev/js/src/loc/de.js
new file mode 100644
index 0000000..afd1787
--- /dev/null
+++ b/dev/js/src/loc/de.js
@@ -0,0 +1,27 @@
+define(function () {
+ var loc = KorAP.Locale;
+ loc.OR = 'oder';
+ loc.AND = 'und';
+ // EMPTY, DELETE
+
+ // Virtual collection:
+ loc.VC_subTitle = 'Untertitel';
+ loc.VC_title = 'Titel';
+ loc.VC_pubDate = 'Veröffentlichungsdatum';
+ loc.VC_pubPlace = 'Veröffentlichungsort';
+ loc.VC_allCorpora = 'allen Korpora';
+
+ // Date picker:
+ loc.WDAY = ['Mo', 'Di', 'Mi', 'Do', 'Fr', 'Sa', 'So'];
+ loc.MONTH = [
+ 'Januar', 'Februar', 'März', 'April',
+ 'Mai', 'Juni', 'Juli', 'August',
+ 'September', 'Oktober', 'November',
+ 'Dezember'
+ ];
+
+ // Match view
+ loc.ADDTREE = 'Baumansicht hinzufügen';
+ loc.SHOWINFO = 'Informationen';
+ loc.CLOSE = 'Schließen';
+});
diff --git a/dev/js/src/util.js b/dev/js/src/util.js
index 9a1f884..7c2f474 100644
--- a/dev/js/src/util.js
+++ b/dev/js/src/util.js
@@ -1,5 +1,3 @@
-window.KorAP = window.KorAP || {};
-
// Don't let events bubble up
if (Event.halt === undefined) {
// Don't let events bubble up
@@ -38,7 +36,6 @@
define(function () {
KorAP.API = KorAP.API || {};
- KorAP.Locale = KorAP.Locale || {};
var loc = KorAP.Locale;
loc.OR = loc.OR || 'or';