Skip to content

Commit 804fd8d

Browse files
authored
Ordering (github#35558)
1 parent 53aeea2 commit 804fd8d

File tree

7 files changed

+37
-41
lines changed

7 files changed

+37
-41
lines changed

.github/actions/clone-translations/action.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,6 @@ runs:
1717
token: ${{ inputs.token }}
1818
path: translations/zh-cn
1919

20-
- name: Clone Japanese
21-
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
22-
with:
23-
repository: github/docs-internal.ja-jp
24-
token: ${{ inputs.token }}
25-
path: translations/ja-jp
26-
2720
- name: Clone Spanish
2821
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
2922
with:
@@ -38,12 +31,19 @@ runs:
3831
token: ${{ inputs.token }}
3932
path: translations/pt-br
4033

41-
- name: Clone German
34+
- name: Clone Russian
4235
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
4336
with:
44-
repository: github/docs-internal.de-de
37+
repository: github/docs-internal.ru-ru
4538
token: ${{ inputs.token }}
46-
path: translations/de-de
39+
path: translations/ru-ru
40+
41+
- name: Clone Japanese
42+
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
43+
with:
44+
repository: github/docs-internal.ja-jp
45+
token: ${{ inputs.token }}
46+
path: translations/ja-jp
4747

4848
- name: Clone French
4949
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
@@ -52,12 +52,12 @@ runs:
5252
token: ${{ inputs.token }}
5353
path: translations/fr-fr
5454

55-
- name: Clone Russian
55+
- name: Clone German
5656
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
5757
with:
58-
repository: github/docs-internal.ru-ru
58+
repository: github/docs-internal.de-de
5959
token: ${{ inputs.token }}
60-
path: translations/ru-ru
60+
path: translations/de-de
6161

6262
- name: Clone Korean
6363
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8

.github/workflows/sync-search-elasticsearch.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
script: |
4949
// Edit this list for the definitive list of languages
5050
// (other than English) we want to index in Elasticsearch.
51-
const allNonEnglish = ["ja", "es", "pt", "zh", "ru", "fr", "ko", "de"]
51+
const allNonEnglish = ["zh", "es", "pt", "ru", "ja", "fr", "de", "ko"]
5252
const allPossible = ["en", ...allNonEnglish]
5353
5454
if (context.eventName === "workflow_run") {

.github/workflows/test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,15 @@ jobs:
4444
return [
4545
{ name: 'content', path: 'tests/content', },
4646
{ name: 'graphql', path: 'tests/graphql', },
47+
{ name: 'events', path: 'src/events/tests', },
48+
{ name: 'linting', path: 'tests/linting', },
4749
{ name: 'meta', path: 'tests/meta', },
48-
{ name: 'rendering', path: 'tests/rendering', },
4950
{ name: 'routing', path: 'tests/routing', },
50-
{ name: 'unit', path: 'tests/unit', },
51-
{ name: 'linting', path: 'tests/linting', },
51+
{ name: 'rendering', path: 'tests/rendering', },
5252
{ name: 'rendering-fixtures', path: 'tests/rendering-fixtures', },
53-
{ name: 'events', path: 'src/events/tests', },
5453
context.payload.repository.full_name === 'github/docs-internal' &&
5554
{ name: 'translations', path: 'tests/translations', },
55+
{ name: 'unit', path: 'tests/unit', },
5656
].filter(Boolean)
5757
5858
test:

.github/workflows/translation-health-report.yml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,29 +24,25 @@ jobs:
2424
fail-fast: false
2525
matrix:
2626
include:
27+
- language: zh
28+
language_dir: translations/zh-cn
29+
language_repo: github/docs-internal.zh-cn
30+
2731
- language: es
2832
language_dir: translations/es-es
2933
language_repo: github/docs-internal.es-es
3034

31-
- language: ja
32-
language_dir: translations/ja-jp
33-
language_repo: github/docs-internal.ja-jp
34-
3535
- language: pt
3636
language_dir: translations/pt-br
3737
language_repo: github/docs-internal.pt-br
3838

39-
- language: zh
40-
language_dir: translations/zh-cn
41-
language_repo: github/docs-internal.zh-cn
42-
4339
- language: ru
4440
language_dir: translations/ru-ru
4541
language_repo: github/docs-internal.ru-ru
4642

47-
- language: ko
48-
language_dir: translations/ko-kr
49-
language_repo: github/docs-internal.ko-kr
43+
- language: ja
44+
language_dir: translations/ja-jp
45+
language_repo: github/docs-internal.ja-jp
5046

5147
- language: fr
5248
language_dir: translations/fr-fr
@@ -56,6 +52,9 @@ jobs:
5652
language_dir: translations/de-de
5753
language_repo: github/docs-internal.de-de
5854

55+
- language: ko
56+
language_dir: translations/ko-kr
57+
language_repo: github/docs-internal.ko-kr
5958
steps:
6059
- name: Checkout the docs-internal repo
6160
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ FROM preview as production
107107

108108
# Override what was set for previews
109109
# Make this match the default of `Object.keys(languages)` in lib/languages.js
110-
ENV ENABLED_LANGUAGES "en,zh,ja,es,pt,de,fr,ru,ko"
110+
ENV ENABLED_LANGUAGES "en,zh,es,pt,ru,ja,fr,de,ko"
111111

112112
# Copy in all translations
113113
COPY --chown=node:node translations ./translations

contributing/search.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ You can also query our search endpoint directly at:
1919
`https://docs.github.com/search?version=<VERSION>&language=<LANGUAGE CODE>&filters=topics:<TOPIC>&query=<QUERY>`
2020

2121
- The VERSION can be any numbered GitHub Enterprise Server version (e.g., `2.22`, `3.0`), GitHub AE (`ghae`), or the Free pro team plan (`dotcom`).
22-
- The LANGUAGE CODE can be: `zh`, `de`, `en`, `es`, `ja`, or `pt`.
22+
- The LANGUAGE CODE can be one of: `zh`, `es`, `pt`, `ru`, `ja`, `fr`, `de`, `ko`
2323
- TOPIC can be any topics in [the allowed list of topics](/data/allowed-topics.js). The values in the `topics` attribute are **not** case sensitive, so filtering on `GitHub actions` or `github actions` will return the same result. **Note:** Currently, the topics filter only works for the dotcom version in the English language. We plan to expand this search query to other languages and versions in the future.
2424
- Any search QUERY you'd like.
2525

@@ -94,18 +94,15 @@ There's a separate search index for each combination of product and language. So
9494

9595
Index Name | Description
9696
---------- | -----------
97-
`github-docs-dotcom-zh` | GitHub.com Chinese
9897
`github-docs-dotcom-en` | GitHub.com English
98+
`github-docs-dotcom-zh` | GitHub.com Chinese
9999
`github-docs-dotcom-es` | GitHub.com Spanish
100-
`github-docs-dotcom-ja` | GitHub.com Japanese
101-
`github-docs-2.18-zh` | GitHub Enterprise 2.18 Chinese
102100
`github-docs-2.18-en` | GitHub Enterprise 2.18 English
101+
`github-docs-2.18-zh` | GitHub Enterprise 2.18 Chinese
103102
`github-docs-2.18-es` | GitHub Enterprise 2.18 Spanish
104-
`github-docs-2.18-ja` | GitHub Enterprise 2.18 Japanese
105-
`github-docs-2.17-zh` | GitHub Enterprise 2.17 Chinese
106103
`github-docs-2.17-en` | GitHub Enterprise 2.17 English
104+
`github-docs-2.17-zh` | GitHub Enterprise 2.17 Chinese
107105
`github-docs-2.17-es` | GitHub Enterprise 2.17 Spanish
108-
`github-docs-2.17-ja` | GitHub Enterprise 2.17 Japanese
109106

110107
## Records
111108

lib/languages.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ import path from 'path'
1010
dotenv.config()
1111

1212
const possibleEnvVars = {
13-
'es-es': process.env.TRANSLATIONS_ROOT_ES_ES,
1413
'zh-cn': process.env.TRANSLATIONS_ROOT_ZH_CN,
15-
'ja-jp': process.env.TRANSLATIONS_ROOT_JA_JP,
14+
'es-es': process.env.TRANSLATIONS_ROOT_ES_ES,
1615
'pt-br': process.env.TRANSLATIONS_ROOT_PT_BR,
17-
'de-de': process.env.TRANSLATIONS_ROOT_DE_DE,
18-
'fr-fr': process.env.TRANSLATIONS_ROOT_FR_FR,
1916
'ru-ru': process.env.TRANSLATIONS_ROOT_RU_RU,
17+
'ja-jp': process.env.TRANSLATIONS_ROOT_JA_JP,
18+
'fr-fr': process.env.TRANSLATIONS_ROOT_FR_FR,
19+
'de-de': process.env.TRANSLATIONS_ROOT_DE_DE,
2020
'ko-kr': process.env.TRANSLATIONS_ROOT_KO_KR,
2121
}
2222

0 commit comments

Comments
 (0)