Skip to content

Commit

Permalink
Fix language switcher
Browse files Browse the repository at this point in the history
  • Loading branch information
m-mohr committed Jun 7, 2024
1 parent e72ced9 commit 900a3ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/Source.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
<b-icon-check v-if="locale === l.code" />
<b-icon-blank v-else />
<span class="title">
{{ l.native }}
<template v-if="l.global && l.global !== l.native"> / {{ l.global }}</template>
<span :lang="l.code">{{ l.native }}</span>
<template v-if="l.global && l.global !== l.native"> / <span lang="en">{{ l.global }}</span></template>
</span>
<b-icon-exclamation-triangle v-if="supportsLanguageExt && (!l.ui || !l.data)" :title="l.ui ? $t('source.language.onlyUI') : $t('source.language.onlyData')" class="ml-2" />
</b-dropdown-item>
Expand Down
2 changes: 1 addition & 1 deletion src/store/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@ function getStore(config, router) {

if (cx.state.storeLocale && userSelected) {
const storage = new BrowserStorage();
locale = storage.set('locale', locale);
storage.set('locale', locale);
}

// Locale for UI
Expand Down

0 comments on commit 900a3ee

Please sign in to comment.