mirror of
https://github.com/fallenbagel/jellyseerr.git
synced 2026-01-01 12:18:35 -05:00
fix(langcode): fixes the ukranian language code
This changes the ukranian language code from ua to uk to fit to ISO 639-1 format that the tmdb api uses. fix #504
This commit is contained in:
@@ -25,7 +25,7 @@ export type AvailableLocale =
|
|||||||
| 'sq'
|
| 'sq'
|
||||||
| 'sr'
|
| 'sr'
|
||||||
| 'sv'
|
| 'sv'
|
||||||
| 'ua'
|
| 'uk'
|
||||||
| 'zh-CN'
|
| 'zh-CN'
|
||||||
| 'zh-TW';
|
| 'zh-TW';
|
||||||
|
|
||||||
@@ -127,8 +127,8 @@ export const availableLanguages: AvailableLanguageObject = {
|
|||||||
code: 'ja',
|
code: 'ja',
|
||||||
display: '日本語',
|
display: '日本語',
|
||||||
},
|
},
|
||||||
ua: {
|
uk: {
|
||||||
code: 'ua',
|
code: 'uk',
|
||||||
display: 'українська',
|
display: 'українська',
|
||||||
},
|
},
|
||||||
ko: {
|
ko: {
|
||||||
|
|||||||
@@ -73,8 +73,8 @@ const loadLocaleData = (locale: AvailableLocale): Promise<any> => {
|
|||||||
return import('../i18n/locale/sr.json');
|
return import('../i18n/locale/sr.json');
|
||||||
case 'sv':
|
case 'sv':
|
||||||
return import('../i18n/locale/sv.json');
|
return import('../i18n/locale/sv.json');
|
||||||
case 'ua':
|
case 'uk':
|
||||||
return import('../i18n/locale/ua.json');
|
return import('../i18n/locale/uk.json');
|
||||||
case 'zh-CN':
|
case 'zh-CN':
|
||||||
return import('../i18n/locale/zh_Hans.json');
|
return import('../i18n/locale/zh_Hans.json');
|
||||||
case 'zh-TW':
|
case 'zh-TW':
|
||||||
|
|||||||
Reference in New Issue
Block a user