fix(package/locale): sync behaviour with Lua

This commit is contained in:
Linden
2024-05-14 18:19:26 +10:00
parent 8080fa1474
commit 0b13a56071
2 changed files with 4 additions and 2 deletions

View File

@@ -52,7 +52,7 @@ end
local table = lib.table
---Loads the ox_lib locale module. Prefer using fxmanifest instead (see [docs](https://overextended.dev/ox_lib#usage)).
---@param key string
---@param key? string
function lib.locale(key)
local lang = key or lib.getLocaleKey()
local locales = loadLocale('en')