部分中文转换为多语言代号

This commit is contained in:
刘祥超
2023-06-30 18:09:43 +08:00
parent 141dd89f6f
commit fd9849c9ff
175 changed files with 2510 additions and 709 deletions

14
pkg/langs/message_test.go Normal file
View 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"))
}