mirror of
https://github.com/gotson/komga.git
synced 2026-05-08 21:00:16 +02:00
fix locale selector
This commit is contained in:
parent
925a1eb1d0
commit
577834dff2
4 changed files with 13 additions and 13 deletions
|
|
@ -27,10 +27,6 @@
|
||||||
"defaultMessage": "Currently installed",
|
"defaultMessage": "Currently installed",
|
||||||
"description": "Updates view: badge showing next to the currently installed release number"
|
"description": "Updates view: badge showing next to the currently installed release number"
|
||||||
},
|
},
|
||||||
"3rSWpQ": {
|
|
||||||
"defaultMessage": "Help translate",
|
|
||||||
"description": "Translations pop-up menu footer"
|
|
||||||
},
|
|
||||||
"5AAGkA": {
|
"5AAGkA": {
|
||||||
"defaultMessage": "Password",
|
"defaultMessage": "Password",
|
||||||
"description": "Login screen: password field label"
|
"description": "Login screen: password field label"
|
||||||
|
|
@ -47,6 +43,10 @@
|
||||||
"defaultMessage": "Media Analysis",
|
"defaultMessage": "Media Analysis",
|
||||||
"description": "Drawer menu for Media > Media Analysis"
|
"description": "Drawer menu for Media > Media Analysis"
|
||||||
},
|
},
|
||||||
|
"FLqm9f": {
|
||||||
|
"defaultMessage": "Help us translate",
|
||||||
|
"description": "Translations pop-up menu footer"
|
||||||
|
},
|
||||||
"G/T8/2": {
|
"G/T8/2": {
|
||||||
"defaultMessage": "Cancel",
|
"defaultMessage": "Cancel",
|
||||||
"description": "ConfirmEdit dialog: Cancel button"
|
"description": "ConfirmEdit dialog: Cancel button"
|
||||||
|
|
@ -127,10 +127,6 @@
|
||||||
"defaultMessage": "English",
|
"defaultMessage": "English",
|
||||||
"description": "The name of the locale, shown in the language selection menu. Must be translated to the language's name"
|
"description": "The name of the locale, shown in the language selection menu. Must be translated to the language's name"
|
||||||
},
|
},
|
||||||
"app.user-create-dialog..select_create_one": {
|
|
||||||
"defaultMessage": "Select an item or create one",
|
|
||||||
"description": "User creation/edit dialog: Allow only labels field selection"
|
|
||||||
},
|
|
||||||
"app.user-create-dialog.all_libraries": {
|
"app.user-create-dialog.all_libraries": {
|
||||||
"defaultMessage": "All libraries",
|
"defaultMessage": "All libraries",
|
||||||
"description": "User creation/edit dialog: Shared Libraries field, value shown when user has access to all libraries"
|
"description": "User creation/edit dialog: Shared Libraries field, value shown when user has access to all libraries"
|
||||||
|
|
@ -151,6 +147,10 @@
|
||||||
"defaultMessage": "Activity",
|
"defaultMessage": "Activity",
|
||||||
"description": "Drawer menu for My Account > Activity"
|
"description": "Drawer menu for My Account > Activity"
|
||||||
},
|
},
|
||||||
|
"da/wb0": {
|
||||||
|
"defaultMessage": "Mark all as read",
|
||||||
|
"description": "Announcements view: mark all as read button tooltip"
|
||||||
|
},
|
||||||
"eVoe+D": {
|
"eVoe+D": {
|
||||||
"defaultMessage": "Please type {validateText} to confirm.",
|
"defaultMessage": "Please type {validateText} to confirm.",
|
||||||
"description": "Confirmation dialog: default hint to retype validation text"
|
"description": "Confirmation dialog: default hint to retype validation text"
|
||||||
|
|
|
||||||
|
|
@ -29,15 +29,15 @@
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<v-list-item
|
<v-list-item
|
||||||
href="https://hosted.weblate.org/projects/komga/webui/"
|
href="https://hosted.weblate.org/projects/komga/next-ui/"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
>
|
>
|
||||||
<v-list-item-title class="font-weight-bold">
|
<v-list-item-title class="font-weight-bold">
|
||||||
{{
|
{{
|
||||||
$formatMessage({
|
$formatMessage({
|
||||||
description: 'Translations pop-up menu footer',
|
description: 'Translations pop-up menu footer',
|
||||||
defaultMessage: 'Help translate',
|
defaultMessage: 'Help us translate',
|
||||||
id: '3rSWpQ'
|
id: 'FLqm9f'
|
||||||
})
|
})
|
||||||
}}
|
}}
|
||||||
</v-list-item-title>
|
</v-list-item-title>
|
||||||
|
|
|
||||||
|
|
@ -157,7 +157,7 @@
|
||||||
$formatMessage({
|
$formatMessage({
|
||||||
description: 'User creation/edit dialog: Allow only labels field selection',
|
description: 'User creation/edit dialog: Allow only labels field selection',
|
||||||
defaultMessage: 'Select an item or create one',
|
defaultMessage: 'Select an item or create one',
|
||||||
id: 'app.user-create-dialog..select_create_one'
|
id: 'app.user-create-dialog.select_create_one'
|
||||||
})
|
})
|
||||||
}}
|
}}
|
||||||
</span>
|
</span>
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ async function loadAvailableLocales(): Promise<Record<string, string>> {
|
||||||
if (matched && matched.length > 1) {
|
if (matched && matched.length > 1) {
|
||||||
const locale = matched[1]
|
const locale = matched[1]
|
||||||
const messages = await localeFiles[path]!() as Record<string, string>
|
const messages = await localeFiles[path]!() as Record<string, string>
|
||||||
locales[locale!] = messages[localeName.id]!
|
locales[locale!] = messages.default![localeName.id]!
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return locales
|
return locales
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue