l18n

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnumerationSeparator

func EnumerationSeparator() string

EnumerationSeparator returns enumeration separator. For English and western languages, enumeration separator is a comma followed by a space (i.e. ", "). For Chinese, it returns "\u3001".

func Sprintf

func Sprintf(key message.Reference, a ...any) string

Sprintf is like fmt.Sprintf, but using language-specific formatting.

func UnitSeparator

func UnitSeparator() string

UnitSeparator returns the separator to use when concatenating multiple units of the same metric (e.g. "1 minute, 32 seconds", "6 feet, 1 inch"). For English and western languages, unit separator is a comma followed by a space (i.e. ", "). For Slovenian and Japanese, it returns just space.

Types

This section is empty.

Jump to

Keyboard shortcuts

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