mirror of
https://github.com/qbcore-fivem/qb-core.git
synced 2026-08-29 01:08:57 +00:00
Merge branch 'main' into patch-5
This commit is contained in:
+2
-2
@@ -20,7 +20,7 @@ local function translateKey(phrase, subs)
|
||||
|
||||
-- Initial Scan over result looking for substituions
|
||||
for k, v in pairs(subs) do
|
||||
local templateToFind = '%{' .. k .. '}'
|
||||
local templateToFind = '%%{' .. k .. '}'
|
||||
result = result:gsub(templateToFind, tostring(v)) -- string to allow all types
|
||||
end
|
||||
|
||||
@@ -142,4 +142,4 @@ function Locale:delete(phraseTarget, prefix)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user