Documentation
¶
Index ¶
- func GetCompatibleLanguage(ctx context.Context, supportedTags []language.Tag) (language.Tag, structured_error.StructuredError)
- func GetLanguage(ctx context.Context) language.Tag
- func LoadMessages() error
- func WithLanguage(ctx context.Context, tag language.Tag) context.Context
- type Localized
- func AddBotError(ctx context.Context, altText Localized, err structured_error.StructuredError) Localized
- func AddDescription(ctx context.Context, altText Localized, description Localized) Localized
- func AddOCR(ctx context.Context, description Localized, ocr Localized) Localized
- func CombineDescriptions(ctx context.Context, descriptions []string) Localized
- func CombineMessages(messages []Localized, joiner string) Localized
- func ErrorMessage(ctx context.Context, err structured_error.StructuredError) Localized
- func HasAltText(ctx context.Context, userDisplayName string, altText string) Localized
- func HelpMessage(ctx context.Context) Localized
- func LabelImage(ctx context.Context, description Localized, index int) Localized
- func NoAltText(ctx context.Context, userDisplayName string) Localized
- func UnknownCommandMessage(ctx context.Context) Localized
- func Unlocalized(message string) Localized
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCompatibleLanguage ¶
func GetCompatibleLanguage(ctx context.Context, supportedTags []language.Tag) (language.Tag, structured_error.StructuredError)
func LoadMessages ¶
func LoadMessages() error
Types ¶
type Localized ¶
type Localized string
func AddBotError ¶
func AddBotError(ctx context.Context, altText Localized, err structured_error.StructuredError) Localized
func AddDescription ¶
func CombineDescriptions ¶
func CombineMessages ¶
func ErrorMessage ¶
func ErrorMessage(ctx context.Context, err structured_error.StructuredError) Localized
func HasAltText ¶
func HelpMessage ¶
func UnknownCommandMessage ¶
func Unlocalized ¶
Click to show internal directories.
Click to hide internal directories.