aboutsummaryrefslogtreecommitdiff
path: root/web/app/store/Languages.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/app/store/Languages.js')
-rw-r--r--web/app/store/Languages.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/web/app/store/Languages.js b/web/app/store/Languages.js
index 97a581805..360508fd1 100644
--- a/web/app/store/Languages.js
+++ b/web/app/store/Languages.js
@@ -17,13 +17,14 @@
Ext.define('Traccar.store.Languages', {
extend: 'Ext.data.Store',
fields: ['code', 'name'],
+
data: function() {
var data = [];
for (var code in availableLanguages) {
if (availableLanguages.hasOwnProperty(code)) {
data.push({
- 'code': code,
- 'name': availableLanguages[code].name
+ code: code,
+ name: availableLanguages[code].name
});
}
}