easy_localization
easy_localization copied to clipboard
Use fallback if translation lookup returns an empty string
Currently, empty translation values (like {"some_key": ""}) do not trigger the fallback translation. This PR aims to resolve that.
i think this fix is important to be merged soon!
@bo0tzz could you make this configurable? I don't have any example right now, but sometimes displaying empty value for some languages is the desired behavior.
@PWrzesinski I think you can already pass fallback = false.
Isnt it a valid case to have "" as a translation?
closing since not desired to treat "" with fallback