diff --git a/.github/workflows/azure-prod-build-deploy.yml b/.github/workflows/azure-prod-build-deploy.yml index 06b85a1807..8a411bb351 100644 --- a/.github/workflows/azure-prod-build-deploy.yml +++ b/.github/workflows/azure-prod-build-deploy.yml @@ -67,11 +67,26 @@ jobs: repository: github/docs-early-access token: ${{ secrets.DOCUBOT_REPO_PAT }} path: docs-early-access - ref: main - name: Merge docs-early-access repo's folders run: .github/actions-scripts/merge-early-access.sh + - name: Clone Korean + uses: actions/checkout@dcd71f646680f2efd8db4afa5ad64fdcba30e748 + with: + repository: github/docs-internal.ko-kr + token: ${{ secrets.DOCUBOT_REPO_PAT }} + path: translations/ko-kr + + # As of Dec 2022, we still have checked in translations into + # the main repo. + # We're going to remove that later. + # For now, just delete the excess directories so they don't add + # unnecessary weight to the container image. + - name: Delete old checked in translation directories (TEMPORARY) + run: | + rm -fr translations/ko-KR + - name: 'Build and push image' uses: docker/build-push-action@1cb9d22b932e4832bb29793b7777ec860fc1cde0 with: diff --git a/lib/languages.js b/lib/languages.js index 9e309aba17..9707246cff 100644 --- a/lib/languages.js +++ b/lib/languages.js @@ -17,7 +17,7 @@ const possibleEnvVars = { 'de-DE': process.env.TRANSLATIONS_ROOT_DE_DE, 'fr-FR': process.env.TRANSLATIONS_ROOT_FR_FR, 'ru-RU': process.env.TRANSLATIONS_ROOT_RU_RU, - 'ko-KR': process.env.TRANSLATIONS_ROOT_KO_KR, + 'ko-kr': process.env.TRANSLATIONS_ROOT_KO_KR, } function getRoot(languageCode) { @@ -107,7 +107,7 @@ const languages = { code: 'ko', hreflang: 'ko', redirectPatterns: [/^\/kr/], - dir: getRoot('ko-KR'), + dir: getRoot('ko-kr'), wip: false, }, }