Utilities for internal use.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

472 B

json-to-l10n

This converts the key-value JSON exported from POEditor into a Go file we can include in the Write.as web application.

Usage

./json-to-l10n filename language

# Hungarian example
./json-to-l10n Write.as_Web_Hungarian.json hu > phrases_hu.go

Further requirements

Generated Go code isn’t gofmted 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.