localization

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Language

type Language string
const (
	LanguageZH Language = theLanguageZH
)

func (Language) String

func (l Language) String() string

type Locale

type Locale string

Locale = Language + Region

const (
	LocaleZhongCN Locale = theLanguageZH + sep + theRegionChina
)

func LocaleOf

func LocaleOf(language Language, region Region) Locale

func (Locale) String

func (l Locale) String() string

type Region

type Region string
const (
	RegionChina Region = theRegionChina
	RegionJapan Region = theRegionJapan
	RegionUSA   Region = theRegionUSA
)

func (Region) String

func (r Region) String() string

Jump to

Keyboard shortcuts

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