mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-11-10 01:10:27 +08:00
部分中文转换为多语言代号
This commit is contained in:
14
pkg/langs/message_test.go
Normal file
14
pkg/langs/message_test.go
Normal file
@@ -0,0 +1,14 @@
|
||||
// Copyright 2023 GoEdge CDN goedge.cdn@gmail.com. All rights reserved. Official site: https://goedge.cn .
|
||||
|
||||
package langs
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestMessageCode_For(t *testing.T) {
|
||||
defaultManager.AddLang("en-us").
|
||||
Set("name", "Lily")
|
||||
|
||||
var messageCode MessageCode = "name"
|
||||
t.Log(messageCode.String(), string(messageCode))
|
||||
t.Log(messageCode.For("en-us"))
|
||||
}
|
||||
Reference in New Issue
Block a user