mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-10-03 12:46:49 +02:00
Added Simplified Chinese translation zh-CN (Issue #571)
This commit is contained in:
@@ -9,6 +9,7 @@ import fr from './locales/fr';
|
||||
import ja from './locales/ja';
|
||||
import it from './locales/it';
|
||||
import ptBR from './locales/pt-BR';
|
||||
import zhCN from './locales/zh-CN';
|
||||
|
||||
const resources = {
|
||||
en: { translation: en },
|
||||
@@ -17,6 +18,7 @@ const resources = {
|
||||
ja: { translation: ja },
|
||||
it: { translation: it },
|
||||
'pt-BR': { translation: ptBR },
|
||||
'zh-CN': { translation: zhCN },
|
||||
};
|
||||
|
||||
i18n
|
||||
@@ -25,7 +27,7 @@ i18n
|
||||
.init({
|
||||
resources,
|
||||
fallbackLng: 'en',
|
||||
supportedLngs: ['en', 'de', 'fr', 'ja', 'it', 'pt-BR'],
|
||||
supportedLngs: ['en', 'de', 'fr', 'ja', 'it', 'pt-BR', 'zh-CN'],
|
||||
|
||||
detection: {
|
||||
// Order of detection methods
|
||||
@@ -55,4 +57,5 @@ export const availableLanguages = [
|
||||
{ code: 'ja', name: 'Japanese', nativeName: '日本語' },
|
||||
{ code: 'it', name: 'Italian', nativeName: 'Italiano' },
|
||||
{ code: 'pt-BR', name: 'Portuguese (Brazil)', nativeName: 'Português (Brasil)' },
|
||||
{ code: 'zh-CN', name: 'Chinese (Simplified)', nativeName: '简体中文' },
|
||||
];
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
+1
-1
@@ -23,7 +23,7 @@
|
||||
|
||||
<!-- Splash screens for iOS -->
|
||||
<link rel="apple-touch-startup-image" href="/img/android-chrome-512x512.png" />
|
||||
<script type="module" crossorigin src="/assets/index-ug6uJJTK.js"></script>
|
||||
<script type="module" crossorigin src="/assets/index-1sjVIDzY.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-C8l0CpBG.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
Reference in New Issue
Block a user