Consumers that want to set DocViewer language to a valid value from AvailableLanguages are currently forced to recreate an array of locales to compare against since AvailableLanguages is a union type and its values are compiled away and not available at run time.
This change aims to export the locales so that consumers can avoid duplicating the locales within their code. The goal would be to use navigator.language.split('-')[0] to produce a valid AvailableLanguages.
Consumers that want to set DocViewer language to a valid value from
AvailableLanguages
are currently forced to recreate an array of locales to compare against sinceAvailableLanguages
is a union type and its values are compiled away and not available at run time.This change aims to export the locales so that consumers can avoid duplicating the locales within their code. The goal would be to use navigator.language.split('-')[0] to produce a valid
AvailableLanguages
.