This library contains many classes that make working with writing systems and language tags easier
Much of the writing system data that this library provides comes from the SIL Locale Data Repository (SLDR). To test with updated SLDR data from the staging area you can set an environment variable
SLDR_USE_STAGING=true
There is a github action that can be run to update the langtags.json and ianaSubtagRegistry.txt which are embedded in the library.
It will download the latest and, after a successful run of the WritingSystems tests, create a PR to update both files.
The list of language tag identifiers is curated by the Writing Systems Technology group and provided in a langtags.json file.
This library is used as the final fallback in case of problems with the data served from https://ldml.api.sil.org/langtags.json
To manually update langtags.json to the latest, follow the following steps:
- Replace
Resources\langtags.jsonwith the content from https://ldml.api.sil.org/langtags.json - Run the unit test suite by hand and fix any tests that relied on old langtags data
- Commit the changes
To manually update ianaSubtagRegistry.txt to the latest, replace Resources\ianaSubtagRegistry.txt with
the content from https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry