Skip to content
This repository has been archived by the owner on May 11, 2021. It is now read-only.

Make discarding empty strings optional #12

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Caioflandau
Copy link

This adds a new option, called discardEmpty, that when set to false will keep empty translations. The current behavior is it always discards empty strings. It also defaults to true, in order to keep old functionality the same.

@Caioflandau
Copy link
Author

@tonyskn Here's a small improvement I made. I needed this in a project I'm working on, and this simple solution did it for me.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant