Skip to content

Commit

Permalink
refactor(locale): set default locale in settings
Browse files Browse the repository at this point in the history
  • Loading branch information
thelindat committed Apr 15, 2024
1 parent 6de82c3 commit 0177018
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions resource/locale/client.lua
Expand Up @@ -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)
2 changes: 1 addition & 1 deletion resource/settings.lua
@@ -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
}
Expand Down

0 comments on commit 0177018

Please sign in to comment.