summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/core
diff options
context:
space:
mode:
authorMartin Trigaux <mat@odoo.com>2019-08-07 10:09:09 +0000
committerMartin Trigaux <mat@odoo.com>2019-08-13 14:12:17 +0000
commitbdec8efabf4b77cf75aec83cc96d01384f6c978b (patch)
tree748adc84372b1541a3d079b207147cba7dac3be0 /addons/web/static/src/js/core
parent2347b84c66b1d6519f5be4689082da22bfc624f6 (diff)
[ADD] web: add the language code in the translation widget
The planet icon is not very clear for translation feature. Replace it with the code of the current language. Task-id: 2028152
Diffstat (limited to 'addons/web/static/src/js/core')
-rw-r--r--addons/web/static/src/js/core/translation.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/web/static/src/js/core/translation.js b/addons/web/static/src/js/core/translation.js
index 416ea9130d2..5335f4716a7 100644
--- a/addons/web/static/src/js/core/translation.js
+++ b/addons/web/static/src/js/core/translation.js
@@ -13,7 +13,8 @@ var TranslationDataBase = Class.extend(/** @lends instance.TranslationDataBase#
"time_format": '%H:%M:%S',
"grouping": [],
"decimal_point": ".",
- "thousands_sep": ","};
+ "thousands_sep": ",",
+ "code": "en_US"};
},
set_bundle: function(translation_bundle) {
var self = this;