summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWu Cheng-Han2016-10-02 10:34:10 +0800
committerWu Cheng-Han2016-10-02 10:34:10 +0800
commitaaf32dc4bfab6d4e78fd1765bbbd4c828a9e8809 (patch)
tree8d4c9496b2642ff71fedbc2e14512b52bab207db
parent705352db754e9fa88ecf795fcaf3a362575bcab4 (diff)
Update to support Greek and Portuguese locales
-rw-r--r--app.js2
-rw-r--r--locales/el.json (renamed from locales/gr.json)4
-rw-r--r--locales/pt.json (renamed from locales/pt-BR.json)0
-rw-r--r--public/views/index.ejs2
4 files changed, 4 insertions, 4 deletions
diff --git a/app.js b/app.js
index 86fc28b3..e18a2f0b 100644
--- a/app.js
+++ b/app.js
@@ -94,7 +94,7 @@ app.use(helmet.hsts({
}));
i18n.configure({
- locales: ['en', 'zh', 'fr', 'de', 'ja', 'es'],
+ locales: ['en', 'zh', 'fr', 'de', 'ja', 'es', 'el', 'pt'],
cookie: 'locale',
directory: __dirname + '/locales'
});
diff --git a/locales/gr.json b/locales/el.json
index 295e1d31..ea68aac3 100644
--- a/locales/gr.json
+++ b/locales/el.json
@@ -101,6 +101,4 @@
"OR": "Ή",
"Export to Snippet": "Eξαγωγή σε Snippet",
"Select Visibility Level": "Επιλέξτε επίπεδο ορατότητας"
-}
-
-// el-GR Greek - Greece 0x0408 ELL \ No newline at end of file
+} \ No newline at end of file
diff --git a/locales/pt-BR.json b/locales/pt.json
index be998efe..be998efe 100644
--- a/locales/pt-BR.json
+++ b/locales/pt.json
diff --git a/public/views/index.ejs b/public/views/index.ejs
index 719a51c1..f5f848e6 100644
--- a/public/views/index.ejs
+++ b/public/views/index.ejs
@@ -152,6 +152,8 @@
<option value="de">Deutsch</option>
<option value="ja">日本語</option>
<option value="es">Español</option>
+ <option value="el">Ελληνικά</option>
+ <option value="pt">Português</option>
</select>
</div>
</div>