Skip to content

Commit d506b00

Browse files
author
Peter Bengtsson
authored
Correct Korean Liquid around variables and reusables (#49829)
1 parent eb8ae92 commit d506b00

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

src/languages/lib/correct-translation-content.js

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,22 @@ export function correctTranslatedContentStrings(content, englishContent, context
2020
content = content.replaceAll('[AUTOTITLE"을 참조하세요.](', '[AUTOTITLE](')
2121
content = content.replaceAll('[ AUTOTITLE](', '[AUTOTITLE](')
2222
content = content.replaceAll('[ "AUTOTITLE](', '[AUTOTITLE](')
23+
content = content.replaceAll('[«AUTOTITLE»](', '[AUTOTITLE](')
2324

2425
if (context.code === 'ru') {
25-
// We've seen a lot of these in the Russian translations:
26+
// Low-hanging fruit for the data tag
2627
content = content.replaceAll('{% данных variables', '{% data variables')
28+
content = content.replaceAll('{% данными variables', '{% data variables')
29+
content = content.replaceAll('{% данных организации variables', '{% data variables')
30+
content = content.replaceAll('{% данным variables', '{% data variables')
2731
content = content.replaceAll('{% данных reusables', '{% data reusables')
32+
content = content.replaceAll('{% данными reusables', '{% data reusables')
2833
content = content.replaceAll('{% variables.', '{% data variables.')
34+
content = content.replaceAll('{% необработанного %}', '{% raw %}')
35+
content = content.replaceAll('{%- ifversion fpt или ghec %}', '{%- ifversion fpt or ghec %}')
36+
content = content.replaceAll('{% ifversion fpt или ghec %}', '{% ifversion fpt or ghec %}')
37+
content = content.replaceAll('{% endif _%}', '{% endif %}')
38+
content = content.replaceAll('{% конечным %}', '{% endif %}')
2939

3040
// For the rather custom Russian translation of
3141
// the content/get-started/learning-about-github/github-glossary.md page
@@ -38,7 +48,22 @@ export function correctTranslatedContentStrings(content, englishContent, context
3848
content = content.replaceAll('{{ глоссарий.description }}', '{{ glossary.description }}')
3949
}
4050

51+
if (context.code === 'ja') {
52+
// Low-hanging fruit for the data tag
53+
content = content.replaceAll('{% データ variables', '{% data variables')
54+
content = content.replaceAll('{% データvariables', '{% data variables')
55+
}
56+
57+
if (context.code === 'zh') {
58+
// Low-hanging fruit for the data tag
59+
content = content.replaceAll('{% 数据variables', '{% data variables')
60+
}
61+
4162
if (context.code === 'ko') {
63+
// Low-hanging fruit for the data tag
64+
content = content.replaceAll('{% 데이터 variables', '{% data variables')
65+
content = content.replaceAll('{% 데이터 reusables.', '{% data reusables.')
66+
4267
// For the rather custom Korean translation of github-glossary.md
4368
// Let's try to salvage based on what's in
4469
// docs-internal.ko-kr/content/get-started/learning-about-github/github-glossary.md

0 commit comments

Comments
 (0)