Another option is to use separate files for each language and check if a language file exists. Then set DatePickerRegionalAsset.language property dynamically using this approach: #2572

Or remove a language existence check at all...