You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if dotnet test SIL.WritingSystems.Tests/SIL.WritingSystems.Tests.csproj --no-build --configuration Release --logger trx --results-directory TestResults; then
This library contains many classes that make working with writing systems and language tags easier
4
4
5
-
### Updating langtags.json
5
+
##SIL Locale Data Repository
6
6
7
-
To update langtags.json to the latest follow the following steps:
7
+
Much of the writing system data that this library provides comes from the [SIL Locale Data repository (SLDR)](https://github.com/silnrsi/sldr?tab=readme-ov-file#sil-locale-data-repository-sldr)
8
+
To test with updated SLDR data from the staging area you can set an environment variable
9
+
10
+
`SLDR_USE_STAGING=true`
11
+
12
+
## Updating embedded writing system and language data
13
+
14
+
There is a github action that can be run to update the `langtags.json` and `ianaSubtagRegistry.txt` which are embedded in the library.
15
+
It will download the latest and, after a successful run of the WritingSystems tests, create a PR to update both files.
16
+
17
+
### langtags.json
18
+
19
+
The list of language tag identifiers is curated by the Writing Systems Technology group and provided in a `langtags.json` file.
20
+
This library is used as the final fallback in case of problems with the data served from https://ldml.api.sil.org/langtags.json
21
+
22
+
To manually update langtags.json to the latest follow the following steps:
8
23
9
24
1. Run the unit test suite by hand and note (or fix) any failures to ByHand and SkipOnTeamCity category tests
10
25
1. Replace `Resources\langtags.json` with the content from https://ldml.api.sil.org/langtags.json
11
26
1. Run the unit test suite by hand and fix any tests that relied on old langtags data
12
27
1. Commit the changes
13
28
14
-
### Updating ianaSubtagRegistry.txt
15
-
To update ianaSubtagRegistry.txt to the latest, replace `Resources\ianaSubtagRegistry.txt` with
29
+
### ianaSubtagRegistry.txt
30
+
To manually update ianaSubtagRegistry.txt to the latest, replace `Resources\ianaSubtagRegistry.txt` with
16
31
the content from https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry
0 commit comments