Skip to content

Commit

Permalink
No saami alt-link for minndla
Browse files Browse the repository at this point in the history
  • Loading branch information
gunnarvelle committed Nov 1, 2024
1 parent 0af3e9a commit cbb1bb0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 0 additions & 2 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ export type ConfigType = {
learningPathDomain: string;
zendeskWidgetKey: string | undefined;
localGraphQLApi: boolean;
saamiEnabled: boolean;
feideDomain: string;
matomoUrl: string;
matomoSiteId: string;
Expand Down Expand Up @@ -135,7 +134,6 @@ const getServerSideConfig = (): ConfigType => {
learningPathDomain: getEnvironmentVariabel("LEARNINGPATH_DOMAIN", learningPathDomain(ndlaEnvironment)),
zendeskWidgetKey: getEnvironmentVariabel("NDLA_ZENDESK_WIDGET_KEY"),
localGraphQLApi: getEnvironmentVariabel("LOCAL_GRAPHQL_API", false),
saamiEnabled: getEnvironmentVariabel("SAAMI_ENABLED", false),
feideDomain: getEnvironmentVariabel("FEIDE_DOMAIN", feideDomain(ndlaEnvironment)),
matomoUrl: getEnvironmentVariabel("MATOMO_URL", "https://tall.ndla.no"),
matomoSiteId: getEnvironmentVariabel("MATOMO_SITE_ID", ""),
Expand Down
4 changes: 2 additions & 2 deletions src/containers/MyNdla/MyNdlaPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import ListResource from "../../components/MyNdla/ListResource";
import LoginModalContent from "../../components/MyNdla/LoginModalContent";
import SocialMediaMetadata from "../../components/SocialMediaMetadata";
import config from "../../config";
import { supportedLanguages } from "../../i18n";
import { myndlaLanguages } from "../../i18n";
import { routes } from "../../routeHelpers";
import { getResourceTypesForResource } from "../../util/folderHelpers";
import { getAllDimensions } from "../../util/trackingUtil";
Expand Down Expand Up @@ -118,7 +118,7 @@ const MyNdlaPage = () => {
<SocialMediaMetadata
title={t("htmlTitles.myNdlaPage")}
description={t("myNdla.description")}
trackableContent={{ supportedLanguages }}
trackableContent={{ myndlaLanguages }}

Check failure on line 121 in src/containers/MyNdla/MyNdlaPage.tsx

View workflow job for this annotation

GitHub Actions / Integration tests

Object literal may only specify known properties, and 'myndlaLanguages' does not exist in type 'TrackableContent'.

Check failure on line 121 in src/containers/MyNdla/MyNdlaPage.tsx

View workflow job for this annotation

GitHub Actions / Integration tests

Object literal may only specify known properties, and 'myndlaLanguages' does not exist in type 'TrackableContent'.
imageUrl={`${config.ndlaFrontendDomain}/static/ndla-ai.jpg`}
/>
<TitleWrapper>
Expand Down
5 changes: 2 additions & 3 deletions src/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,9 @@ import nb from "./messages/messagesNB";
import nn from "./messages/messagesNN";
import se from "./messages/messagesSE";

export const supportedLanguages: LocaleType[] = config.saamiEnabled
? ["nb", "nn", "en", "se"]
: ["nb", "nn", "en", "se"];
export const supportedLanguages: LocaleType[] = ["nb", "nn", "en", "se"];
export const preferredLanguages: LocaleType[] = ["nb", "nn", "en", "se"];
export const myndlaLanguages: LocaleType[] = ["nb", "nn", "en"];

type LocaleObject = {
name: string;
Expand Down

0 comments on commit cbb1bb0

Please sign in to comment.