@@ -463,6 +463,16 @@ export function correctTranslatedContentStrings(
463463 // `{% indented_data_reference 再利用可能.X.Y spaces=N %}` — translated path
464464 content = content . replace ( / ( \{ % - ? \s * i n d e n t e d _ d a t a _ r e f e r e n c e \s + ) 再 利 用 可 能 \. / g, '$1reusables.' )
465465
466+ // `{% ifversion コマンド パレット %}` — translated flag name "command palette" = command-palette
467+ content = content . replaceAll (
468+ '{% ifversion コマンド パレット %}' ,
469+ '{% ifversion command-palette %}' ,
470+ )
471+ content = content . replaceAll (
472+ '{%- ifversion コマンド パレット %}' ,
473+ '{%- ifversion command-palette %}' ,
474+ )
475+
466476 // [SCRAPE-6548] Per-file fixes for ja pages whose intro/title/shortTitle
467477 // Liquid was structurally scrambled (orphan endif, swapped tag order,
468478 // unclosed ifversion). Each replacement is scoped by the unique broken
@@ -649,6 +659,10 @@ export function correctTranslatedContentStrings(
649659 content = content . replace ( / \{ % - ? (?: i f v e r s i o n | e l s i f | i f ) [ ^ % ] * ?o u [ ^ % ] * ?% \} / g, ( match ) => {
650660 return match . replace ( / o u / g, ' or ' )
651661 } )
662+ // Portuguese "não" for "not" in ifversion/elsif/if tags (e.g. `{% ifversion não ghes %}`)
663+ content = content . replace ( / \{ % - ? (?: i f v e r s i o n | e l s i f | i f ) [ ^ % ] * ?\b n ã o \b [ ^ % ] * ?% \} / g, ( match ) => {
664+ return match . replace ( / \b n ã o \b / g, 'not' )
665+ } )
652666 // Fully translated reusable path in audit log article:
653667 // `{% dados agrupados por categoria.complemento.audit_log.reference-grouped-by-category %}`
654668 content = content . replaceAll (
@@ -838,6 +852,16 @@ export function correctTranslatedContentStrings(
838852 content = content . replaceAll ( '{%- 行标头 %}' , '{%- rowheaders %}' )
839853 content = content . replaceAll ( '{% 行标题 %}' , '{% rowheaders %}' )
840854 content = content . replaceAll ( '{%- 行标题 %}' , '{%- rowheaders %}' )
855+
856+ // `{% ifversion 命令面板 %}` — translated flag name "command panel" = command-palette
857+ content = content . replaceAll ( '{% ifversion 命令面板 %}' , '{% ifversion command-palette %}' )
858+ content = content . replaceAll ( '{%- ifversion 命令面板 %}' , '{%- ifversion command-palette %}' )
859+ // `{% ifversion 子问题 %}` — translated flag name "sub-issues" (子问题)
860+ content = content . replaceAll ( '{% ifversion 子问题 %}' , '{% ifversion sub-issues %}' )
861+ content = content . replaceAll ( '{%- ifversion 子问题 %}' , '{%- ifversion sub-issues %}' )
862+ // `{% ifversion 问题类型 %}` — translated flag name "issue types" = issue-types
863+ content = content . replaceAll ( '{% ifversion 问题类型 %}' , '{% ifversion issue-types %}' )
864+ content = content . replaceAll ( '{%- ifversion 问题类型 %}' , '{%- ifversion issue-types %}' )
841865 // `{% 结束行标题 %}` / `{% 结束行标头 %}` / `{% 结束行头 %}` — endrowheaders
842866 content = content . replaceAll ( '{% 结束行标题 %}' , '{% endrowheaders %}' )
843867 content = content . replaceAll ( '{%- 结束行标题 %}' , '{%- endrowheaders %}' )
@@ -1636,6 +1660,31 @@ export function correctTranslatedContentStrings(
16361660 content = content . replaceAll ( '{% 옥티콘 ' , '{% octicon ' )
16371661 content = content . replaceAll ( '{%- 옥티콘 ' , '{%- octicon ' )
16381662
1663+ // `{% ifversion 명령 팔레트 %}` — translated flag name "command palette" = command-palette
1664+ content = content . replaceAll ( '{% ifversion 명령 팔레트 %}' , '{% ifversion command-palette %}' )
1665+ content = content . replaceAll ( '{%- ifversion 명령 팔레트 %}' , '{%- ifversion command-palette %}' )
1666+ // `{% ifversion 하위 문제 %}` — translated flag name "sub-issues" (하위 문제)
1667+ content = content . replaceAll ( '{% ifversion 하위 문제 %}' , '{% ifversion sub-issues %}' )
1668+ content = content . replaceAll ( '{%- ifversion 하위 문제 %}' , '{%- ifversion sub-issues %}' )
1669+ // `{% ifversion 리포지토리-규칙 관리 %}` — translated flag name "repository-rules management"
1670+ content = content . replaceAll (
1671+ '{% ifversion 리포지토리-규칙 관리 %}' ,
1672+ '{% ifversion repo-rules-management %}' ,
1673+ )
1674+ content = content . replaceAll (
1675+ '{%- ifversion 리포지토리-규칙 관리 %}' ,
1676+ '{%- ifversion repo-rules-management %}' ,
1677+ )
1678+ // `{% ifversion 업데이트 알림 설정-22 %}` — translated flag name "update notification settings-22"
1679+ content = content . replaceAll (
1680+ '{% ifversion 업데이트 알림 설정-22 %}' ,
1681+ '{% ifversion update-notification-settings-22 %}' ,
1682+ )
1683+ content = content . replaceAll (
1684+ '{%- ifversion 업데이트 알림 설정-22 %}' ,
1685+ '{%- ifversion update-notification-settings-22 %}' ,
1686+ )
1687+
16391688 // `{% data Variables.` — capital V in "Variables" (Korean translator capitalised the word)
16401689 content = content . replaceAll ( '{% data Variables.' , '{% data variables.' )
16411690 content = content . replaceAll ( '{%- data Variables.' , '{%- data variables.' )
@@ -1936,6 +1985,16 @@ export function correctTranslatedContentStrings(
19361985 // Translated tag name `{% eingerucktes_datenverweis ... %}` → `{% indented_data_reference ... %}`
19371986 content = content . replaceAll ( '{% eingerucktes_datenverweis ' , '{% indented_data_reference ' )
19381987 content = content . replaceAll ( '{%- eingerucktes_datenverweis ' , '{%- indented_data_reference ' )
1988+ // `{% ifversion unveränderliche Versionen %}` — translated flag name
1989+ // "immutable releases" = immutable-releases
1990+ content = content . replaceAll (
1991+ '{% ifversion unveränderliche Versionen %}' ,
1992+ '{% ifversion immutable-releases %}' ,
1993+ )
1994+ content = content . replaceAll (
1995+ '{%- ifversion unveränderliche Versionen %}' ,
1996+ '{%- ifversion immutable-releases %}' ,
1997+ )
19391998
19401999 // [SCRAPE-6548] Per-file fix:
19412000 // organizations/.../permissions-of-custom-organization-roles.md (intro):
0 commit comments