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