Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@davidwessman
Copy link
Collaborator

This is a frustating bug that has been open for many years:
https://issuetracker.google.com/issues/119256504?pli=1

Maybe one of the other APIs are more consistent.

- The newline replacement only worked when extra spaces were added
  by Google Translate API, which is not always happening.
- Adds some more tests to catch this and changes the replacement to
  be closer to replacing of interpolations.
- Fixes #595

This is a frustating bug that has been open for many years:
https://issuetracker.google.com/issues/119256504?pli=1

Maybe one of the other APIs are more consistent.
@glebm glebm merged commit 7b4eb29 into main Sep 15, 2024
@glebm glebm deleted the 595-google-translate-newline branch September 15, 2024 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Newline placeholder <br id=i18n /> is not replaced with newline after translation

3 participants