refactor: add language fallback to make sure its can be display correct
This commit is contained in:
parent
f2ce1fb10c
commit
31e8ce4ab9
@ -172,7 +172,7 @@ export const UserConfig: React.FC<UserConfigProps> = React.memo((props) => {
|
|||||||
<DropdownMenuPortal>
|
<DropdownMenuPortal>
|
||||||
<DropdownMenuSubContent>
|
<DropdownMenuSubContent>
|
||||||
<DropdownMenuRadioGroup
|
<DropdownMenuRadioGroup
|
||||||
value={i18n.language}
|
value={i18n.language ?? 'en'}
|
||||||
onValueChange={setLanguage}
|
onValueChange={setLanguage}
|
||||||
>
|
>
|
||||||
{languages.map((language) => (
|
{languages.map((language) => (
|
||||||
|
Loading…
Reference in New Issue
Block a user