giellatekno / fst-web-interface

Frontend for language tools
https://giellatekno.github.io/fst-web-interface
0 stars 0 forks source link

Automatic building of locales #6

Open Phaqui opened 1 year ago

Phaqui commented 1 year ago

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.

Trondtr commented 1 year ago

We share the same ideal here, yes. Let us (consider possible drawbacks and then) do that.