Crowdin integration (#319)

* Fix portuguese localization files

* Use 4-letter code for locales ID

* Update Crowdin configuration file

* Make vuetify locales match with new VueI18n standard

* Fix old locale ID default setting

* Hide project hierarchy from Crowdin

* add dateTimeFormats to Crowdin
This commit is contained in:
sephrat
2021-04-20 17:28:18 +02:00
committed by GitHub
parent 484f026772
commit bf45856c27
18 changed files with 40 additions and 15 deletions

View File

@@ -5,23 +5,23 @@ const state = {
allLangs: [
{
name: "English",
value: "en",
value: "en-US",
},
{
name: "Danish",
value: "da",
value: "da-DK",
},
{
name: "French",
value: "fr",
value: "fr-FR",
},
{
name: "Polish",
value: "pl",
value: "pl-PL",
},
{
name: "Swedish",
value: "sv",
value: "sv-SE",
},
{
name: "简体中文",
@@ -33,7 +33,7 @@ const state = {
},
{
name: "German",
value: "de",
value: "de-DE",
},
{
name: "Português",
@@ -52,7 +52,7 @@ const mutations = {
const actions = {
initLang({ getters }, { currentVueComponent }) {
VueI18n.locale = getters.getActiveLang;
currentVueComponent.$vuetify.lang.current = getters.getActiveLang;
currentVueComponent.$vuetify.lang.current = getters.getActiveLang.replace('-', '_');
},
};