@@ -490,6 +490,26 @@ export function correctTranslatedContentStrings(
490490 '{% data variables.product.prodname_dotcom %} ホステッド ランナー{% ifversion default-setup-self-hosted-runners-GHEC %}なしのエンタープライズに対して {% data variables.product.prodname_code_scanning %} を有効化、構成、および無効化できます。 {% data variables.product.prodname_code_scanning_caps %} を使用すると、コードの脆弱性やエラーをスキャンできます。' ,
491491 '{% data variables.product.prodname_dotcom %} ホステッド ランナー{% ifversion default-setup-self-hosted-runners-GHEC %}なしのエンタープライズに対して{% endif %} {% data variables.product.prodname_code_scanning %} を有効化、構成、および無効化できます。 {% data variables.product.prodname_code_scanning_caps %} を使用すると、コードの脆弱性やエラーをスキャンできます。' ,
492492 )
493+
494+ // [SCRAPE-6604] Per-file fixes for ja pages whose intro/title Liquid was
495+ // structurally scrambled. Scoped by unique broken substring so they are
496+ // no-ops everywhere except the affected file.
497+
498+ // code-security/.../enabling-github-advanced-security-for-your-enterprise.md
499+ // (title): `{% ifversion ghas-products %}` opens but never closes.
500+ // Append `{% endif %}`. (versions: ghes: '*')
501+ content = content . replaceAll (
502+ '{% ifversion ghas-products %}製品をあなたの企業のために有効にする\n' ,
503+ '{% ifversion ghas-products %}製品をあなたの企業のために有効にする{% endif %}\n' ,
504+ )
505+
506+ // admin/managing-iam/.../configuring-scim-provisioning-with-okta.md
507+ // (intro): spurious `{% endif %}` after `上で` — one too many endifs for
508+ // the single `{% ifversion ghec %}` opener. Drop the stray closer.
509+ content = content . replaceAll (
510+ '{% endif %} 上で{% endif %}エンタープライズとの通信を実行できるように Okta を構成する方法を学習します。' ,
511+ '{% endif %} 上でエンタープライズとの通信を実行できるように Okta を構成する方法を学習します。' ,
512+ )
493513 }
494514
495515 if ( context . code === 'pt' ) {
@@ -671,6 +691,15 @@ export function correctTranslatedContentStrings(
671691 // inside `{% data variables.product. prodname_ghe_cloud %}`. The generic
672692 // pt regex above already restored it, but here we only need to confirm —
673693 // no extra per-file replacement required.
694+
695+ // [SCRAPE-6604] Per-file fix:
696+ // organizations/.../requiring-two-factor-authentication-in-your-organization.md
697+ // (intro): `{% ifversion fpt or ghec %}...{% else %}` never closes.
698+ // Append `{% endif %}` at the end of the intro value.
699+ content = content . replaceAll (
700+ 'tornando mais difícil para os atores mal-intencionados acessarem os repositórios e as configurações de uma organização.' ,
701+ 'tornando mais difícil para os atores mal-intencionados acessarem os repositórios e as configurações de uma organização.{% endif %}' ,
702+ )
674703 }
675704
676705 if ( context . code === 'zh' ) {
@@ -800,6 +829,12 @@ export function correctTranslatedContentStrings(
800829 // Pattern: `{% 捕获IDENTIFIER %}` (no space) or `{% 捕获 IDENTIFIER %}` (with space)
801830 // → `{% capture IDENTIFIER %}`
802831 content = content . replace ( / \{ % ( - ? ) \s * 捕 获 \s * ( \w + ) \s * ( - ? ) % \} / g, '{%$1 capture $2 $3%}' )
832+
833+ // [SCRAPE-6604] Per-file fix:
834+ // organizations/.../permissions-of-custom-organization-roles.md (intro):
835+ // `{% ifversion org-custom-role-with-repo-permissions %}...{% else %}` never
836+ // closes. Append `{% endif %}` at the end of the intro value.
837+ content = content . replaceAll ( "{% else %} 的访问权限。'" , "{% else %} 的访问权限{% endif %}。'" )
803838 }
804839
805840 if ( context . code === 'ru' ) {
@@ -1433,6 +1468,15 @@ export function correctTranslatedContentStrings(
14331468 '자체 호스팅된 실행기에서 실행 중인 {% data variables.product.prodname_dependabot %}에 대한 액세스를 구성할 수도 있습니다.{% data variables.product.prodname_dependabot %}' ,
14341469 '자체 호스팅된 실행기에서 실행 중인 {% data variables.product.prodname_dependabot %}에 대한 액세스를 구성할 수도 있습니다.{% endif %}' ,
14351470 )
1471+
1472+ // [SCRAPE-6604] Per-file fix:
1473+ // organizations/.../permissions-of-custom-organization-roles.md (intro):
1474+ // `{% ifversion org-custom-role-with-repo-permissions %}...{% else %}` never
1475+ // closes. Append `{% endif %}` at the end of the intro value.
1476+ content = content . replaceAll (
1477+ "{% else %}에 대한 액세스를 제어할 수 있습니다.'" ,
1478+ "{% else %}에 대한 액세스를 제어할 수 있습니다.{% endif %}'" ,
1479+ )
14361480 }
14371481
14381482 if ( context . code === 'de' ) {
0 commit comments