Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove trailing spaces from translations #2327

Merged
merged 1 commit into from May 20, 2021

Conversation

michebble
Copy link
Contributor

Issue#

Some returned strings have trailing whitespace. I found this when using Faker::Creature::Animal.unique.name.pluralize and the result was "turtle s". I checked the Faker translations and found 31 examples of a trailing whitespace before the closing quotation mark.

The trailing space was unexpected and it seems like it is unintentional in all present cases.

Description:

This PR finds and removes the trailing whitespace before the closing quotation mark of the affected translations.

Trailing spaces between the translation and its final quotation make
causes issues when performing actions on strings, such as pluralization.
@koic koic merged commit 3f78cb1 into faker-ruby:master May 20, 2021
@koic
Copy link
Member

koic commented May 20, 2021

Nice! It would be ideal if the build process could detect these.

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.

None yet

2 participants