Skip to content

Commit

Permalink
Merge pull request #32274 from github/repo-sync
Browse files Browse the repository at this point in the history
Repo sync
  • Loading branch information
docs-bot authored Mar 28, 2024
2 parents 9c033c8 + 61fc247 commit c2253bc
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .github/workflows/validate-github-github-docs-urls.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ jobs:
steps:
- name: Check out repo's default branch
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
# Picking this number is a "best guess". If we make it too large,
# the checkout will take potentially unnecessariily long.
# This reduces the chance that tj-actions/changed-files has to
# fetch deeper history. But if it needs to, it will.
fetch-depth: 10

- uses: ./.github/actions/node-npm-setup

Expand Down Expand Up @@ -100,6 +106,7 @@ jobs:
# workaround for the time being.
# First, gather the URLs that were relevant
- name: Get changed content/data files
if: ${{ github.event_name == 'pull_request' }}
id: changed-files
uses: tj-actions/changed-files@77af4bed286740ef1a6387dc4e4e4dec39f96054 # v43.0.0
with:
Expand All @@ -109,6 +116,7 @@ jobs:
safe_output: false
files: |
content/**
- name: Generate PR comment
if: ${{ github.event_name == 'pull_request' && steps.changed-files.outputs.any_changed == 'true' }}
env:
Expand Down
11 changes: 10 additions & 1 deletion src/languages/lib/correct-translation-content.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ export function correctTranslatedContentStrings(content, englishContent, context
content = content.replaceAll('{% данных variables', '{% data variables')
content = content.replaceAll('{% данными variables', '{% data variables')
content = content.replaceAll('{% данных организации variables', '{% data variables')
content = content.replaceAll('{% данным variables', '{% data variables')
content = content.replaceAll('{% данным variables.', '{% data variables.')
content = content.replaceAll('{% данные variables.', '{% data variables.')
content = content.replaceAll('{% данных reusables', '{% data reusables')
content = content.replaceAll('{% данными reusables', '{% data reusables')
content = content.replaceAll('{% variables.', '{% data variables.')
Expand All @@ -36,6 +37,14 @@ export function correctTranslatedContentStrings(content, englishContent, context
content = content.replaceAll('{% ifversion fpt или ghec %}', '{% ifversion fpt or ghec %}')
content = content.replaceAll('{% endif _%}', '{% endif %}')
content = content.replaceAll('{% конечным %}', '{% endif %}')
content = content.replaceAll('{% переменных данных.', '{% data variables.')
content = content.replaceAll('{% повторно используемых данных.', '{% data reusables.')
content = content.replaceAll('{% примечание %}', '{% note %}')
content = content.replaceAll('{% конечных головщиков %}', '{% endrowheaders %}')
content = content.replaceAll('{% данных для повторного использования.', '{% data reusables.')
content = content.replaceAll('{% еще %}', '{% else %}')
content = content.replaceAll('{% необработанные %}', '{% raw %}')
content = content.replaceAll('{% подсказки %}', '{% tip %}')

// For the rather custom Russian translation of
// the content/get-started/learning-about-github/github-glossary.md page
Expand Down

0 comments on commit c2253bc

Please sign in to comment.