mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(ui): use native langs for language select
Use each language's own language for their option in the language select. This falls back to the english translation if the language name isn't translated.
This commit is contained in:
parent
db57d426d9
commit
f3fed0b10f
@ -14,22 +14,25 @@ export const SettingsLanguageSelect = memo(() => {
|
||||
const language = useAppSelector((s) => s.system.language);
|
||||
const options = useMemo(
|
||||
() => [
|
||||
{ label: t('common.langArabic'), value: 'ar' },
|
||||
{ label: t('common.langDutch'), value: 'nl' },
|
||||
{ label: t('common.langEnglish'), value: 'en' },
|
||||
{ label: t('common.langFrench'), value: 'fr' },
|
||||
{ label: t('common.langGerman'), value: 'de' },
|
||||
{ label: t('common.langHebrew'), value: 'he' },
|
||||
{ label: t('common.langItalian'), value: 'it' },
|
||||
{ label: t('common.langJapanese'), value: 'ja' },
|
||||
{ label: t('common.langKorean'), value: 'ko' },
|
||||
{ label: t('common.langPolish'), value: 'pl' },
|
||||
{ label: t('common.langBrPortuguese'), value: 'pt_BR' },
|
||||
{ label: t('common.langPortuguese'), value: 'pt' },
|
||||
{ label: t('common.langRussian'), value: 'ru' },
|
||||
{ label: t('common.langSimplifiedChinese'), value: 'zh_CN' },
|
||||
{ label: t('common.langSpanish'), value: 'es' },
|
||||
{ label: t('common.langUkranian'), value: 'ua' },
|
||||
{ label: t('common.langArabic', { lng: 'ar' }), value: 'ar' },
|
||||
{ label: t('common.langDutch', { lng: 'nl' }), value: 'nl' },
|
||||
{ label: t('common.langEnglish', { lng: 'en' }), value: 'en' },
|
||||
{ label: t('common.langFrench', { lng: 'fr' }), value: 'fr' },
|
||||
{ label: t('common.langGerman', { lng: 'de' }), value: 'de' },
|
||||
{ label: t('common.langHebrew', { lng: 'he' }), value: 'he' },
|
||||
{ label: t('common.langItalian', { lng: 'it' }), value: 'it' },
|
||||
{ label: t('common.langJapanese', { lng: 'ja' }), value: 'ja' },
|
||||
{ label: t('common.langKorean', { lng: 'ko' }), value: 'ko' },
|
||||
{ label: t('common.langPolish', { lng: 'pl' }), value: 'pl' },
|
||||
{ label: t('common.langBrPortuguese', { lng: 'pt_BR' }), value: 'pt_BR' },
|
||||
{ label: t('common.langPortuguese', { lng: 'pt' }), value: 'pt' },
|
||||
{ label: t('common.langRussian', { lng: 'ru' }), value: 'ru' },
|
||||
{
|
||||
label: t('common.langSimplifiedChinese', { lng: 'zh_CN' }),
|
||||
value: 'zh_CN',
|
||||
},
|
||||
{ label: t('common.langSpanish', { lng: 'es' }), value: 'es' },
|
||||
{ label: t('common.langUkranian', { lng: 'ua' }), value: 'ua' },
|
||||
],
|
||||
[t]
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user