mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-10-27 16:24:31 -04:00
Enable localization based on browser settings, add language selector (#925)
* Enable localization based on browser settings, add language selector * Add dialog for language selection
This commit is contained in:
committed by
GitHub
parent
8f569509bf
commit
022cbd1616
@@ -170,7 +170,12 @@ export default {
|
||||
// END: MESSAGE_LOCALES
|
||||
],
|
||||
lazy: true,
|
||||
strategy: "no_prefix",
|
||||
langDir: "lang/messages",
|
||||
detectBrowserLanguage: {
|
||||
useCookie: true,
|
||||
alwaysRedirect: true,
|
||||
},
|
||||
defaultLocale: "en-US",
|
||||
vueI18n: {
|
||||
dateTimeFormats: {
|
||||
@@ -208,8 +213,8 @@ export default {
|
||||
"vi-VN": require("./lang/dateTimeFormats/vi-VN.json"),
|
||||
// END: DATE_LOCALES
|
||||
},
|
||||
fallbackLocale: "en-US",
|
||||
},
|
||||
fallbackLocale: "es",
|
||||
},
|
||||
|
||||
// Axios module configuration: https://go.nuxtjs.dev/config-axios
|
||||
|
||||
Reference in New Issue
Block a user