gb vendor fetch github.com/alecthomas/gometalinter

This commit is contained in:
Erik Johnston 2017-09-05 17:09:50 +01:00
parent 643d05b157
commit a26d7c2899
630 changed files with 176389 additions and 0 deletions

View file

@ -0,0 +1,16 @@
# Internationalisation for Kingpin
Kingpin uses [go-1i8n](https://github.com/nicksnyder/go-i18n) to provide
internationalisation.
## Adding a language
1. Follow the go-18n instructions [here](https://github.com/nicksnyder/go-i18n#workflow) to add a new language.
2. Once translated, place the `<lang>.all.json` file in this directory.
3. Edit `kingpin/i18n_init.go`:
1. Add a new `//go:generate` line for your language.
2. Add a new `i18n.ParseTranslationFileBytes()` entry to `initI18N()`, for your language.
4. Run `go generate -x .` from the top-level kingpin directory.
5. Add a test to `kingpin/i18n_init_test.go`.
Note that templates are not currently translated.