Browse Source

Update to support Ukrainian locale

tags/0.4.5
Wu Cheng-Han 3 years ago
parent
commit
a5e6b5dd3b
3 changed files with 2 additions and 1 deletions
  1. +1
    -1
      app.js
  2. +0
    -0
      locales/uk.json
  3. +1
    -0
      public/views/index.ejs

+ 1
- 1
app.js View File

@@ -94,7 +94,7 @@ app.use(helmet.hsts({
}));

i18n.configure({
locales: ['en', 'zh', 'fr', 'de', 'ja', 'es', 'el', 'pt', 'it', 'tr', 'ru', 'nl', 'hr', 'pl'],
locales: ['en', 'zh', 'fr', 'de', 'ja', 'es', 'el', 'pt', 'it', 'tr', 'ru', 'nl', 'hr', 'pl', 'uk'],
cookie: 'locale',
directory: __dirname + '/locales'
});


locales/ua.json → locales/uk.json View File


+ 1
- 0
public/views/index.ejs View File

@@ -160,6 +160,7 @@
<option value="nl">Nederlands</option>
<option value="hr">hrvatski jezik</option>
<option value="pl">język polski</option>
<option value="uk">Українська</option>
</select>
</div>
</div>


Loading…
Cancel
Save