Matt Baer 24f640aad9 | 6 years ago | |
---|---|---|
.. | ||
.gitignore | 6 years ago | |
README.md | 6 years ago | |
main.go | 6 years ago |
This converts the key-value JSON exported from POEditor into a Go file we can include in the Write.as web application.
./json-to-l10n filename language
# Hungarian example
./json-to-l10n Write.as_Web_Hungarian.json hu > phrases_hu.go
Generated Go code isn’t gofmt
ed or sorted.
If outputted to a file, a quick sort of the phrasesLANG
map in Vim with vim-go
installed is the quickest way to fix this.