Skip to content

Commit

Permalink
Swap around the translated and native language names
Browse files Browse the repository at this point in the history
  • Loading branch information
YummyBacon5 authored Nov 12, 2024
1 parent bc8f024 commit 6b844d8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/app-client/src/modules/ui/layouts/app.layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ const LanguageSwitcher: Component = () => {
<>
{locales.map(locale => (
<DropdownMenuItem onClick={() => setLocale(locale.key)} class={cn('cursor-pointer', { 'font-bold': getLocale() === locale.key })}>
{languageName.of(locale.key)}
<span translate="no" lang={getLocale() === locale.key ? undefined : locale.key}>
{locale.name}
</span>
<Show when={getLocale() !== locale.key}>
<span class="text-muted-foreground pl-1">
(
<span translate="no" lang={locale.key}>
{locale.name}
</span>
{languageName.of(locale.key)}
)
</span>
</Show>
Expand Down

0 comments on commit 6b844d8

Please sign in to comment.