From 37023316300cbcacc7d9251c197ba56603e72f14 Mon Sep 17 00:00:00 2001 From: sephrat <34862846+sephrat@users.noreply.github.com> Date: Tue, 8 Jun 2021 09:25:26 +0200 Subject: [PATCH] Add Dutch language (#473) * Add Dutch language * Sort language list alphabetically Except English which stays on top --- frontend/src/plugins/vuetify.js | 2 ++ frontend/src/store/modules/language.js | 20 ++++++++++++-------- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/frontend/src/plugins/vuetify.js b/frontend/src/plugins/vuetify.js index 81296c552..ab4d1a736 100644 --- a/frontend/src/plugins/vuetify.js +++ b/frontend/src/plugins/vuetify.js @@ -6,6 +6,7 @@ Vue.use(Vuetify); import de from "vuetify/es5/locale/de"; import en from "vuetify/es5/locale/en"; import fr from "vuetify/es5/locale/fr"; +import nl from "vuetify/es5/locale/nl"; import pl from "vuetify/es5/locale/pl"; import pt from "vuetify/es5/locale/pt"; import sv from "vuetify/es5/locale/sv"; @@ -43,6 +44,7 @@ const vuetify = new Vuetify({ "de-DE": de, "en-US": en, "fr-FR": fr, + "nl-NL": nl, "pl-PL": pl, "pt-PT": pt, "sv-SE": sv, diff --git a/frontend/src/store/modules/language.js b/frontend/src/store/modules/language.js index aa98e3538..3d784d027 100644 --- a/frontend/src/store/modules/language.js +++ b/frontend/src/store/modules/language.js @@ -9,14 +9,26 @@ const state = { name: "Dansk (Danish)", value: "da-DK", }, + { + name: "Deutsch (German)", + value: "de-DE", + }, { name: "Français (French)", value: "fr-FR", }, + { + name: "Nederlands (Dutch)", + value: "nl-NL", + }, { name: "Polski (Polish)", value: "pl-PL", }, + { + name: "Português (Portuguese)", + value: "pt-PT", + }, { name: "Svenska (Swedish)", value: "sv-SE", @@ -29,14 +41,6 @@ const state = { name: "繁體中文 (Chinese traditional)", value: "zh-TW", }, - { - name: "Deutsch (German)", - value: "de-DE", - }, - { - name: "Português (Portuguese)", - value: "pt-PT", - }, ], };