easy_localization icon indicating copy to clipboard operation
easy_localization copied to clipboard

Use fallback if translation lookup returns an empty string

Open bo0tzz opened this issue 3 years ago • 4 comments

Currently, empty translation values (like {"some_key": ""}) do not trigger the fallback translation. This PR aims to resolve that.

bo0tzz avatar Sep 07 '22 18:09 bo0tzz

i think this fix is important to be merged soon!

amrahmed242 avatar Nov 16 '22 20:11 amrahmed242

@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 avatar May 23 '23 09:05 PWrzesinski

@PWrzesinski I think you can already pass fallback = false.

bo0tzz avatar May 23 '23 09:05 bo0tzz

Isnt it a valid case to have "" as a translation?

bw-flagship avatar May 23 '23 09:05 bw-flagship

closing since not desired to treat "" with fallback

bw-flagship avatar Apr 22 '24 10:04 bw-flagship