-
Notifications
You must be signed in to change notification settings - Fork 52
Open
Labels
Description
CLDR has fallback languages for cases in which a localization is unavailable. I would like to add support for this. Any thoughts or recommendations on implementation?
I would create LocaleResolver which takes in a locale ID, and if the ID is support, returns the ID, otherwise it runs through the list of fallback locales, and returns the first one that is supported. I'd probably need to specify a configurable default language value as well.
http://cldr.unicode.org/development/development-process/design-proposals/transform-fallback
http://cldr.unicode.org/development/development-process/design-proposals/languagedistance