mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 06:56:03 +01:00
refactor(locale): set default locale in settings
This commit is contained in:
@@ -27,6 +27,4 @@ RegisterNUICallback('init', function(_, cb)
|
||||
})
|
||||
end)
|
||||
|
||||
if not settings.locale then lib.setLocale(GetConvar('ox:locale', 'en')) end
|
||||
|
||||
lib.locale(settings.locale)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
local settings = {
|
||||
locale = GetResourceKvpString('locale'),
|
||||
locale = GetResourceKvpString('locale') or GetConvar('ox:locale', 'en'),
|
||||
notification_position = GetResourceKvpString('notification_position') or 'top-right',
|
||||
notification_audio = GetResourceKvpInt('notification_audio') == 1
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user