Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Locales = []Locale{
{
Tag: "en",
Name: "english",
},
{
Tag: "de",
Name: "german",
},
{
Tag: "fr",
Name: "french",
},
{
Tag: "es",
Name: "spanish",
},
{
Tag: "ca",
Name: "catalan",
},
{
Tag: "it",
Name: "italian",
},
{
Tag: "tr",
Name: "turkish",
},
{
Tag: "nl",
Name: "dutch",
},
{
Tag: "el",
Name: "greek",
},
{
Tag: "ru",
Name: "russian",
},
}
Locales is the list of locales's tags and names Please check if the language is supported in https://github.com/tebeka/snowball, if it is please add the correct language name.
Functions ¶
func GetNameByTag ¶
GetNameByTag returns the name of the given locale's tag
func GetTagByName ¶
GetTagByName returns the tag of the given locale's name
Types ¶
Click to show internal directories.
Click to hide internal directories.