mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-18 15:36:02 +01:00
refactor(locale): set default locale in settings
This commit is contained in:
@@ -27,6 +27,4 @@ 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)
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
local settings = {
|
local settings = {
|
||||||
locale = GetResourceKvpString('locale'),
|
locale = GetResourceKvpString('locale') or GetConvar('ox:locale', 'en'),
|
||||||
notification_position = GetResourceKvpString('notification_position') or 'top-right',
|
notification_position = GetResourceKvpString('notification_position') or 'top-right',
|
||||||
notification_audio = GetResourceKvpInt('notification_audio') == 1
|
notification_audio = GetResourceKvpInt('notification_audio') == 1
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user