locale

package module
v0.0.0-...-b19f425 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2023 License: MIT Imports: 0 Imported by: 5

README

locale

本地化支持。

Documentation

Overview

Package locale 国际化&本地化处理包。 主要用于提取源码中原语种对应某应用语种的字符串翻译。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetText

func GetText(k string) string

获取本地化文本。 k 为代码中引用的源文本,不一定是英文。 如果不存在翻译文本,返回原始引用文本。 注意: 外部应当在程序运行前配置完成,以获得并发安全。

Types

This section is empty.

Jump to

Keyboard shortcuts

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