From cbb1bb00dc2152507c4f76cfa59f519471abf858 Mon Sep 17 00:00:00 2001 From: Gunnar Velle Date: Fri, 1 Nov 2024 09:47:32 +0100 Subject: [PATCH] No saami alt-link for minndla --- src/config.ts | 2 -- src/containers/MyNdla/MyNdlaPage.tsx | 4 ++-- src/i18n.ts | 5 ++--- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/config.ts b/src/config.ts index ae70a23944..dcf3848b59 100644 --- a/src/config.ts +++ b/src/config.ts @@ -100,7 +100,6 @@ export type ConfigType = { learningPathDomain: string; zendeskWidgetKey: string | undefined; localGraphQLApi: boolean; - saamiEnabled: boolean; feideDomain: string; matomoUrl: string; matomoSiteId: string; @@ -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", ""), diff --git a/src/containers/MyNdla/MyNdlaPage.tsx b/src/containers/MyNdla/MyNdlaPage.tsx index b66fee2496..11493ae379 100644 --- a/src/containers/MyNdla/MyNdlaPage.tsx +++ b/src/containers/MyNdla/MyNdlaPage.tsx @@ -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"; @@ -118,7 +118,7 @@ const MyNdlaPage = () => { diff --git a/src/i18n.ts b/src/i18n.ts index a4a353fa0e..0d592c4aac 100644 --- a/src/i18n.ts +++ b/src/i18n.ts @@ -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;