aboutsummaryrefslogtreecommitdiff
path: root/juick-www/src
diff options
context:
space:
mode:
authorGravatar KillyMXI2017-07-16 03:40:07 +0300
committerGravatar KillyMXI2017-07-17 15:07:27 +0300
commitfef044fc57d223d8923db9b68d2c74cbf20e77bf (patch)
treec3c4d924532fbeec936e183d545cc55bc1cd9fde /juick-www/src
parent3c1fb681903cb3ed5c1a02d8ce67ed1b376771ef (diff)
www: eslint-plugin-only-ascii
force i18n in js
Diffstat (limited to 'juick-www/src')
-rw-r--r--juick-www/src/main/static/scripts.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/juick-www/src/main/static/scripts.js b/juick-www/src/main/static/scripts.js
index a5da0849..357b1c30 100644
--- a/juick-www/src/main/static/scripts.js
+++ b/juick-www/src/main/static/scripts.js
@@ -32,6 +32,7 @@ if (!('remove' in Element.prototype)) { // Firefox <23
NodeList.prototype.forEach = Array.prototype.forEach;
HTMLCollection.prototype.forEach = Array.prototype.forEach;
+/* eslint-disable only-ascii/only-ascii */
const translations = {
'en': {
'message.inReplyTo': 'in reply to',
@@ -66,6 +67,7 @@ const translations = {
'error.error': 'Ошибка'
}
};
+/* eslint-enable only-ascii/only-ascii */
function getLang() {
return (window.navigator.languages && window.navigator.languages[0])