Localization Guide
Supported Languages
Code
Language
File
Adding a New Language
Step 1: Create Language File
-- locales/es.lua (Spanish example)
Locales["es"] = {
-- Menu
hunting_actions = "Acciones de caza",
open_hunting_menu = "Abrir menu de caza",
cancel_contract = "Cancelar contrato",
deliver_products = "Entregar productos",
open_bait_shop = "Abrir tienda de cebos",
-- Contracts
contract_received = "Contrato recibido",
contract_finished = "Contrato terminado",
contract_cancelled = "Contrato cancelado",
contract_completed = "Contrato completado! Ganaste $%d y %d XP",
contract_not_finished = "El contrato aun no esta terminado",
-- Hunting
no_active_contract = "No tienes un contrato activo",
no_trophies = "No llevas trofeos de caza",
mission_not_found = "Mision no encontrada",
-- Tracking
hunter_vision_active = "Vision de cazador activa",
no_tracks_found = "No se encontraron rastros cercanos",
track_found = "%s encontrado - %s - Calidad: %s",
no_contract_track = "Necesitas un contrato activo para rastrear",
-- Bait
bait_placed_success = "Cebo colocado exitosamente",
bait_out_of_area = "Debes estar en una zona de caza activa",
animal_approaching = "Un animal se acerca al cebo!",
animal_consumed_bait = "El animal consumio el cebo",
no_animals_nearby = "No hay animales cercanos para atraer",
-- Death/Damage
died_contract_lost = "Moriste! Perdiste el contrato y %d XP",
died_xp_lost = "Moriste durante la caza. Perdiste %d XP",
bonus_failed_damage = "Objetivo bonus fallido: Recibiste dano",
-- Delivery
delivered_animals = "Entregaste %d animal(es)",
still_need_animals = "Aun necesitas %d animal(es) mas",
trophies_not_match = "Los trofeos no coinciden con el contrato",
pelt_not_perfect = "Este contrato requiere pieles perfectas",
no_valid_trophies = "No tienes trofeos validos para entregar",
-- Rewards
received_reward = "Recibiste $%d y %d XP de experiencia",
reward_already_claimed = "Ya reclamaste tu recompensa",
-- Level Up
tracking_mastery_levelup = "Subiste a %s (Nivel %d)!",
-- Bait Shop
purchased_bait = "Compraste %s por $%d",
not_enough_money_bait = "Necesitas $%s para comprar esto",
failed_add_inventory = "No se pudo agregar al inventario",
invalid_bait_item = "Item de cebo invalido",
no_bait_item = "No tienes este cebo",
failed_use_bait = "No se pudo usar el cebo",
bait_location = "Ubicacion del cebo",
-- Language
language_reset = "Idioma restablecido al predeterminado",
-- Tracking spam
tracking_spam_warning = "Espera antes de rastrear de nuevo",
trace_xp_set = "XP de rastreo establecido a %d (Nivel %d)",
trace_xp_reset = "XP de rastreo restablecido",
-- Contract status
contract_failed_distance = "Contrato abandonado",
-- Bait Shop Categories
baitshop_cat_herbivore_name = "Herbivoros",
baitshop_cat_herbivore_desc = "Cebos para ciervos, alces y otros herviboros",
baitshop_cat_predator_name = "Depredadores",
baitshop_cat_predator_desc = "Atrae osos, pumas y lobos",
baitshop_cat_birds_name = "Aves",
baitshop_cat_birds_desc = "Para aves de caza y pajaros",
baitshop_cat_premium_name = "Premium",
baitshop_cat_premium_desc = "Cebos de alta calidad para cazadores expertos",
-- Bait Items
baitshop_item_basic_herbivore_name = "Maiz Seco",
baitshop_item_basic_herbivore_desc = "Cebo basico para herbivoros",
-- ... add all bait item translations
}Step 2: Register Language in Config
Step 3: Add Flag Image
Step 4: Restart Resource
Translation Keys Reference
Menu & UI
Key
Description
Contract Messages
Key
Description
Parameters
Hunting Messages
Key
Description
Tracking Messages
Key
Description
Parameters
Bait Messages
Key
Description
Parameters
Death/Damage Messages
Key
Description
Parameters
Delivery Messages
Key
Description
Parameters
Reward Messages
Key
Description
Parameters
Bait Shop
Key
Description
NUI Translations
Using Placeholders
Locale Helper Functions
Server-Side
Client-Side
Best Practices
Last updated