lang

package
v1.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2026 License: MIT Imports: 4 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package lang gives the kit the text of a string key in the language of the application

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Install

func Install(text func(key txt.Key, args ...any) string)

Install sets the function the kit asks for the text of a catalog key

func OfID

func OfID(prefix, id, suffix, fallback string) string

OfID is the text kept for an identifier between a key prefix and suffix, identifiers that end in a number sharing the text of n with the number as its argument, the fallback when the application has none

func Or

func Or(name, fallback string, args ...any) string

Or is the text of the catalog entry with a name made at run time, the fallback when the catalog holds no such entry or the application has installed no source

func T

func T(key txt.Key, args ...any) string

T is the text of a catalog key in the active language, the name of the key while the application has installed no source

func Upper

func Upper(text string) string

Upper is the text in capitals by the casing rules of the language of the application, Turkish and Azerbaijani keeping the dot of their i

func Use

func Use(id string)

Use names the language the application shows its text in, so capitals follow its casing rules

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL