@@ -62,6 +62,10 @@ export function correctTranslatedContentStrings(
6262 content = content . replace ( / \{ % - ? c u a n d o / g, ( match ) => {
6363 return match . replace ( 'cuando' , 'when' )
6464 } )
65+ // Translated block tags
66+ content = content . replaceAll ( '{% nota %}' , '{% note %}' )
67+ content = content . replaceAll ( '{%- nota %}' , '{%- note %}' )
68+ content = content . replaceAll ( '{%- nota -%}' , '{%- note -%}' )
6569 }
6670
6771 if ( context . code === 'ja' ) {
@@ -313,6 +317,8 @@ export function correctTranslatedContentStrings(
313317 content = content . replace ( / ( [ \w . - ] + \. [ \w . - ] + \. [ \w _ ] + ) % д а н н \w * [ ^ { ] * \{ % \s + \} / g, '{% data $1 %}' )
314318 // Variant where `% }` appears BEFORE `данных`: `PATH % }данных {% .`
315319 content = content . replace ( / ( [ \w . - ] + \. [ \w . - ] + \. [ \w _ ] + ) % \} д а н н \w * \s * \{ % \s * \. / g, '{% data $1 %}.' )
320+ // Variant where path precedes `%{% data }`: `PATH %{% data }.`
321+ content = content . replace ( / ( [ \w . - ] + \. [ \w . - ] + \. [ \w _ ] + ) % \{ % d a t a \s + \} / g, '{% data $1 %}' )
316322
317323 // Translated octicon names
318324 content = content . replaceAll (
@@ -334,6 +340,16 @@ export function correctTranslatedContentStrings(
334340 content = content . replace ( / \{ % - ? (?: i f v e r s i o n | e l s i f ) [ ^ % ] * ?o u [ ^ % ] * ?% \} / g, ( match ) => {
335341 return match . replace ( / o u / g, ' or ' )
336342 } )
343+ // Translated block tags
344+ content = content . replaceAll ( '{% remarque %}' , '{% note %}' )
345+ content = content . replaceAll ( '{%- remarque %}' , '{%- note %}' )
346+ content = content . replaceAll ( '{%- remarque -%}' , '{%- note -%}' )
347+ content = content . replaceAll ( '{% avertissement %}' , '{% warning %}' )
348+ content = content . replaceAll ( '{%- avertissement %}' , '{%- warning %}' )
349+ content = content . replaceAll ( '{%- avertissement -%}' , '{%- warning -%}' )
350+ content = content . replaceAll ( '{% conseil %}' , '{% tip %}' )
351+ content = content . replaceAll ( '{%- conseil %}' , '{%- tip %}' )
352+ content = content . replaceAll ( '{%- conseil -%}' , '{%- tip -%}' )
337353 }
338354
339355 if ( context . code === 'ko' ) {
@@ -370,6 +386,16 @@ export function correctTranslatedContentStrings(
370386 content = content . replace ( / \{ % - ? (?: i f v e r s i o n | e l s i f ) [ ^ % ] * ?o d e r [ ^ % ] * ?% \} / g, ( match ) => {
371387 return match . replace ( / o d e r / g, ' or ' )
372388 } )
389+ // Translated block tags
390+ content = content . replaceAll ( '{% Hinweis %}' , '{% note %}' )
391+ content = content . replaceAll ( '{%- Hinweis %}' , '{%- note %}' )
392+ content = content . replaceAll ( '{%- Hinweis -%}' , '{%- note -%}' )
393+ content = content . replaceAll ( '{% Warnung %}' , '{% warning %}' )
394+ content = content . replaceAll ( '{%- Warnung %}' , '{%- warning %}' )
395+ content = content . replaceAll ( '{%- Warnung -%}' , '{%- warning -%}' )
396+ content = content . replaceAll ( '{% Tipp %}' , '{% tip %}' )
397+ content = content . replaceAll ( '{%- Tipp %}' , '{%- tip %}' )
398+ content = content . replaceAll ( '{%- Tipp -%}' , '{%- tip -%}' )
373399 }
374400
375401 // --- Generic fixes (all languages) ---
0 commit comments