mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 06:56:03 +01:00
fix(locale): trigger setLocale in locale module
This commit is contained in:
@@ -16,4 +16,4 @@ RegisterNUICallback('getConfig', function(_, cb)
|
|||||||
primaryColor = GetConvar('ox:primaryColor', 'blue'),
|
primaryColor = GetConvar('ox:primaryColor', 'blue'),
|
||||||
primaryShade = GetConvarInt('ox:primaryShade', 8)
|
primaryShade = GetConvarInt('ox:primaryShade', 8)
|
||||||
})
|
})
|
||||||
end)
|
end)
|
||||||
|
|||||||
@@ -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