lang

package
v0.0.23 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2026 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetIncludePath

func GetIncludePath() string

GetIncludePath 根据语言获取头文件路径

func IsChinese

func IsChinese() bool

IsChinese 检查当前是否使用中文

func SetLanguage

func SetLanguage(lang Language)

SetLanguage 手动设置语言偏好

Types

type Language

type Language string

Language 表示支持的语言类型

const (
	// LangEnglish 英语
	LangEnglish Language = "en"
	// LangChinese 中文
	LangChinese Language = "zh"
)

func DetectLanguage

func DetectLanguage() Language

DetectLanguage 检测本地系统语言

func GetCurrentLanguage

func GetCurrentLanguage() Language

GetCurrentLanguage 获取当前使用的语言

Jump to

Keyboard shortcuts

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