Skip to content
New issue

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

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

Already on GitHub? # to your account

Empty Strings inside t function causes a false info of Added keys. #634

Open
christian1koch opened this issue Sep 22, 2022 · 0 comments
Open

Comments

@christian1koch
Copy link

christian1koch commented Sep 22, 2022

🐛 Bug Report

When you use the t function inside an empty string, and then extract the keys, you get the information "Added keys: 1". But in reality nothing is added, causing then failOnUpdates always to fail. This can be troublesome if you use failOnUpdates for testing purposes, and then having it fail without knowing why is there a key being added but doesn't get actually added.

To Reproduce

add an empty string to the t function = t("");

Expected behavior

It should either add the empty string to the file, or not say "Added keys: 1" when doing the extraction of keys.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant