mirror of
https://github.com/owntracks/frontend.git
synced 2026-08-23 11:26:16 +00:00
Support locale with language and region part
This commit is contained in:
+3
-1
@@ -123,7 +123,9 @@ Remove the `ping/ping` location from the fetched data. This is useful when using
|
||||
|
||||
### `locale`
|
||||
|
||||
The language to use for the user interface. Available: `de` (German), `en` (English).
|
||||
The locale to use for the user interface, this affects the language and date/time
|
||||
formats. Available languages are `de` (German), `en` (English). You can use formats
|
||||
like `en-GB`, `en-US`, `de-DE`.
|
||||
|
||||
- Type: [`String`]
|
||||
- Default: `"en"`
|
||||
|
||||
+1
-1
@@ -16,7 +16,7 @@ locales.keys().forEach(key => {
|
||||
});
|
||||
|
||||
export default new VueI18n({
|
||||
locale: config.locale,
|
||||
locale: config.locale.split("-")[0],
|
||||
fallbackLocale: "en",
|
||||
formatFallbackMessages: true,
|
||||
messages,
|
||||
|
||||
Reference in New Issue
Block a user