Skip to content

Commit

Permalink
feat: add dutch language support (Thanks to @DJWezzz)
Browse files Browse the repository at this point in the history
  • Loading branch information
jooy2 committed Feb 7, 2024
1 parent bc4e550 commit 6f4d96c
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 3 deletions.
19 changes: 19 additions & 0 deletions src/renderer/locales/nl.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"desc": {
"welcome-title": "Hallo Vutron! Alles is klaar.",
"welcome-desc": "U kunt nu platformonafhankelijke webapplicaties schrijven. Bekijk wijzigingen in realtime en bouw met één opdracht naar meerdere platforms. Als u hiermee nog niet bekend bent, kunt u hulp krijgen via de onderstaande documentatiepagina, of een vooraf geschreven voorbeeldcode uitvoeren.",
"second-desc": "U bent naar het tweede scherm gegaan! Hier is niks!"
},
"title": {
"main": "Hoofdscherm",
"second": "Tweede scherm",
"error": "Onbekende Error"
},
"menu": {
"change-theme": "Thema veranderen",
"change-language": "Taal wijzigen",
"increase-count": "Één stap optellen",
"documentation": "Documentatie",
"github": "Broncode"
}
}
4 changes: 3 additions & 1 deletion src/renderer/plugins/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import ja from '@/renderer/locales/ja.json'
import fr from '@/renderer/locales/fr.json'
import ru from '@/renderer/locales/ru.json'
import pt from '@/renderer/locales/pt.json'
import nl from '@/renderer/locales/nl.json'
import { getCurrentLocale } from '@/renderer/utils'

export default createI18n({
Expand All @@ -26,6 +27,7 @@ export default createI18n({
ja,
fr,
ru,
pt
pt,
nl
}
})
4 changes: 2 additions & 2 deletions src/renderer/plugins/vuetify.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { createVuetify } from 'vuetify'
import { ko, en, zhHans, zhHant, de, es, ja, fr, ru, pt } from 'vuetify/locale'
import { ko, en, zhHans, zhHant, de, es, ja, fr, ru, pt, nl } from 'vuetify/locale'
import { aliases, mdi } from 'vuetify/iconsets/mdi'
import 'vuetify/styles'
import '@mdi/font/css/materialdesignicons.min.css'
Expand All @@ -8,7 +8,7 @@ import colors from 'vuetify/lib/util/colors.mjs'

export default createVuetify({
locale: {
messages: { ko, en, zhHans, zhHant, de, es, ja, fr, ru, pt },
messages: { ko, en, zhHans, zhHant, de, es, ja, fr, ru, pt, nl },
locale: 'en',
fallback: 'en'
},
Expand Down

0 comments on commit 6f4d96c

Please sign in to comment.