diff --git a/.github/workflows/test-de-build.yml b/.github/workflows/test-de-build.yml index cddbbf79cbcc..fbff5b0e3662 100644 --- a/.github/workflows/test-de-build.yml +++ b/.github/workflows/test-de-build.yml @@ -82,7 +82,7 @@ jobs: if: ${{ ! vars.SKIP_BUILD || ! vars.SKIP_FUNCTION }} with: repository: mdn/translated-content-de - path: mdn/translated-content + path: mdn/translated-content-de # See matching warning for mdn/content checkout step fetch-depth: 0 token: ${{ secrets.MDN_MTC_PAT }} @@ -120,7 +120,7 @@ jobs: # Remember, the mdn/content repo got cloned into `pwd` into a # sub-folder called "mdn/content" CONTENT_ROOT: ${{ github.workspace }}/mdn/content/files - CONTENT_TRANSLATED_ROOT: ${{ github.workspace }}/mdn/translated-content/files + CONTENT_TRANSLATED_ROOT: ${{ github.workspace }}/mdn/translated-content-de/files CONTRIBUTOR_SPOTLIGHT_ROOT: ${{ github.workspace }}/mdn/mdn-contributor-spotlight/contributors BLOG_ROOT: ${{ github.workspace }}/mdn/mdn-studio/content/posts CURRICULUM_ROOT: ${{ github.workspace }}/mdn/curriculum @@ -249,7 +249,7 @@ jobs: working-directory: cloud-function env: CONTENT_ROOT: ${{ github.workspace }}/mdn/content/files - CONTENT_TRANSLATED_ROOT: ${{ github.workspace }}/mdn/translated-content/files + CONTENT_TRANSLATED_ROOT: ${{ github.workspace }}/mdn/translated-content-de/files run: | npm ci npm run build-redirects diff --git a/build/index.ts b/build/index.ts index 724bd2cbca52..ccacb3b2b8ef 100644 --- a/build/index.ts +++ b/build/index.ts @@ -158,12 +158,6 @@ function injectSource(doc, document, metadata) { last_commit_url: getLastCommitURL(root, metadata.hash), filename, }; - if (doc.locale === "de") { - doc.source.github_url = doc.source.github_url.replace( - "translated-content", - "translated-content-de" - ); - } } export interface BuiltDocument { diff --git a/build/spas.ts b/build/spas.ts index 70218b1f75c2..df5b51c1bf78 100644 --- a/build/spas.ts +++ b/build/spas.ts @@ -507,7 +507,7 @@ async function fetchGitHubPRs(repo, count = 5) { } async function fetchRecentContributions() { - const repos = ["mdn/content", "mdn/translated-content"]; + const repos = ["mdn/content", "mdn/translated-content-de"]; const countPerRepo = 5; const pullRequests = ( await Promise.all( diff --git a/client/src/document/molecules/localized-content-note/index.tsx b/client/src/document/molecules/localized-content-note/index.tsx index b7879912e4a5..89301205d268 100644 --- a/client/src/document/molecules/localized-content-note/index.tsx +++ b/client/src/document/molecules/localized-content-note/index.tsx @@ -71,7 +71,7 @@ export function LocalizedContentNote({ const url = isActive ? activeLocaleNoteContent[locale]?.url || activeLocaleNoteContent["en-US"].url - : "https://github.com/mdn/translated-content/blob/main/PEERS_GUIDELINES.md#activating-a-locale"; + : "https://github.com/mdn/translated-content-de/blob/main/PEERS_GUIDELINES.md#activating-a-locale"; const type = isActive ? "neutral" : "warning"; return ; diff --git a/client/src/document/on-github.tsx b/client/src/document/on-github.tsx index f73b59ab8a3f..fa32810d024c 100644 --- a/client/src/document/on-github.tsx +++ b/client/src/document/on-github.tsx @@ -55,7 +55,7 @@ function NewIssueOnGitHubLink({ url.pathname = locale !== "en-US" - ? "/mdn/translated-content/issues/new" + ? "/mdn/translated-content-de/issues/new" : "/mdn/content/issues/new"; sp.set( "template", diff --git a/docs/envvars.md b/docs/envvars.md index 0d70412bb960..c66b48db3722 100644 --- a/docs/envvars.md +++ b/docs/envvars.md @@ -35,7 +35,7 @@ Path to the content files, cloned from https://github.com/mdn/content. **Default: `../translated-content/files`** Path to the translated content files, cloned from -https://github.com/mdn/translated-content. +https://github.com/mdn/translated-content-de. ### `CONTRIBUTOR_SPOTLIGHT_ROOT` diff --git a/libs/env/index.js b/libs/env/index.js index f6a71a7ad79e..9b16e91923b2 100644 --- a/libs/env/index.js +++ b/libs/env/index.js @@ -104,7 +104,7 @@ export const REPOSITORY_URLS = { export const ROOTS = [CONTENT_ROOT]; if (CONTENT_TRANSLATED_ROOT) { ROOTS.push(CONTENT_TRANSLATED_ROOT); - REPOSITORY_URLS[CONTENT_TRANSLATED_ROOT] = "mdn/translated-content"; + REPOSITORY_URLS[CONTENT_TRANSLATED_ROOT] = "mdn/translated-content-de"; } function correctPathFromEnv(envVarName) {