diff options
author | Wu Cheng-Han | 2016-09-16 22:29:13 +0800 |
---|---|---|
committer | Wu Cheng-Han | 2016-09-16 22:29:13 +0800 |
commit | 4cc00c6c40c26de9b1b994626cc8dc54cc10febc (patch) | |
tree | c3cd514da788dbe7adfaf77df933128b21ef9804 | |
parent | 32073b55e408c21194275f31169bf0468931f3ce (diff) |
Update to support French, Deutsch, Japanese and Spanish locales
-rw-r--r-- | app.js | 2 | ||||
-rw-r--r-- | public/views/index.ejs | 8 |
2 files changed, 7 insertions, 3 deletions
@@ -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 8c4cf101..719a51c1 100644 --- a/public/views/index.ejs +++ b/public/views/index.ejs @@ -59,12 +59,12 @@ <% if(facebook || twitter || github || gitlab || dropbox || google) { %> <span class="ui-signin"> <br> - <a type="button" class="btn btn-lg btn-success ui-signin" data-toggle="modal" data-target=".signin-modal" style="width: 170px;"><%= __('Sign In') %></a> + <a type="button" class="btn btn-lg btn-success ui-signin" data-toggle="modal" data-target=".signin-modal" style="min-width: 170px;"><%= __('Sign In') %></a> </span> <span class="ui-or"><%= __('or') %></span> <% }%> <span class="ui-signin"> - <a href="<%- url %>/new" class="btn btn-lg btn-default" style="width: 170px;"><%= __('New guest note') %></a> + <a href="<%- url %>/new" class="btn btn-lg btn-default" style="min-width: 170px;"><%= __('New guest note') %></a> <br> <br> </span> @@ -148,6 +148,10 @@ <select class="ui-locale"> <option value="en">English</option> <option value="zh">中文</option> + <option value="fr">Français</option> + <option value="de">Deutsch</option> + <option value="ja">日本語</option> + <option value="es">Español</option> </select> </div> </div> |