i18nbug修复

This commit is contained in:
xiekaidong 2023-04-21 17:36:56 +08:00
parent 60a5d5551f
commit 81623a7aa2

View File

@ -338,6 +338,7 @@ function I18N:getText(configName, index, key, ...)
end end
if ... then if ... then
local param = {...} local param = {...}
key = configName .. index .. key
if self.cacheNormalFormatParamSequnce[key] then if self.cacheNormalFormatParamSequnce[key] then
self.cacheNormalIndex = 0 self.cacheNormalIndex = 0
str = string.gsub(str, '{%d+}', function (s) str = string.gsub(str, '{%d+}', function (s)
@ -353,6 +354,7 @@ function I18N:getText(configName, index, key, ...)
end) end)
end end
end end
return str return str
end end