@@ -73,9 +73,22 @@ export function correctTranslatedContentStrings(
7373 content = content . replace ( / \{ % - ? p a r a (?: l a ) ? e n t r a d a e n / g, ( match ) => {
7474 return match . replace ( / p a r a (?: l a ) ? e n t r a d a e n / , 'for entry in' )
7575 } )
76+ // `{% para el modelo en X %}` — "for the model in" = for model in
77+ content = content . replace ( / \{ % - ? p a r a e l m o d e l o e n / g, ( match ) => {
78+ return match . replace ( 'para el modelo en' , 'for model in' )
79+ } )
7680 content = content . replace ( / \{ % - ? c u a n d o / g, ( match ) => {
7781 return match . replace ( 'cuando' , 'when' )
7882 } )
83+ // `{% icono "X" ... %}` — "icono" = "icon" = octicon
84+ content = content . replaceAll ( '{% icono ' , '{% octicon ' )
85+ content = content . replaceAll ( '{%- icono ' , '{%- octicon ' )
86+ // `{% octicon "bombilla" %}` — Spanish "bombilla" = "light-bulb" (translated octicon name)
87+ content = content . replaceAll ( '{% octicon "bombilla"' , '{% octicon "light-bulb"' )
88+ content = content . replaceAll ( '{%- octicon "bombilla"' , '{%- octicon "light-bulb"' )
89+ // `{% capturar X %}` — "capturar" = "to capture" = capture
90+ content = content . replaceAll ( '{% capturar ' , '{% capture ' )
91+ content = content . replaceAll ( '{%- capturar ' , '{%- capture ' )
7992 // Translated block tags
8093 content = content . replaceAll ( '{% nota %}' , '{% note %}' )
8194 content = content . replaceAll ( '{%- nota %}' , '{%- note %}' )
@@ -216,6 +229,9 @@ export function correctTranslatedContentStrings(
216229 // `{% ウィンドウズ %}` — "Windows" = windows (platform tag)
217230 content = content . replaceAll ( '{% ウィンドウズ %}' , '{% windows %}' )
218231 content = content . replaceAll ( '{%- ウィンドウズ %}' , '{%- windows %}' )
232+ // `{% ウィンドウ %}` — "Window" (without ズ suffix) = windows (alternate transliteration)
233+ content = content . replaceAll ( '{% ウィンドウ %}' , '{% windows %}' )
234+ content = content . replaceAll ( '{%- ウィンドウ %}' , '{%- windows %}' )
219235 }
220236
221237 if ( context . code === 'pt' ) {
@@ -403,6 +419,9 @@ export function correctTranslatedContentStrings(
403419 // `{% Linux %}` — capitalized linux platform tag
404420 content = content . replaceAll ( '{% Linux %}' , '{% linux %}' )
405421 content = content . replaceAll ( '{%- Linux %}' , '{%- linux %}' )
422+ // `{% джетмозги %}` — Russian literal translation of "JetBrains" (джет=jet, мозги=brains)
423+ content = content . replaceAll ( '{% джетмозги %}' , '{% jetbrains %}' )
424+ content = content . replaceAll ( '{%- джетмозги %}' , '{%- jetbrains %}' )
406425 // Fix double quotes in Russian YAML files that cause parsing errors
407426 content = content . replace ( / h r e f = " " h t t p s : \/ \/ / g, 'href="https://' )
408427
@@ -493,6 +512,27 @@ export function correctTranslatedContentStrings(
493512 // `{% éclipse %}` — French accent on "eclipse" platform tag
494513 content = content . replaceAll ( '{% éclipse %}' , '{% eclipse %}' )
495514 content = content . replaceAll ( '{%- éclipse %}' , '{%- eclipse %}' )
515+ // `{% données_reutilisables.X %}` — underscore form of "données réutilisables" (no accent)
516+ content = content . replaceAll ( '{% données_reutilisables.' , '{% data reusables.' )
517+ content = content . replaceAll ( '{%- données_reutilisables.' , '{%- data reusables.' )
518+ // `{% données_réutilisables.X %}` — underscore form with accent
519+ content = content . replaceAll ( '{% données_réutilisables.' , '{% data reusables.' )
520+ content = content . replaceAll ( '{%- données_réutilisables.' , '{%- data reusables.' )
521+ // `{% composants réutilisables.X %}` — "composants" = "components" as alias for data reusables
522+ content = content . replaceAll ( '{% composants réutilisables.' , '{% data reusables.' )
523+ content = content . replaceAll ( '{%- composants réutilisables.' , '{%- data reusables.' )
524+ // Fully-translated `{% données réutilisables propriétés-personnalisées valeurs-requises %}`
525+ // → `{% data reusables.organizations.custom-properties-required-values %}`
526+ // Note: the generic `{% données ` → `{% data ` fix above may already have transformed
527+ // `données` to `data`, so we match both the original and the partially-corrected form.
528+ content = content . replaceAll (
529+ '{% données réutilisables propriétés-personnalisées valeurs-requises %}' ,
530+ '{% data reusables.organizations.custom-properties-required-values %}' ,
531+ )
532+ content = content . replaceAll (
533+ '{% data réutilisables propriétés-personnalisées valeurs-requises %}' ,
534+ '{% data reusables.organizations.custom-properties-required-values %}' ,
535+ )
496536 // Remove orphaned {% endif %} tags when no ifversion/elsif opener exists in the content.
497537 // Caused by translations where only the closing tag survived (e.g. user-api.md reusable).
498538 if (
@@ -542,6 +582,12 @@ export function correctTranslatedContentStrings(
542582 // `{% 윈도우즈 %}` — Korean transliteration of "windows"
543583 content = content . replaceAll ( '{% 윈도우즈 %}' , '{% windows %}' )
544584 content = content . replaceAll ( '{%- 윈도우즈 %}' , '{%- windows %}' )
585+ // `{% 엔드맥 %}` — Korean translation of "endmac" (end + mac)
586+ content = content . replaceAll ( '{% 엔드맥 %}' , '{% endmac %}' )
587+ content = content . replaceAll ( '{%- 엔드맥 %}' , '{%- endmac %}' )
588+ // `{% 주석 끝 %}` — Korean "주석 끝" (note end) = endnote
589+ content = content . replaceAll ( '{% 주석 끝 %}' , '{% endnote %}' )
590+ content = content . replaceAll ( '{%- 주석 끝 %}' , '{%- endnote %}' )
545591 }
546592
547593 if ( context . code === 'de' ) {
0 commit comments