Skip to content

Commit

Permalink
fix(theme-default): fallback select language aria-label correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
meteorlxy committed Jun 14, 2022
1 parent eb962a0 commit d450478
Showing 1 changed file with 5 additions and 2 deletions.
Expand Up @@ -30,9 +30,12 @@ const useNavbarSelectLanguage = (): ComputedRef<ResolvedNavbarItem[]> => {
const languageDropdown: ResolvedNavbarItem = {
text: themeLocale.value.selectLanguageText ?? 'unknown language',
ariaLabel: themeLocale.value.selectLanguageAriaLabel ?? 'unkown language',
ariaLabel:
themeLocale.value.selectLanguageAriaLabel ??
themeLocale.value.selectLanguageText ??
'unknown language',
children: localePaths.map((targetLocalePath) => {
// target locale config of this langauge link
// target locale config of this language link
const targetSiteLocale =
siteLocale.value.locales?.[targetLocalePath] ?? {}
const targetThemeLocale =
Expand Down

0 comments on commit d450478

Please sign in to comment.