diff options
Diffstat (limited to 'vendor/github.com/nicksnyder/go-i18n/goi18n/doc.go')
-rw-r--r-- | vendor/github.com/nicksnyder/go-i18n/goi18n/doc.go | 38 |
1 files changed, 36 insertions, 2 deletions
diff --git a/vendor/github.com/nicksnyder/go-i18n/goi18n/doc.go b/vendor/github.com/nicksnyder/go-i18n/goi18n/doc.go index 10d244217..97c7a7fb6 100644 --- a/vendor/github.com/nicksnyder/go-i18n/goi18n/doc.go +++ b/vendor/github.com/nicksnyder/go-i18n/goi18n/doc.go @@ -5,11 +5,22 @@ // // Help documentation: // -// goi18n formats and merges translation files. +// goi18n manages translation files. // // Usage: // -// goi18n [options] [files...] +// goi18n merge Merge translation files +// goi18n constants Generate constant file from translation file +// +// For more details execute: +// +// goi18n [command] -help +// +// Merge translation files. +// +// Usage: +// +// goi18n merge [options] [files...] // // Translation files: // @@ -56,4 +67,27 @@ // Supported formats: json, yaml // Default: json // +// Generate constant file from translation file. +// +// Usage: +// +// goi18n constants [options] [file] +// +// Translation files: +// +// A translation file contains the strings and translations for a single language. +// +// Translation file names must have a suffix of a supported format (e.g. .json) and +// contain a valid language tag as defined by RFC 5646 (e.g. en-us, fr, zh-hant, etc.). +// +// Options: +// +// -package name +// goi18n generates the constant file under the package name. +// Default: R +// +// -outdir directory +// goi18n writes the constant file to this directory. +// Default: . +// package main |