fix: locale not dynamically changing in the sidebar
This commit is contained in:
parent
0eb0ebcbc9
commit
0be64f1477
File diff suppressed because one or more lines are too long
@ -12,7 +12,7 @@
|
|||||||
@click.native="activeTablink = link.name"
|
@click.native="activeTablink = link.name"
|
||||||
>
|
>
|
||||||
<i class="material-icons side_icon">{{ link.icon }}</i>
|
<i class="material-icons side_icon">{{ link.icon }}</i>
|
||||||
<span class="main_tablinks_text">{{ link.label }}</span>
|
<span class="main_tablinks_text">{{ $t(link.label) }}</span>
|
||||||
</router-link>
|
</router-link>
|
||||||
|
|
||||||
<span id="theme_selector" class="main_tablinks" role="link" aria-label="theme selector">
|
<span id="theme_selector" class="main_tablinks" role="link" aria-label="theme selector">
|
||||||
@ -66,9 +66,6 @@
|
|||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
const $t = this.$t.bind(this)
|
|
||||||
const $tc = this.$tc.bind(this)
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
appOnline: null,
|
appOnline: null,
|
||||||
activeTheme: 'light',
|
activeTheme: 'light',
|
||||||
@ -81,7 +78,7 @@ export default {
|
|||||||
ariaLabel: 'home',
|
ariaLabel: 'home',
|
||||||
routerName: 'Home',
|
routerName: 'Home',
|
||||||
icon: 'home',
|
icon: 'home',
|
||||||
label: $t('sidebar.home')
|
label: 'sidebar.home'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'main_search_tablink',
|
id: 'main_search_tablink',
|
||||||
@ -89,7 +86,7 @@ export default {
|
|||||||
ariaLabel: 'search',
|
ariaLabel: 'search',
|
||||||
routerName: 'Search',
|
routerName: 'Search',
|
||||||
icon: 'search',
|
icon: 'search',
|
||||||
label: $t('sidebar.search')
|
label: 'sidebar.search'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'main_charts_tablink',
|
id: 'main_charts_tablink',
|
||||||
@ -97,7 +94,7 @@ export default {
|
|||||||
ariaLabel: 'charts',
|
ariaLabel: 'charts',
|
||||||
routerName: 'Charts',
|
routerName: 'Charts',
|
||||||
icon: 'show_chart',
|
icon: 'show_chart',
|
||||||
label: $t('sidebar.charts')
|
label: 'sidebar.charts'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'main_favorites_tablink',
|
id: 'main_favorites_tablink',
|
||||||
@ -105,7 +102,7 @@ export default {
|
|||||||
ariaLabel: 'favorites',
|
ariaLabel: 'favorites',
|
||||||
routerName: 'Favorites',
|
routerName: 'Favorites',
|
||||||
icon: 'star',
|
icon: 'star',
|
||||||
label: $t('sidebar.favorites')
|
label: 'sidebar.favorites'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'main_analyzer_tablink',
|
id: 'main_analyzer_tablink',
|
||||||
@ -113,7 +110,7 @@ export default {
|
|||||||
ariaLabel: 'link analyzer',
|
ariaLabel: 'link analyzer',
|
||||||
routerName: 'Link Analyzer',
|
routerName: 'Link Analyzer',
|
||||||
icon: 'link',
|
icon: 'link',
|
||||||
label: $t('sidebar.linkAnalyzer')
|
label: 'sidebar.linkAnalyzer'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'main_settings_tablink',
|
id: 'main_settings_tablink',
|
||||||
@ -121,7 +118,7 @@ export default {
|
|||||||
ariaLabel: 'settings',
|
ariaLabel: 'settings',
|
||||||
routerName: 'Settings',
|
routerName: 'Settings',
|
||||||
icon: 'settings',
|
icon: 'settings',
|
||||||
label: $t('sidebar.settings')
|
label: 'sidebar.settings'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'main_about_tablink',
|
id: 'main_about_tablink',
|
||||||
@ -129,7 +126,7 @@ export default {
|
|||||||
ariaLabel: 'info',
|
ariaLabel: 'info',
|
||||||
routerName: 'About',
|
routerName: 'About',
|
||||||
icon: 'info',
|
icon: 'info',
|
||||||
label: $t('sidebar.about')
|
label: 'sidebar.about'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user