feat: add japanese translations (#460)

* feat: add japanese translations

* fix: remove redundant words in ja-JP translation

Co-authored-by: Juan Picado <juanpicado19@gmail.com>
This commit is contained in:
hdmr14
2020-04-24 14:39:09 +09:00
committed by GitHub
parent ae0546c0e2
commit 25def6ccd5
3 changed files with 150 additions and 1 deletions

View File

@@ -7,6 +7,7 @@ import translationES from './translations/es-ES.json';
import translationDE from './translations/de-DE.json';
import translationFR from './translations/fr-FR.json';
import translationCN from './translations/zh-CN.json';
import translationJP from './translations/ja-JP.json';
const languages = {
'en-US': {
@@ -27,6 +28,9 @@ const languages = {
'zh-CN': {
translation: translationCN,
},
'ja-JP': {
translation: translationJP,
},
};
type Language = keyof typeof languages;
@@ -40,7 +44,7 @@ i18n
// in case window.VEDACCIO_LANGUAGE is undefined,it will fall back to 'en-US'
lng: window?.__VERDACCIO_BASENAME_UI_OPTIONS?.language,
fallbackLng: 'en-US',
whitelist: ['en-US', 'pt-BR', 'es-ES', 'de-DE', 'fr-FR', 'zh-CN'],
whitelist: ['en-US', 'pt-BR', 'es-ES', 'de-DE', 'fr-FR', 'zh-CN', 'ja-JP'],
load: 'currentOnly',
resources: languages,
debug: false,