Skip to content

Commit

Permalink
fix missing locale
Browse files Browse the repository at this point in the history
  • Loading branch information
Swellington-Soares committed Oct 4, 2024
1 parent 19ee7cf commit 1b6aa53
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
20 changes: 10 additions & 10 deletions client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ local function setLocationBlip()
SetBlipAsShortRange(blip, true)
SetBlipColour(blip, 1)
BeginTextCommandSetBlipName('STRING')
AddTextComponentSubstringPlayerName(Lang:t('info.blip_name'))
AddTextComponentSubstringPlayerName(locale('info.blip_name'))
EndTextCommandSetBlipName(blip)
end

Expand All @@ -29,7 +29,7 @@ local function takeOutVehicle(vehType, coords)
end
local veh = NetToVeh(netId)
if veh == 0 then
exports.qbx_core:Notify(Lang:t('error.cant_spawn_vehicle'), 'error')
exports.qbx_core:Notify(locale('error.cant_spawn_vehicle'), 'error')
return
end
local vehClass = GetVehicleClass(veh)
Expand Down Expand Up @@ -116,7 +116,7 @@ local function registerMainEntrance()
size = vec3(1.0, 5.85, 3),
debug = config.debugPoly,
onEnter = function()
lib.showTextUI(Lang:t("info.enter"))
lib.showTextUI(locale("info.enter"))
end,
onExit = function()
lib.hideTextUI()
Expand Down Expand Up @@ -158,7 +158,7 @@ local function registerMainExit()
rotation = 340.0,
debug = config.debugPoly,
onEnter = function()
lib.showTextUI(Lang:t("info.go_outside"))
lib.showTextUI(locale("info.go_outside"))
end,
onExit = function()
lib.hideTextUI()
Expand Down Expand Up @@ -214,7 +214,7 @@ local function registerEnterRoof()
rotation = 340.0,
debug = config.debugPoly,
onEnter = function()
lib.showTextUI(Lang:t("info.roof_enter"))
lib.showTextUI(locale("info.roof_enter"))
end,
onExit = function()
lib.hideTextUI()
Expand Down Expand Up @@ -270,7 +270,7 @@ local function registerExitRoof()
rotation = 0.0,
debug = config.debugPoly,
onEnter = function()
lib.showTextUI(Lang:t("info.roof_exit"))
lib.showTextUI(locale("info.roof_exit"))
end,
onExit = function()
lib.hideTextUI()
Expand Down Expand Up @@ -308,9 +308,9 @@ local function registerVehicleStorage()
debug = config.debugPoly,
onEnter = function()
if cache.vehicle then
lib.showTextUI(Lang:t('info.store_vehicle'))
lib.showTextUI(locale('info.store_vehicle'))
else
lib.showTextUI(Lang:t('info.vehicles'))
lib.showTextUI(locale('info.vehicles'))
end
end,
onExit = function()
Expand Down Expand Up @@ -346,9 +346,9 @@ local function registerHeliStorage()
debug = config.debugPoly,
onEnter = function()
if cache.vehicle then
lib.showTextUI(Lang:t('info.store_helicopters'))
lib.showTextUI(locale('info.store_helicopters'))
else
lib.showTextUI(Lang:t('info.helicopters'))
lib.showTextUI(locale('info.helicopters'))
end
end,
onExit = function()
Expand Down
4 changes: 2 additions & 2 deletions fxmanifest.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ version '1.0.1'
shared_scripts {
'@ox_lib/init.lua',
'@qbx_core/modules/lib.lua',

}

client_scripts {
Expand All @@ -22,7 +21,8 @@ server_script {
}

files {
'config/client.lua',
'locales/*.json',
'config/client.lua',
}

lua54 'yes'
Expand Down

0 comments on commit 1b6aa53

Please sign in to comment.