mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-11-07 20:47:19 -05:00
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:
@@ -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('-', '_');
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user