Utilities for internal use.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

123456789101112131415161718
  1. # json-to-l10n
  2. This converts the key-value JSON exported from POEditor into a Go file we can include in the Write.as web application.
  3. ## Usage
  4. ```bash
  5. ./json-to-l10n filename language
  6. # Hungarian example
  7. ./json-to-l10n Write.as_Web_Hungarian.json hu > phrases_hu.go
  8. ```
  9. ## Further requirements
  10. Generated Go code isn't `gofmt`ed or sorted.
  11. 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.