package
0.21.0
Repository: https://go.googlesource.com/text
Documentation: pkg.go.dev

# Functions

Extract extracts all strings form the package defined in Config.
Generate is deprecated; use (*State).Generate().
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 Message describes a message to be translated.
Messages is used to store translations for a single language.
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.
State holds all accumulated information on translations during processing.
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.