Skip to content

Commit

Permalink
Fixed undefined error
Browse files Browse the repository at this point in the history
  • Loading branch information
oharsta committed Feb 3, 2025
1 parent c042f81 commit a509e1c
Show file tree
Hide file tree
Showing 2 changed files with 5 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 @@ -16,10 +16,10 @@ export const LanguageSelector = () => {

const renderLocaleChooser = locale => {
return (
<a href={"locale"} className={`${I18n.locale === locale ? "is-active" : ""}`}
<a href={"locale"} className={`${I18n.locale === locale ? "is-active" : "not-active"}`}
title={I18n.t("footer.select_locale")}
onClick={handleChooseLocale(locale)}>
{I18n.t[locale].code}
{I18n.translations[locale].code}
</a>
);
}
Expand Down
3 changes: 3 additions & 0 deletions servicedesk-gui/src/components/LanguageSelector.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.sds--language-switcher {

}

0 comments on commit a509e1c

Please sign in to comment.