blob: 684befcd9eaf240fa0c830ed45a3d447a67938aa [file] [log] [blame] [view]
Adrià Vilanova Martínezd378fe72022-05-23 17:47:29 +02001# Language list generator
2The tool found in this folder serves the purpose of updating the `isoLangs`
3object found in `//src/js/common.js`, which contains a list of possible
4target translation languages.
5
6Run `go run langs.go` in order to obtain the updated `isoLangs` object, and copy
7it to `//src/js/common.js`. If it fails, run it again until it works (it might
8take 3 or 4 attempts).
9
10If the way the languages are encoded into `https://translate.google.com/`
11change, this tool will no longer work, but it probably can be slightly adapted
12to make it work again. It is expected that this tool will not work in the
13future.