Add theme translations on topbar
This commit is contained in:
parent
27ef0339fb
commit
40cfe094f9
@ -13,6 +13,8 @@
|
|||||||
userSettingsProfile: $t('navigation.userSettings.profile'),
|
userSettingsProfile: $t('navigation.userSettings.profile'),
|
||||||
userSettingsChangePassword: $t('navigation.userSettings.changePassword'),
|
userSettingsChangePassword: $t('navigation.userSettings.changePassword'),
|
||||||
userSettingsLogout: $t('navigation.userSettings.logout'),
|
userSettingsLogout: $t('navigation.userSettings.logout'),
|
||||||
|
lightTheme: $t('general:themes.labels.light'),
|
||||||
|
darkTheme: $t('general:themes.labels.dark'),
|
||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
<template #title>
|
<template #title>
|
||||||
|
|||||||
@ -16,6 +16,8 @@
|
|||||||
userSettingsProfile: $t('userSettings.profile'),
|
userSettingsProfile: $t('userSettings.profile'),
|
||||||
userSettingsChangePassword: $t('userSettings.changePassword'),
|
userSettingsChangePassword: $t('userSettings.changePassword'),
|
||||||
userSettingsLogout: $t('userSettings.logout'),
|
userSettingsLogout: $t('userSettings.logout'),
|
||||||
|
lightTheme: $t('general:themes.labels.light'),
|
||||||
|
darkTheme: $t('general:themes.labels.dark'),
|
||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
<template #title>
|
<template #title>
|
||||||
|
|||||||
@ -13,6 +13,8 @@
|
|||||||
userSettingsProfile: $t('userSettings.profile'),
|
userSettingsProfile: $t('userSettings.profile'),
|
||||||
userSettingsChangePassword: $t('userSettings.changePassword'),
|
userSettingsChangePassword: $t('userSettings.changePassword'),
|
||||||
userSettingsLogout: $t('userSettings.logout'),
|
userSettingsLogout: $t('userSettings.logout'),
|
||||||
|
lightTheme: $t('general:themes.labels.light'),
|
||||||
|
darkTheme: $t('general:themes.labels.dark'),
|
||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
<template #title>
|
<template #title>
|
||||||
|
|||||||
@ -16,6 +16,8 @@
|
|||||||
userSettingsProfile: $t('userSettings.profile'),
|
userSettingsProfile: $t('userSettings.profile'),
|
||||||
userSettingsChangePassword: $t('userSettings.changePassword'),
|
userSettingsChangePassword: $t('userSettings.changePassword'),
|
||||||
userSettingsLogout: $t('userSettings.logout'),
|
userSettingsLogout: $t('userSettings.logout'),
|
||||||
|
lightTheme: $t('themes.labels.light'),
|
||||||
|
darkTheme: $t('themes.labels.dark'),
|
||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
<template #help-dropdown>
|
<template #help-dropdown>
|
||||||
|
|||||||
@ -13,6 +13,8 @@
|
|||||||
userSettingsProfile: $t('navigation:userSettings.profile'),
|
userSettingsProfile: $t('navigation:userSettings.profile'),
|
||||||
userSettingsChangePassword: $t('navigation:userSettings.changePassword'),
|
userSettingsChangePassword: $t('navigation:userSettings.changePassword'),
|
||||||
userSettingsLogout: $t('navigation:userSettings.logout'),
|
userSettingsLogout: $t('navigation:userSettings.logout'),
|
||||||
|
lightTheme: $t('general:themes.labels.light'),
|
||||||
|
darkTheme: $t('general:themes.labels.dark'),
|
||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
<template #title>
|
<template #title>
|
||||||
|
|||||||
@ -13,6 +13,8 @@
|
|||||||
userSettingsProfile: $t('navigation:userSettings.profile'),
|
userSettingsProfile: $t('navigation:userSettings.profile'),
|
||||||
userSettingsChangePassword: $t('navigation:userSettings.changePassword'),
|
userSettingsChangePassword: $t('navigation:userSettings.changePassword'),
|
||||||
userSettingsLogout: $t('navigation:userSettings.logout'),
|
userSettingsLogout: $t('navigation:userSettings.logout'),
|
||||||
|
lightTheme: $t('general:themes.labels.light'),
|
||||||
|
darkTheme: $t('general:themes.labels.dark'),
|
||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
<template #title>
|
<template #title>
|
||||||
|
|||||||
@ -13,6 +13,8 @@
|
|||||||
userSettingsProfile: $t('navigation:userSettings.profile'),
|
userSettingsProfile: $t('navigation:userSettings.profile'),
|
||||||
userSettingsChangePassword: $t('navigation:userSettings.changePassword'),
|
userSettingsChangePassword: $t('navigation:userSettings.changePassword'),
|
||||||
userSettingsLogout: $t('navigation:userSettings.logout'),
|
userSettingsLogout: $t('navigation:userSettings.logout'),
|
||||||
|
lightTheme: $t('general:themes.labels.light'),
|
||||||
|
darkTheme: $t('general:themes.labels.dark'),
|
||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
<template #title>
|
<template #title>
|
||||||
|
|||||||
@ -191,10 +191,11 @@
|
|||||||
>
|
>
|
||||||
<b-dropdown-item
|
<b-dropdown-item
|
||||||
v-for="theme in themes"
|
v-for="theme in themes"
|
||||||
:disabled="currentTheme === theme.value"
|
:key="theme.id"
|
||||||
@click="saveThemeMode(theme.value)"
|
:disabled="currentTheme === theme.id"
|
||||||
|
@click="saveThemeMode(theme.id)"
|
||||||
>
|
>
|
||||||
{{ theme.label }}
|
{{ theme.id === 'light' ? labels.lightTheme : labels.darkTheme }}
|
||||||
</b-dropdown-item>
|
</b-dropdown-item>
|
||||||
</b-dropdown>
|
</b-dropdown>
|
||||||
|
|
||||||
@ -306,12 +307,10 @@ export default {
|
|||||||
themes () {
|
themes () {
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
label: 'Light',
|
id: 'light',
|
||||||
value: 'light',
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Dark',
|
id: 'dark',
|
||||||
value: 'dark',
|
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|||||||
@ -5,3 +5,7 @@ label:
|
|||||||
resourceList:
|
resourceList:
|
||||||
pagination:
|
pagination:
|
||||||
recordsPerPage: Records per page
|
recordsPerPage: Records per page
|
||||||
|
themes:
|
||||||
|
labels:
|
||||||
|
light: Light
|
||||||
|
dark: Dark
|
||||||
@ -18,3 +18,7 @@ userSettings:
|
|||||||
loggedInAs: Logged in as {{user}}
|
loggedInAs: Logged in as {{user}}
|
||||||
logout: Logout
|
logout: Logout
|
||||||
profile: Profile
|
profile: Profile
|
||||||
|
themes:
|
||||||
|
labels:
|
||||||
|
light: Light
|
||||||
|
dark: Dark
|
||||||
|
|||||||
@ -21,3 +21,8 @@ resourceList:
|
|||||||
single: 'One {{data}}'
|
single: 'One {{data}}'
|
||||||
single_plural: '{{count}} {{data}}'
|
single_plural: '{{count}} {{data}}'
|
||||||
recordsPerPage: Records per page
|
recordsPerPage: Records per page
|
||||||
|
|
||||||
|
themes:
|
||||||
|
labels:
|
||||||
|
light: Light
|
||||||
|
dark: Dark
|
||||||
@ -59,3 +59,8 @@ columns:
|
|||||||
enabled: Enabled
|
enabled: Enabled
|
||||||
steps: Steps
|
steps: Steps
|
||||||
changedAt: Last change
|
changedAt: Last change
|
||||||
|
|
||||||
|
themes:
|
||||||
|
labels:
|
||||||
|
light: Light
|
||||||
|
dark: Dark
|
||||||
Loading…
x
Reference in New Issue
Block a user