v1.0.6
This commit is contained in:
兔子
2023-04-11 14:12:46 +08:00
parent c3714002e8
commit 09c82c311b
2 changed files with 18 additions and 80 deletions

View File

@@ -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)
// 解析语言包