Skip to content

Commit

Permalink
Merge pull request #668 from OpenConext/feature/select_locale
Browse files Browse the repository at this point in the history
Fix translation in language selector
  • Loading branch information
oharsta authored Feb 3, 2025
2 parents bc3e18e + a8cc248 commit c042f81
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions servicedesk-gui/src/components/LanguageSelector.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ export const LanguageSelector = () => {
const renderLocaleChooser = locale => {
return (
<a href={"locale"} className={`${I18n.locale === locale ? "is-active" : ""}`}
title={I18n.t("select_locale")}
title={I18n.t("footer.select_locale")}
onClick={handleChooseLocale(locale)}>
{I18n.translations[locale].code}
{I18n.t[locale].code}
</a>
);
}
Expand Down
1 change: 1 addition & 0 deletions servicedesk-gui/src/locale/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ const en = {
privacy: "Privacy policy",
privacyLink: "https://support.surfconext.nl/privacy-en",
surfLink: "https://surf.nl",
select_locale: "Select your preferred language"
},

}
Expand Down
1 change: 1 addition & 0 deletions servicedesk-gui/src/locale/nl.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ const nl = {
privacy: "Privacybeleid",
privacyLink: "https://support.surfconext.nl/privacy-nl",
surfLink: "https://surf.nl",
select_locale: "Kies jouw taal",
},

}
Expand Down

0 comments on commit c042f81

Please sign in to comment.