package locale
import "github.com/jeandeaual/go-locale"
Index ¶
- func GetLanguage() (string, error)
- func GetLocale() (string, error)
- func GetLocales() ([]string, error)
- func GetRegion() (string, error)
- func SetRunOnJVM(_ func(fn func(vm, env, ctx uintptr) error) error)
Functions ¶
func GetLanguage ¶
GetLanguage retrieves the IETF BCP 47 language tag set on the system and returns the language part of the tag.
func GetLocale ¶
GetLocale retrieves the IETF BCP 47 language tag set on the system.
func GetLocales ¶
GetLocales retrieves the IETF BCP 47 language tags set on the system.
func GetRegion ¶
GetRegion retrieves the IETF BCP 47 language tag set on the system and returns the region part of the tag.
func SetRunOnJVM ¶
SetRunOnJVM is a noop, this function is only valid on Android
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
examples | |
examples/getlocale |
- Version
- v0.0.0-20241217141322-fcc2cadd6f08 (latest)
- Published
- Dec 17, 2024
- Platform
- linux/amd64
- Imports
- 2 packages
- Last checked
- 1 day ago –
Tools for package owners.