Translation

circle-info

You can translate to language of your choice, but the script have a 7 lenguages default


How to translate to other lenguage

Go to "ws-kill-or-treat/locales" and create a .lua archive with the name of your choice, but remeber that the name should not have a spaces or invalid characters. Copy the code below this text and paste in the archive lua.

local locales = {
    ["already_mission"] = "Return Point",
    ["desc_already_mission"] = "Trick!",
    ["mission_started"] = "Mission Started",
    ["desc_mission_started"] = "Go to the marked point on the map.",
    ["trick"] = "Trick!",
    ["desc_trick"] = "The NPC becomes hostile.",
    ["next_target"] = "Next Target",
    ["desc_next_target"] = "Go to the new location marked on the map.",
    ["return"] = "Return Point",
    ["desc_return"] = "Go to the van's return point.",
    ["treat"] = "Treat",
    ["desc_treat1"] = "You have paid",
    ["desc_treat2"] = "to the NPC.",
    ["stash"] = "Stash Available",
    ["desc_stash"] = "You can collect the stash here.",
    ["stash_ready"] = "Stash Collected",
    ["desc_stash_ready"] = "You have collected the stash.",
    ["mission_win"] = "Mission Complete",
    ["desc_mission_win"] = "You have completed all the missions. Return to the contractor.",
    ["car_return"] = "Van Returned",
    ["desc_car_return"] = "You have returned the van and received your candies.",
    ["error"] = "Error",
    ["desc_error"] = "You don't have a van to return.",
    ["action_required"] = "Trick or Treat",
    ["press_context"] = "Press E to Trick or Treat.",
    ["success"] = "Success",
    ["reward_received"] = "You have received",
    ["exchange_failed"] = "Exchange failed.",
    ["start_mission_label"] = "Start Mission",
    ["trick_or_treat"] = "Kill or Treat",
    ["pick_box"] = "Pick the Box",
    ["key_e"] = "Press E to interact.",
    ["no_money"] = "Insufficient Money",
    ["need_money"] = "You don't have enough money to do the treat. Return when you have enough money.",
    ["error_no_reward"] = "The exchange has been completed without a monetary reward.",
    ["error_not_enough_item"] = "You don't have enough %{item} to exchange.",
    ["success_received_reward"] = "You have received ~g~$%{amount}~s~ for Trick or Treat!"
}

return locales

Translate all of the text in the " to the lenguage of your election.

How to change in the config

Go to config.lua, and inside there, change the locale to your locale name.

Last updated