mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-28 17:01:14 +00:00
Merge pull request #1838 from seltonmt012/fix/translatecap-return
fix(es_extended/locale): return a single value from TranslateCap
This commit is contained in:
@@ -33,7 +33,7 @@ function Translate(str, ...) -- Translate string
|
||||
end
|
||||
|
||||
function TranslateCap(str, ...) -- Translate string first char uppercase
|
||||
return _(str, ...):gsub("^%l", string.upper)
|
||||
return (_(str, ...):gsub("^%l", string.upper))
|
||||
end
|
||||
|
||||
_ = Translate
|
||||
|
||||
Reference in New Issue
Block a user