Translating Resources

Translating our resources into another language is simple!

Most of our resources can be easily translated into another language, all through the translations.lua file or the config.lua file, depending on the resource. Some of our older resources may not have this support, but we're working to get that sorted in the near future.

For example, here is the config.lua translations section from Smart Taser:

main.translations = {
    embedTitle = "Taser - Event Log",
    event = "Event:",
    device = "Device:",
    carrier = "Carrier:",
    cartridgesRemaining = "Remaining Cartridges:",
    cartridgeID = "Cartridge ID:",
    serialNumber = "Serial Number:",
    battery = "Battery:",
    timestamp = "Timestamp:",
    eventType1 = "Trigger - Cartridge 1",
    eventType2 = "Trigger - Cartridge 2",
    eventType3 = "Trigger - Arc Mode",
    eventType4 = "Reactivated Taser Cartridge",
    left = "Left",
    right = "Right",
    barbReactivated = " cartridge reactivated.",
    arcTase = "Drive stun mode operated.",
    taserReloaded = "Reload successful.",
    barbsRemovedByOfficer = "Barbs removed successfully.",
    barbsRemovedByOfficer2 = "Your taser barbs have been removed manually.",
    barbsRemovedAutomatically = "Your taser barbs have ripped out.",
    barbsRemovedAutomaticallyOfficer = "Suspect taser barbs have ripped out.",
    suspectDied = "The suspect has died.",
    weaponFull = "Your taser is already fully loaded.",
    weaponNotFound = "You must be holding your taser.",
    reloadTaserSuggestion = "Reload your taser",
    removeBarbsSuggestion = "Remove barbs after firing",
}

As you can see, you'll either find a standalone translations.lua file, or you'll find it within the config.lua file. Additionally, you may need to edit some other areas of the config where commands are defined, in order to allow full translation.

If you've found an area/message within a resource you've been unable to translate, please get in touch with our support team who will be happy to help.

Last updated