Skip to content

Commit

Permalink
Only show nb and nn in language selector
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas-C committed Feb 23, 2024
1 parent 7996559 commit 1b7c9fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/containers/Masthead/MastheadContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import FeideLoginButton from "../../components/FeideLoginButton";
import config from "../../config";
import { SKIP_TO_CONTENT_ID } from "../../constants";
import { GQLMastHeadQuery, GQLMastHeadQueryVariables } from "../../graphqlTypes";
import { supportedLanguages } from "../../i18n";
import { useIsNdlaFilm, useUrnIds } from "../../routeHelpers";
import { useGraphQuery } from "../../util/runQueries";
import { constructNewPath } from "../../util/urlHelper";
Expand Down Expand Up @@ -114,7 +113,7 @@ const MastheadContainer = () => {
<ButtonWrapper>
<MastheadSearch subject={data?.subject} />
<LanguageSelectWrapper>
<LanguageSelector inverted={ndlaFilm} locales={supportedLanguages} onSelect={onChangeLanguage} />
<LanguageSelector inverted={ndlaFilm} locales={["nb", "nn"]} onSelect={onChangeLanguage} />
</LanguageSelectWrapper>
{config.feideEnabled && (
<FeideLoginButton>
Expand Down
2 changes: 1 addition & 1 deletion src/containers/Page/components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ const FooterWrapper = () => {
languageSelector={
<LanguageSelector
inverted
locales={supportedLanguages}
locales={["nb", "nn"]}
onSelect={onChangeLanguage}
triggerId="languageSelectorFooter"
/>
Expand Down

0 comments on commit 1b7c9fe

Please sign in to comment.