mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 06:56:03 +01:00
refactor(server/locale): get array of valid locales
This commit is contained in:
@@ -26,6 +26,6 @@ end
|
||||
AddEventHandler('ox_lib:setLocale', loadLocale)
|
||||
|
||||
return function()
|
||||
local lang = IsDuplicityVersion() and lib.getServerLocale() or GetExternalKvpString('ox_lib', 'locale') or 'en'
|
||||
local lang = lib.service == 'server' and lib.getServerLocale() or GetExternalKvpString('ox_lib', 'locale') or 'en'
|
||||
loadLocale(lang)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user