mirror of
https://github.com/unti-io/go-utils.git
synced 2025-10-13 12:03:43 +08:00
v1.0.6
v1.0.6
This commit is contained in:
@@ -33,6 +33,11 @@ func (this *LangModel) Value(key any, args ...any) (result any) {
|
||||
|
||||
// 读取语言包
|
||||
bytes := File().Byte(this.Directory + this.Lang + "." + this.Mode)
|
||||
|
||||
if bytes.Error != nil {
|
||||
return
|
||||
}
|
||||
|
||||
text := cast.ToString(key)
|
||||
|
||||
// 解析语言包
|
||||
|
Reference in New Issue
Block a user