locales

package
v2.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package locales provides helpers to work with locales. Locale = language code + country code Language code (2 letter code): https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes Country code (2 letter code): https://en.wikipedia.org/wiki/ISO_3166-2

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrEmptyInput       = errors.New("locales: input is empty")
	ErrNoMatchingLocale = errors.New("locales: no matching locale found")
)

Functions

func DescriptiveName

func DescriptiveName(code string) (string, error)

DescriptiveName returns the long descriptive version of the code.

Types

This section is empty.

Jump to

Keyboard shortcuts

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