Skip to content

Commit

Permalink
fix: update language display [DHIS2-15293] (#1262)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomzemp authored May 31, 2023
1 parent fe240bc commit 46d6fd5
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/AppWrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,17 @@ const AppWrapper = () => {
}))
const uiLocales = (results[1] || []).map((locale) => ({
id: locale.locale,
displayName: locale.name,
displayName:
locale.name === locale.displayName
? locale.name
: `${locale.name}${locale.displayName}`,
}))
const dbLocales = (results[2] || []).map((locale) => ({
id: locale.locale,
displayName: locale.name,
displayName:
locale.name === locale.displayName
? locale.name
: `${locale.name}${locale.displayName}`,
}))
const systemDefault = { ...results[4] }

Expand Down

0 comments on commit 46d6fd5

Please sign in to comment.