package
0.0.0-20210818141223-3f84d0f5cd3b
Repository: https://github.com/xzwwx/goproject.git
Documentation: pkg.go.dev

# Functions

Extract extracts all strings form the package defined in Config.
Generate writes a Go file with the given package name to w, which defines a Catalog with translated messages.
Rewrite rewrites the Go files in a single package to use the localization machinery and rewrites strings to adopt best practices when possible.

# Structs

Config contains configuration for the translation pipeline.
Feature holds information about a feature that can be implemented by an Argument.
A Locale is used to store all information for a single locale.
A Message describes a message to be translated.
A Placeholder is a part of the message that should not be changed by a translator.
Select selects a Text based on the feature value associated with a feature of a certain argument.
Text defines a message to be displayed.

# Type aliases

IDList is a set identifiers that each may refer to possibly different versions of the same message.