mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-11-30 01:00:27 +08:00
部分中文转换为多语言代号
This commit is contained in:
@@ -2,4 +2,12 @@
|
||||
|
||||
package langs
|
||||
|
||||
type MessageCode = string
|
||||
type MessageCode string
|
||||
|
||||
func (this MessageCode) For(langCode LangCode, args ...any) string {
|
||||
return Message(langCode, this, args...)
|
||||
}
|
||||
|
||||
func (this MessageCode) String() string {
|
||||
return string(this)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user