File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -340,6 +340,10 @@ export function correctTranslatedContentStrings(
340340 content = content . replace ( / \{ % - ? (?: i f v e r s i o n | e l s i f ) [ ^ % ] * ?o u [ ^ % ] * ?% \} / g, ( match ) => {
341341 return match . replace ( / o u / g, ' or ' )
342342 } )
343+ // French decimal comma in version numbers: `3,16` → `3.16`
344+ content = content . replace ( / \{ % - ? (?: i f v e r s i o n | e l s i f ) [ ^ % ] * ?% \} / g, ( match ) => {
345+ return match . replace ( / ( \d ) , ( \d ) / g, '$1.$2' )
346+ } )
343347 // Translated block tags
344348 content = content . replaceAll ( '{% remarque %}' , '{% note %}' )
345349 content = content . replaceAll ( '{%- remarque %}' , '{%- note %}' )
@@ -460,6 +464,7 @@ export function correctTranslatedContentStrings(
460464
461465 // Common Latin-script typos across multiple languages.
462466 content = content . replaceAll ( '{% variables.' , '{% data variables.' )
467+ content = content . replaceAll ( '{% reusables.' , '{% data reusables.' )
463468 content = content . replaceAll ( '{% datavariables' , '{% data variables' )
464469
465470 // Empty `{% %}` corruptions where the tag name was removed.
You can’t perform that action at this time.
0 commit comments