From 4cc00c6c40c26de9b1b994626cc8dc54cc10febc Mon Sep 17 00:00:00 2001 From: Wu Cheng-Han Date: Fri, 16 Sep 2016 22:29:13 +0800 Subject: [PATCH] Update to support French, Deutsch, Japanese and Spanish locales --- app.js | 2 +- public/views/index.ejs | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/app.js b/app.js index e0e86ff..683d313 100644 --- a/app.js +++ b/app.js @@ -94,7 +94,7 @@ app.use(helmet.hsts({ })); i18n.configure({ - locales: ['en', 'zh'], + locales: ['en', 'zh', 'fr', 'de', 'ja', 'es'], cookie: 'locale', directory: __dirname + '/locales' }); diff --git a/public/views/index.ejs b/public/views/index.ejs index 8c4cf10..719a51c 100644 --- a/public/views/index.ejs +++ b/public/views/index.ejs @@ -59,12 +59,12 @@ <% if(facebook || twitter || github || gitlab || dropbox || google) { %>
- +
<%= __('or') %> <% }%> - <%= __('New guest note') %> + <%= __('New guest note') %>

@@ -148,6 +148,10 @@