mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 06:56:03 +01:00
fix(locale): server hotload and "external" kvp
External kvp's don't exist for the server, so we have to export the proper language.
This commit is contained in:
@@ -26,5 +26,6 @@ end
|
||||
AddEventHandler('ox_lib:setLocale', loadLocale)
|
||||
|
||||
return function()
|
||||
loadLocale(GetExternalKvpString('ox_lib', 'locale') or 'en-US')
|
||||
local lang = IsDuplicityVersion() and lib.getServerLocale() or GetExternalKvpString('ox_lib', 'locale') or 'en-US'
|
||||
loadLocale(lang)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user