Skip to content

Commit

Permalink
add Uzbek language and fallback to unlisted locales (#2186)
Browse files Browse the repository at this point in the history
  • Loading branch information
AhmedCodeGuy authored Jul 9, 2024
1 parent 9ce41d5 commit cebaf49
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Navbar/SettingsDrawer/WordByWordSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,8 @@ const WordByWordSection = () => {
render={(data: WordByWordTranslationsResponse) => {
const uniqueData = uniqBy(data.wordByWordTranslations, 'isoCode');

const options = uniqueData.map(({ isoCode }) => ({
label: getLocaleName(isoCode),
const options = uniqueData.map(({ isoCode, languageName }) => ({
label: getLocaleName(isoCode) || languageName,
value: isoCode,
}));

Expand Down
1 change: 1 addition & 0 deletions src/utils/locale.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ const LOCALE_NAME = {
ta: 'தமிழ்', // tamil
hi: 'हिन्दी',
ku: 'Kurdî',
uz: "o'zbek",
};

const LOCALE_NAME_TO_CODE = {
Expand Down

0 comments on commit cebaf49

Please sign in to comment.