Documentation ¶
Index ¶
- func Dir(dir string) error
- func File(file string) error
- func Register(lang string, ts map[string]string) error
- func RegisterKey(lang string, key, tran string)
- func RegisterKeys(lang string, ks map[string]string)
- func Trans(lang, key string, param ...string) string
- func TransFile(f string) error
- func Transk(lang, key string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterKey ¶
RegisterKey a translator provide by the key tran name
func RegisterKeys ¶
RegisterKeys a translator provide by the key trans name
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.