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

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

View File

@@ -75,7 +75,7 @@ func (this *Manager) DefaultLang() string {
// GetMessage
// message: name: %s, age: %d, salary: %.2f
func (this *Manager) GetMessage(langCode string, messageCode string, args ...any) string {
func (this *Manager) GetMessage(langCode string, messageCode MessageCode, args ...any) string {
var lang = this.langMap[langCode]
if lang == nil && len(this.defaultLangCode) > 0 {
lang = this.langMap[this.defaultLangCode]