Skip to content

Commit

Permalink
fix language load in client side
Browse files Browse the repository at this point in the history
  • Loading branch information
Swellington-Soares committed Oct 2, 2024
1 parent 9313ac2 commit 19e54b8
Show file tree
Hide file tree
Showing 17 changed files with 18 additions and 17 deletions.
2 changes: 1 addition & 1 deletion config/client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ return {
debugPoly = false,
useBlips = true,
allowedVehicles = {
{ model = 'taxi', label = Lang:t('info.taxi_label_1') }
{ model = 'taxi', label = locale('info.taxi_label_1') }
},
meter = {
defaultPrice = 125.0, -- price per mile
Expand Down
3 changes: 2 additions & 1 deletion fxmanifest.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ files {
'html/reset.css',
'html/g5-meter.png',
'config/client.lua',
'config/shared.lua'
'config/shared.lua',
'locales/*.json'
}

provide 'qb-taxijob'
Expand Down
2 changes: 1 addition & 1 deletion locales/cs.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"not_active_meter": "Taxametr není aktivní",
"no_meter_sight": "Žádný taxametr není v dohledu"
},
"success": [],
"success": {},
"info": {
"person_was_dropped_off": "Osoba byla vysazena!",
"npc_on_gps": "NPC je označeno na tvém GPS",
Expand Down
2 changes: 1 addition & 1 deletion locales/da.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"not_active_meter": "Taxameteret er ikke aktivt",
"no_meter_sight": "Intet taxameter at se"
},
"success": [],
"success": {},
"info": {
"person_was_dropped_off": "Personen blev sat af!",
"npc_on_gps": "En NPC er markeret på din GPS",
Expand Down
2 changes: 1 addition & 1 deletion locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"not_active_meter": "Das Taxameter ist nicht aktiv",
"no_meter_sight": "Kein Taxameter in Sicht"
},
"success": [],
"success": {},
"info": {
"person_was_dropped_off": "Person wurde abgesetzt!",
"npc_on_gps": "Der NPC wird auf Ihrem GPS angezeigt",
Expand Down
2 changes: 1 addition & 1 deletion locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"not_active_meter": "The Taxi Meter Is Not Active",
"no_meter_sight": "No Taxi Meter In Sight"
},
"success": [],
"success": {},
"info": {
"person_was_dropped_off": "Person Was Dropped Off!",
"npc_on_gps": "The NPC Is Indicated On Your GPS",
Expand Down
2 changes: 1 addition & 1 deletion locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"not_active_meter": "El taxímetro no está activo",
"no_meter_sight": "No hay taxímetro visible"
},
"success": [],
"success": {},
"info": {
"person_was_dropped_off": "La persona se bajó del taxi",
"npc_on_gps": "El NPC está indicado en tu GPS",
Expand Down
2 changes: 1 addition & 1 deletion locales/fa.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"not_active_meter": "Taxi Meter Faal Nist",
"no_meter_sight": "Taxi Meter Dar Maraze Did Nist"
},
"success": [],
"success": {},
"info": {
"person_was_dropped_off": "Mosafer Piyade Shod!",
"npc_on_gps": "NPC Dar GPS Shoma Neshan Dade Shode Ast",
Expand Down
2 changes: 1 addition & 1 deletion locales/fi.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"not_active_meter": "Taksimittari ei ole aktiivinen",
"no_meter_sight": "Ei taksimittaria nähtävissä"
},
"success": [],
"success": {},
"info": {
"person_was_dropped_off": "Jätit matkustajan pois!",
"npc_on_gps": "Matkustajan sijainti näkyy GPS:ssäsi",
Expand Down
2 changes: 1 addition & 1 deletion locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"not_active_meter": "Le taximètre n'est pas activé",
"no_meter_sight": "Pas de taximètre en vue"
},
"success": [],
"success": {},
"info": {
"person_was_dropped_off": "La personne a été déposée!",
"npc_on_gps": "Le client est indiqué sur votre GPS!",
Expand Down
2 changes: 1 addition & 1 deletion locales/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"not_active_meter": "Il tassametro non è acceso",
"no_meter_sight": "Nessun tassametro visibile"
},
"success": [],
"success": {},
"info": {
"person_was_dropped_off": "La persona è stata lasciata! ",
"npc_on_gps": "L'NPC è stato segnato sul GPS",
Expand Down
2 changes: 1 addition & 1 deletion locales/nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"not_active_meter": "De taximeter is niet actief",
"no_meter_sight": "Geen taximeter in zicht"
},
"success": [],
"success": {},
"info": {
"person_was_dropped_off": "Persoon is afgezet!",
"npc_on_gps": "De NPC wordt op je GPS aangegeven",
Expand Down
2 changes: 1 addition & 1 deletion locales/pt-br.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"not_active_meter": "O taxímetro não está ativo",
"no_meter_sight": "Nenhum taxímetro à vista"
},
"success": [],
"success": {},
"info": {
"person_was_dropped_off": "Pessoa foi deixada!",
"npc_on_gps": "O NPC está indicado no seu GPS",
Expand Down
2 changes: 1 addition & 1 deletion locales/pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"not_active_meter": "O taxímetro não se encontra activo",
"no_meter_sight": "Nenhum taxímetro à vista"
},
"success": [],
"success": {},
"info": {
"person_was_dropped_off": "O passageiro foi entregue!",
"npc_on_gps": "O NPC encontra-se indicado no teu GPS",
Expand Down
2 changes: 1 addition & 1 deletion locales/sv.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"not_active_meter": "Taxametern är inte aktiv",
"no_meter_sight": "Ingen Taxameter i sikte"
},
"success": [],
"success": {},
"info": {
"person_was_dropped_off": "Passageraren släpptes av!",
"npc_on_gps": "NPC'n syns på din GPS",
Expand Down
2 changes: 1 addition & 1 deletion locales/th.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"not_active_meter": "มิเตอร์แท็กซี่ไม่ทำงาน",
"no_meter_sight": "ไม่มีมิเตอร์แท็กซี่ในระยะสายตา"
},
"success": [],
"success": {},
"info": {
"person_was_dropped_off": "ปล่อยคนลง",
"npc_on_gps": "มีการระบุ NPC บน GPS ของคุณ",
Expand Down
2 changes: 1 addition & 1 deletion locales/tr.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"not_active_meter": "Taksimetre Aktif Değil",
"no_meter_sight": "Görünürde Taksimetre Yok"
},
"success": [],
"success": {},
"info": {
"person_was_dropped_off": "Kişi Bırakıldı!",
"npc_on_gps": "NPC, GPS'inizde Belirtildi",
Expand Down

0 comments on commit 19e54b8

Please sign in to comment.