Changed `isLocalized` logic
isLocalized
will be true when App will contain 1 or more valid locales for this device
Current logic:
isLocalized
will return true even when the app doesn't contain a valid translation for the device.
Example:
- app meta data contains
fr
andes
translations ->isLocalized=true
if the device is set tonl
- app meta data contains
nl
translations ->isLocalized=false
if the device is set tonl
- app meta data contains
en
translations ->isLocalized=false
if the device is set tonl
New logic:
isLocalized
will only return true when the app contains a valid translation for the device or if it contains the fallback English translation.
Example:
- app meta data contains
fr
andes
translations ->isLocalized=false
if device is set tonl
- app meta data contains
fr
andnl
translations ->isLocalized=true
if device is set tonl
- app meta data contains
en
translation ->isLocalized=true
if device is set tonl
I hope the examples explain the current and new logic.
Fixes #1992 (closed)
Edited by Hans-Christoph Steiner