fix(locale): trigger setLocale in locale module

This commit is contained in:
Linden
2024-04-02 17:00:59 +11:00
parent 2d4e56d828
commit 44b41973b8
3 changed files with 3 additions and 3 deletions

View File

@@ -16,4 +16,4 @@ RegisterNUICallback('getConfig', function(_, cb)
primaryColor = GetConvar('ox:primaryColor', 'blue'),
primaryShade = GetConvarInt('ox:primaryShade', 8)
})
end)
end)

View File

@@ -30,4 +30,6 @@ RegisterNUICallback('init', function(_, cb)
})
end)
if not settings.locale then lib.setLocale(GetConvar('ox:locale', 'en')) end
lib.locale(settings.locale)

View File

@@ -2,8 +2,6 @@ local settings = {
locale = GetResourceKvpString('locale'),
}
if not settings.locale then lib.setLocale(GetConvar('ox:locale', 'en')) end
RegisterCommand('ox_lib', function()
local input = lib.inputDialog('Settings', {
{