Locale data is stored in locales/data/*.xml files, and are compiled to json and stored in locales/*.json files for the app. This conversion is done with the locales/make_final.py python script, and must be done manually every time locale data has changed. The resulting json file is kept in source control, and must also be added and commited for each new change. This works, but is not ideal.
Ideally, the build tools would do all of this automatically, and only the actual raw data would need to be kept in source control. This should be possible by writing a vite plugin.
Locale data is stored in
locales/data/*.xml
files, and are compiled to json and stored inlocales/*.json
files for the app. This conversion is done with thelocales/make_final.py
python script, and must be done manually every time locale data has changed. The resulting json file is kept in source control, and must also be added and commited for each new change. This works, but is not ideal.Ideally, the build tools would do all of this automatically, and only the actual raw data would need to be kept in source control. This should be possible by writing a vite plugin.