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:
fallenbagel
2023-11-07 02:31:25 +05:00
parent 31bc6ca612
commit dc67aaaf53
3 changed files with 5 additions and 5 deletions

View File

@@ -25,7 +25,7 @@ export type AvailableLocale =
| 'sq'
| 'sr'
| 'sv'
| 'ua'
| 'uk'
| 'zh-CN'
| 'zh-TW';
@@ -127,8 +127,8 @@ export const availableLanguages: AvailableLanguageObject = {
code: 'ja',
display: '日本語',
},
ua: {
code: 'ua',
uk: {
code: 'uk',
display: 'українська',
},
ko: {

View File

@@ -73,8 +73,8 @@ const loadLocaleData = (locale: AvailableLocale): Promise<any> => {
return import('../i18n/locale/sr.json');
case 'sv':
return import('../i18n/locale/sv.json');
case 'ua':
return import('../i18n/locale/ua.json');
case 'uk':
return import('../i18n/locale/uk.json');
case 'zh-CN':
return import('../i18n/locale/zh_Hans.json');
case 'zh-TW':