{"modulePath":"github.com/RedAFD/code-core","version":"v1.14.0-rc8","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package translation\n\n## Functions\n\n```go\nfunc InitLocales()\n```\nInitLocales loads the locales\n\n```go\nfunc Match(tags ...language.Tag) (tag language.Tag, index int, c language.Confidence)\n```\nMatch matches accept languages\n\n## Types\n\n```go\ntype LangType struct {\n\tLang, Name string\n}\n```\nLangType represents a lang type\n\n```go\nfunc AllLangs() []LangType\n```\nAllLangs returns all supported langauages\n\n```go\ntype Locale interface {\n\tLanguage() string\n\tTr(string, ...interface{}) string\n}\n```\nLocale represents an interface to translation\n\n```go\nfunc NewLocale(lang string) Locale\n```\nNewLocale return a locale\n\n","path":"github.com/RedAFD/code-core/modules/translation","name":"translation","synopsis":"","isRedistributable":true}
