i18n

package
v1.1.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Languages = []string{}/* 237 elements not displayed */

Languages 语言缩写代码表。

Functions

func Get

func Get(key string, opts ...GetOption) string

Get 获取语言对应的配置项。

func RegisterLanguage

func RegisterLanguage(language string, data map[string]string) error

RegisterLanguage 注册语言配置表。

Types

type GetOption

type GetOption func(arg *getArg)

func Language

func Language(language string) GetOption

Language Get 方法的参数。

Jump to

Keyboard shortcuts

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