aboutsummaryrefslogtreecommitdiff
path: root/src-vue/src
diff options
context:
space:
mode:
authorGeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com>2023-09-08 19:34:20 +0200
committerGitHub <noreply@github.com>2023-09-08 19:34:20 +0200
commite744518799f8197b2d095b728ffc3d36344696ea (patch)
tree33593e7ef5d702cac63815b2153f93864fe05869 /src-vue/src
parentca1e925891413004fa5aae2e947f7acf4ed7fa29 (diff)
downloadFlightCore-e744518799f8197b2d095b728ffc3d36344696ea.tar.gz
FlightCore-e744518799f8197b2d095b728ffc3d36344696ea.zip
i18n: Enable Spanish translations (#548)
Diffstat (limited to 'src-vue/src')
-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 37e8448f..0c47e674 100644
--- a/src-vue/src/components/LanguageSelector.vue
+++ b/src-vue/src/components/LanguageSelector.vue
@@ -35,6 +35,10 @@ export default defineComponent({
label: 'Deutsch'
},
{
+ value: 'es',
+ label: 'EspaƱol'
+ },
+ {
value: 'pl',
label: 'polski'
},
diff --git a/src-vue/src/main.ts b/src-vue/src/main.ts
index 74404947..73219c9d 100644
--- a/src-vue/src/main.ts
+++ b/src-vue/src/main.ts
@@ -15,6 +15,7 @@ import en from "./i18n/lang/en.json";
import fr from "./i18n/lang/fr.json";
import da from "./i18n/lang/da.json";
import de from "./i18n/lang/de.json";
+import es from "./i18n/lang/es.json";
import pl from "./i18n/lang/pl.json";
import ru from "./i18n/lang/ru.json";
import it from "./i18n/lang/it.json";
@@ -28,7 +29,7 @@ export const i18n = createI18n({
locale: 'en',
fallbackLocale: 'en',
messages: {
- en, fr, da, de, pl, ru, it, zh_Hans
+ en, fr, da, de, es, pl, ru, it, zh_Hans
}
});
app.use(i18n);