From aaf32dc4bfab6d4e78fd1765bbbd4c828a9e8809 Mon Sep 17 00:00:00 2001 From: Wu Cheng-Han Date: Sun, 2 Oct 2016 10:34:10 +0800 Subject: [PATCH] Update to support Greek and Portuguese locales --- app.js | 2 +- locales/{gr.json => el.json} | 4 +--- locales/{pt-BR.json => pt.json} | 0 public/views/index.ejs | 2 ++ 4 files changed, 4 insertions(+), 4 deletions(-) rename locales/{gr.json => el.json} (99%) rename locales/{pt-BR.json => pt.json} (100%) diff --git a/app.js b/app.js index 86fc28b..e18a2f0 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 similarity index 99% rename from locales/gr.json rename to locales/el.json index 295e1d3..ea68aac 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 similarity index 100% rename from locales/pt-BR.json rename to locales/pt.json diff --git a/public/views/index.ejs b/public/views/index.ejs index 719a51c..f5f848e 100644 --- a/public/views/index.ejs +++ b/public/views/index.ejs @@ -152,6 +152,8 @@ + +