1
0
mirror of synced 2025-12-30 03:01:36 -05:00

Use translated content from the Microsoft repos (#28703)

* use content repos provided by msft

* remove additional languages for parity

* remove body from translation PRs
This commit is contained in:
Hector Alfaro
2022-07-12 13:31:47 -04:00
committed by GitHub
parent 28deb383b4
commit d243bbae4c
2 changed files with 37 additions and 18 deletions

View File

@@ -1,6 +1,5 @@
#!/usr/bin/env node
import fs from 'fs'
import github from '@actions/github'
const OPTIONS = Object.fromEntries(
@@ -33,7 +32,6 @@ const {
BASE,
HEAD,
LANGUAGE,
BODY_FILE,
GITHUB_TOKEN,
} = OPTIONS
const [OWNER, REPO] = GITHUB_REPOSITORY.split('/')
@@ -121,7 +119,7 @@ async function main() {
title: TITLE,
base: BASE,
head: HEAD,
body: fs.readFileSync(BODY_FILE, 'utf8'),
body: `New translation batch for ${LANGUAGE}. You can see the log in [\`translations/log/${LANGUAGE}-resets.csv\`](https://github.com/${OWNER}/${REPO}/tree/${HEAD}/translations/log/${LANGUAGE}-resets.csv).`,
labels: ['translation-batch', `translation-batch-${LANGUAGE}`],
owner: OWNER,
repo: REPO,

View File

@@ -30,26 +30,47 @@ jobs:
max-parallel: 1
matrix:
include:
# TODO: replace language_repos with actual repos once created
# - language: pt
# crowdin_language: pt-BR
# language_dir: translations/pt-BR
# language_repo: github/docs-translations-pt-br
- language: es
crowdin_language: es-ES
language_dir: translations/es-ES
language_repo: github/docs-localization-test-es-es
language_repo: github/docs-internal.es-es
# - language: cn
# crowdin_language: zh-CN
# language_dir: translations/zh-CN
# language_repo: github/docs-translations-zh-cn
- language: ja
crowdin_language: ja-JP
language_dir: translations/ja-JP
language_repo: github/docs-internal.ja-jp
# - language: ja
# crowdin_language: ja
# language_dir: translations/ja-JP
# language_repo: github/docs-translations-ja-jp
- language: pt
crowdin_language: pt-BR
language_dir: translations/pt-BR
language_repo: github/docs-internal.pt-br
- language: cn
crowdin_language: zh-CN
language_dir: translations/zh-CN
language_repo: github/docs-internal.zh-cn
# We'll be ready to add the following languages in a future effort.
# - language: ru
# crowdin_language: ru-RU
# language_dir: translations/ru-RU
# language_repo: github/docs-internal.ru-ru
# - language: ko
# crowdin_language: ko-KR
# language_dir: translations/ko-KR
# language_repo: github/docs-internal.ko-kr
# - language: fr
# crowdin_language: fr-FR
# language_dir: translations/fr-FR
# language_repo: github/docs-internal.fr-fr
# - language: de
# crowdin_language: de-DE
# language_dir: translations/de-DE
# language_repo: github/docs-internal.de-de
# TODO: replace the branch name
steps: