locale

package
v0.0.0-...-9038b1f Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2020 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Language

func Language() string

Language returns the preferred user language.

func Languages

func Languages() []string

Languages returns at least a single element array with "und" (undefined) value, but actually represents the users preferred system languages.

func SetLanguages

func SetLanguages(preferredLanguages ...string)

SetLanguages overrides the system languages. Set to nil/empty to reset and let the system preference take precedence.

Types

This section is empty.

Jump to

Keyboard shortcuts

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