i18n

package
v0.0.1-202406121011 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option struct {
	Path       string   `json:"path" yaml:"path"`              // 语言文件存储路径
	Langs      []string `json:"langs" yaml:"langs"`            // 支持的语言
	DefaultLng string   `json:"defaultLng" yaml:"defaultLang"` // 默认语言 ZH_cn
	FileType   string   `json:"fileType" yaml:"fileType"`      // 语言文件类型 yaml / json
	LngFrom    string   `json:"lngFrom" yaml:"lngFrom"`        // 语言文件来源
}

func (Option) GetLangTags

func (o Option) GetLangTags() []language.Tag

Jump to

Keyboard shortcuts

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