i18n

package
v0.0.0-...-1b5d653 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2026 License: GPL-3.0 Imports: 5 Imported by: 4

Documentation

Overview

Package i18n is responsible for internationalization/translation handling and generation.

Index

Constants

This section is empty.

Variables

View Source
var (

	// G is the shorthand for Gettext.
	G = func(msgid string) string { return msgid }
	// NG is the shorthand for NGettext.
	NG = func(msgid string, msgidPlural string, n uint32) string { return msgid }
)

Functions

func InitI18nDomain

func InitI18nDomain(domain string, args ...Option)

InitI18nDomain calls bind + set locale to system values.

Types

type Option

type Option func(l *i18n)

Option is an optional argument for InitI18nDomain.

Jump to

Keyboard shortcuts

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