aboutsummaryrefslogtreecommitdiff
path: root/src-vue
diff options
context:
space:
mode:
authorGeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com>2023-07-19 15:22:44 +0200
committerGitHub <noreply@github.com>2023-07-19 15:22:44 +0200
commit54b775d60450928365f8267d1c871f7d57042b5e (patch)
tree5a99d97a6e3478aba9794e70dd5a1551e6bb5e42 /src-vue
parent68c765738331deb207621d25c87b1b6eda4ebf3c (diff)
downloadFlightCore-54b775d60450928365f8267d1c871f7d57042b5e.tar.gz
FlightCore-54b775d60450928365f8267d1c871f7d57042b5e.zip
i18n: Enable Simplified Chinese translations (#432)
Diffstat (limited to 'src-vue')
-rw-r--r--src-vue/src/components/LanguageSelector.vue4
-rw-r--r--src-vue/src/main.ts3
2 files changed, 6 insertions, 1 deletions
diff --git a/src-vue/src/components/LanguageSelector.vue b/src-vue/src/components/LanguageSelector.vue
index afa2549a..4f275369 100644
--- a/src-vue/src/components/LanguageSelector.vue
+++ b/src-vue/src/components/LanguageSelector.vue
@@ -46,6 +46,10 @@ export default defineComponent({
value: 'it',
label: 'Italiano'
},
+ {
+ value: 'zh_Hans',
+ label: '简体中文'
+ },
]
}),
mounted: async function () {
diff --git a/src-vue/src/main.ts b/src-vue/src/main.ts
index e07c14f2..b595f21c 100644
--- a/src-vue/src/main.ts
+++ b/src-vue/src/main.ts
@@ -17,6 +17,7 @@ import de from "./i18n/lang/de.json";
import pl from "./i18n/lang/pl.json";
import ru from "./i18n/lang/ru.json";
import it from "./i18n/lang/it.json";
+import zh_Hans from "./i18n/lang/zh_Hans.json";
const app = createApp(App);
@@ -26,7 +27,7 @@ export const i18n = createI18n({
locale: 'en',
fallbackLocale: 'en',
messages: {
- en, fr, de, pl, ru, it
+ en, fr, de, pl, ru, it, zh_Hans
}
});
app.use(i18n);