language

package
v0.9.18 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LangID

type LangID int16
const (
	English LangID = iota
	Spanish
	French
	German
	Chinese
	Japanese
	Korean
	Arabic
	Hebrew
	Hindi
	Polish
	Russian
	Czech
	Dutch
	Greek
	Italian
	Swedish
	Turkish
	Norwegian
	Portuguese
	Finnish
	Thai
	Indonesian
	Vietnamese
	Farsi
	Tagalog
	Swahili
	Serbian
	Croatian
	Bosnian
	Slovenian
	Slovak
	Macedonian
	Albanian
	Bulgarian
	Romanian
	Hungarian
	Latvian
	Lithuanian
	Estonian
	Ukrainian
	Belarusian
	Malay
	Malayalam
	Tamil
	Telugu
	Kannada
	Marathi
	Gujarati
	Bengali
	Punjabi
	Urdu
	Mongolian
	Amharic
	Icelandic
	Maltese
	Unknown
	Others
)

func ReverseLookupLangID

func ReverseLookupLangID(langName string) (LangID, error)

ReverseLookupLangID takes a language name as input and returns the corresponding LangID. If the language name is not found, it returns an error.

func (LangID) String

func (i LangID) String() string

Jump to

Keyboard shortcuts

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