Message: Fix incorrect BR tags in Vue translations - refs BT#21327

pull/5125/head
christianbeeznst 2 years ago
parent cf1999b426
commit 585d50b764
  1. 3
      src/CoreBundle/Command/UpdateVueTranslations.php

@ -77,7 +77,8 @@ class UpdateVueTranslations extends Command
$newLanguage[$variable] = $this->replaceMarkers($translated);
}
$newLanguage = array_filter($newLanguage);
$newLanguageToString = json_encode($newLanguage, JSON_PRETTY_PRINT);
$newLanguageToString = json_encode($newLanguage, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES);
$newLanguageToString = str_replace('</br>', '<br>', $newLanguageToString);
$fileToSave = $vueLocalePath.$iso.'.json';
file_put_contents($fileToSave, $newLanguageToString);
$output->writeln("json file generated for iso $iso: $fileToSave");

Loading…
Cancel
Save