angular-translate/grunt-angular-translate

Comment or set null empty translations

marcalj opened this issue · 4 comments

If you define several languages after executing the task the languages not set as default will include "" (empty string) as default value, this cause to show an empty string when translating.

If you comment the line by default or set it null (need to test) will use fallback language, which is best than nothing.

Thanks.

By default, an empty translation will receive "" value.
In order to use fallback feature from angular-translate, it should be better to feed json with null value, I'll do that.

FYI, this plunkr test null/"" value with fallback usage;

Great! But add a config variable because some non-developers will hate to replace null to "" for every string ;)

For sure! I'm working on.
Thanks for your contrib :)

👍 you're welcome!