refactor(locale): set default locale in settings

This commit is contained in:
Linden
2024-04-16 05:33:35 +10:00
parent 6de82c3d6e
commit 01770187bc
2 changed files with 1 additions and 3 deletions

View File

@@ -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)

View File

@@ -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
}