Skip to content

Commit

Permalink
fix(locale): trigger setLocale in locale module
Browse files Browse the repository at this point in the history
  • Loading branch information
thelindat committed Apr 2, 2024
1 parent 2d4e56d commit 44b4197
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion resource/client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ RegisterNUICallback('getConfig', function(_, cb)
primaryColor = GetConvar('ox:primaryColor', 'blue'),
primaryShade = GetConvarInt('ox:primaryShade', 8)
})
end)
end)
2 changes: 2 additions & 0 deletions resource/locale/client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
2 changes: 0 additions & 2 deletions resource/settings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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', {
{
Expand Down

0 comments on commit 44b4197

Please sign in to comment.