Browse Source

Update to support Greek and Portuguese locales

tags/0.4.5
Wu Cheng-Han 3 years ago
parent
commit
aaf32dc4bf
4 changed files with 4 additions and 4 deletions
  1. +1
    -1
      app.js
  2. +1
    -3
      locales/el.json
  3. +0
    -0
      locales/pt.json
  4. +2
    -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'],
locales: ['en', 'zh', 'fr', 'de', 'ja', 'es', 'el', 'pt'],
cookie: 'locale',
directory: __dirname + '/locales'
});


locales/gr.json → locales/el.json View File

@@ -101,6 +101,4 @@
"OR": "Ή",
"Export to Snippet": "Eξαγωγή σε Snippet",
"Select Visibility Level": "Επιλέξτε επίπεδο ορατότητας"
}

// el-GR Greek - Greece 0x0408 ELL
}

locales/pt-BR.json → locales/pt.json View File


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

@@ -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>


Loading…
Cancel
Save