Skip to content

Commit

Permalink
Fix \\ being added before ' in translations
Browse files Browse the repository at this point in the history
This is caused by an unnecessary call to addslashes()

Resolves tanmuhittin#67
  • Loading branch information
q-- committed Oct 26, 2023
1 parent 80e3e40 commit c84dea7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TranslationFileTranslators/JsonArrayFileTranslator.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function handle($target_locale) : void
$this->line('Exists Skipping -> ' . $to_be_translated . ' : ' . $translated_strings[$to_be_translated]);
continue;
}
$translated_strings[$to_be_translated] = addslashes(Str::apiTranslateWithAttributes($to_be_translated, $target_locale, $this->base_locale));
$translated_strings[$to_be_translated] = Str::apiTranslateWithAttributes($to_be_translated, $target_locale, $this->base_locale);
$this->line($to_be_translated . ' : ' . $translated_strings[$to_be_translated]);
}
$this->write_translated_strings_to_file($translated_strings, $target_locale);
Expand Down

0 comments on commit c84dea7

Please sign in to comment.