Skip to content

Commit

Permalink
i18n: Enable Danish translations (#507)
Browse files Browse the repository at this point in the history
  • Loading branch information
GeckoEidechse authored Aug 10, 2023
1 parent 3ddbb73 commit 7195a75
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src-vue/src/components/LanguageSelector.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ export default defineComponent({
value: 'it',
label: 'Italiano'
},
{
value: 'da',
label: 'Dansk'
},
{
value: 'zh_Hans',
label: '简体中文'
Expand Down
3 changes: 2 additions & 1 deletion src-vue/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import RepairView from "./views/RepairView.vue";
import {createRouter, createWebHashHistory} from "vue-router";
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 pl from "./i18n/lang/pl.json";
import ru from "./i18n/lang/ru.json";
Expand All @@ -27,7 +28,7 @@ export const i18n = createI18n({
locale: 'en',
fallbackLocale: 'en',
messages: {
en, fr, de, pl, ru, it, zh_Hans
en, fr, da, de, pl, ru, it, zh_Hans
}
});
app.use(i18n);
Expand Down

0 comments on commit 7195a75

Please sign in to comment.