mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(ui): hardcode language picker languages
Hardcode the options in the dropdown, don't rely on translators to fill this in. Also, add a number of missing languages (Azerbaijani, Finnish, Hungarian, Swedish, Turkish).
This commit is contained in:
parent
fb50a221f8
commit
1b4dbd283e
@ -13,27 +13,30 @@ export const SettingsLanguageSelect = memo(() => {
|
|||||||
const language = useAppSelector((s) => s.system.language);
|
const language = useAppSelector((s) => s.system.language);
|
||||||
const options = useMemo(
|
const options = useMemo(
|
||||||
() => [
|
() => [
|
||||||
{ label: t('common.langArabic', { lng: 'ar' }), value: 'ar' },
|
{ label: 'العربية', value: 'ar' },
|
||||||
{ label: t('common.langDutch', { lng: 'nl' }), value: 'nl' },
|
{ label: 'Azərbaycan dili', value: 'az' },
|
||||||
{ label: t('common.langEnglish', { lng: 'en' }), value: 'en' },
|
{ label: 'Deutsch', value: 'de' },
|
||||||
{ label: t('common.langFrench', { lng: 'fr' }), value: 'fr' },
|
{ label: 'English', value: 'en' },
|
||||||
{ label: t('common.langGerman', { lng: 'de' }), value: 'de' },
|
{ label: 'Español', value: 'es' },
|
||||||
{ label: t('common.langHebrew', { lng: 'he' }), value: 'he' },
|
{ label: 'Suomi', value: 'fi' },
|
||||||
{ label: t('common.langItalian', { lng: 'it' }), value: 'it' },
|
{ label: 'Français', value: 'fr' },
|
||||||
{ label: t('common.langJapanese', { lng: 'ja' }), value: 'ja' },
|
{ label: 'עִבְֿרִית', value: 'he' },
|
||||||
{ label: t('common.langKorean', { lng: 'ko' }), value: 'ko' },
|
{ label: 'Magyar Nyelv', value: 'hu' },
|
||||||
{ label: t('common.langPolish', { lng: 'pl' }), value: 'pl' },
|
{ label: 'Italiano', value: 'it' },
|
||||||
{ label: t('common.langBrPortuguese', { lng: 'pt_BR' }), value: 'pt_BR' },
|
{ label: '日本語', value: 'ja' },
|
||||||
{ label: t('common.langPortuguese', { lng: 'pt' }), value: 'pt' },
|
{ label: '한국어', value: 'ko' },
|
||||||
{ label: t('common.langRussian', { lng: 'ru' }), value: 'ru' },
|
{ label: 'Nederlands', value: 'nl' },
|
||||||
{
|
{ label: 'Polski', value: 'pl' },
|
||||||
label: t('common.langSimplifiedChinese', { lng: 'zh_CN' }),
|
{ label: 'Português', value: 'pt' },
|
||||||
value: 'zh_CN',
|
{ label: 'Português do Brasil', value: 'pt_BR' },
|
||||||
},
|
{ label: 'Русский', value: 'ru' },
|
||||||
{ label: t('common.langSpanish', { lng: 'es' }), value: 'es' },
|
{ label: 'Svenska', value: 'sv' },
|
||||||
{ label: t('common.langUkranian', { lng: 'ua' }), value: 'ua' },
|
{ label: 'Türkçe', value: 'tr' },
|
||||||
|
{ label: 'Украї́нська', value: 'ua' },
|
||||||
|
{ label: '简体中文', value: 'zh_CN' },
|
||||||
|
{ label: '漢語', value: 'zh_Hant' },
|
||||||
],
|
],
|
||||||
[t]
|
[]
|
||||||
);
|
);
|
||||||
const isLocalizationEnabled = useFeatureStatus('localization').isFeatureEnabled;
|
const isLocalizationEnabled = useFeatureStatus('localization').isFeatureEnabled;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user