go-locale: github.com/Xuanwo/go-locale Index | Files

package locale

import "github.com/Xuanwo/go-locale"

Index

Package Files

locale.go locale_linux.go locale_unix.go

Variables

var (
    // ErrNotDetected returns while no locale detected.
    ErrNotDetected = errors.New("not detected")
    // ErrSystemError returns while error happened in system call.
    ErrSystemError = errors.New("system error")
)

func Detect Uses

func Detect() (tag language.Tag, err error)

Detect will detect current env's language.

Package locale imports 8 packages (graph). Updated 2019-12-20. Refresh now. Tools for package owners.