Skip to content

Commit

Permalink
Merge pull request #1309 from LedgerHQ/bugfix/llm-lld-languages-display
Browse files Browse the repository at this point in the history
bugfix(Languages): Inconsistency in languages display names
  • Loading branch information
LFBarreto committed Sep 20, 2022
2 parents 957351a + 04fb3f4 commit f2ac581
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 36 deletions.
6 changes: 6 additions & 0 deletions .changeset/honest-games-allow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"ledger-live-desktop": patch
"live-mobile": patch
---

Inconsistency in languages display names
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@ export const languageLabels = {
el: "Ελληνικά",
en: "English",
es: "Español",
fi: "suomi",
fi: "Suomi",
fr: "Français",
hu: "magyar",
it: "italiano",
hu: "Magyar",
it: "Italiano",
ja: "日本語",
ko: "한국어",
nl: "Nederlands",
no: "Norsk",
pl: "polski",
pt: "português",
pl: "Polski",
pt: "Português",
ru: "Русский",
sr: "српски",
sv: "svenska",
sr: "Cрпски",
sv: "Svenska",
tr: "Türkçe",
zh: "简体中文",
};
Expand Down
12 changes: 6 additions & 6 deletions apps/ledger-live-mobile/src/languages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@ export const languages = {
el: "Ελληνικά",
en: "English",
es: "Español",
fi: "suomi",
fi: "Suomi",
fr: "Français",
hu: "magyar",
it: "italiano",
hu: "Magyar",
it: "Italiano",
ja: "日本語",
ko: "한국어",
nl: "Nederlands",
no: "Norsk",
pl: "polski",
pl: "Polski",
pt: "Português",
ru: "Русский",
sr: "српски",
sv: "svenska",
sr: "Cрпски",
sv: "Svenska",
tr: "Türkçe",
zh: "简体中文",
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +5,7 @@ import { Text } from "@ledgerhq/native-ui";
import SettingsRow from "../../../components/SettingsRow";
import { ScreenName } from "../../../const";
import { useLocale } from "../../../context/Locale";

export const languageLabels = {
de: "Deutsch",
el: "Ελληνικά",
en: "English",
es: "Español",
fi: "suomi",
fr: "Français",
hu: "magyar",
it: "italiano",
ja: "日本語",
ko: "한국어",
nl: "Nederlands",
no: "Norsk",
pl: "polski",
pt: "português",
ru: "Русский",
sr: "српски",
sv: "svenska",
tr: "Türkçe",
zh: "简体中文",
};
import { languages } from "../../../languages";

const LanguageSettingsRow = () => {
const { locale } = useLocale();
Expand All @@ -46,7 +25,7 @@ const LanguageSettingsRow = () => {
onPress={onNavigate}
>
<Text variant={"body"} fontWeight={"medium"} color="primary.c80">
{languageLabels[locale] || locale}
{languages[locale] || locale}
</Text>
</SettingsRow>
);
Expand Down

0 comments on commit f2ac581

Please sign in to comment.