mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-11-25 04:18:35 +00:00
fix(locale): trigger setLocale in locale module
This commit is contained in:
1 parent
2d4e56d828
commit
44b41973b8
2 files changed
+2
-2
No files matched your search
@@ -30,4 +30,6 @@ RegisterNUICallback('init', function(_, cb)
|
|||||||
})
|
})
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
if not settings.locale then lib.setLocale(GetConvar('ox:locale', 'en')) end
|
||||||
|
|
||||||
lib.locale(settings.locale)
|
lib.locale(settings.locale)
|
||||||
@@ -2,8 +2,6 @@ local settings = {
|
|||||||
locale = GetResourceKvpString('locale'),
|
locale = GetResourceKvpString('locale'),
|
||||||
}
|
}
|
||||||
|
|
||||||
if not settings.locale then lib.setLocale(GetConvar('ox:locale', 'en')) end
|
|
||||||
|
|
||||||
RegisterCommand('ox_lib', function()
|
RegisterCommand('ox_lib', function()
|
||||||
local input = lib.inputDialog('Settings', {
|
local input = lib.inputDialog('Settings', {
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user