localize_npc_names <TOML FILE> <OUTPUT DIR> [MODULE NAME]
By default it'll read existing locale files and skip fetching those strings that are already there (and not commented out). To override this behaviour, set FORCE_ALL env variable to 1.
localize_npc_names ./Examples/LittleWigs/BfA/Freehold.toml ../LittleWigs/BfA/Freehold/Locales "Freehold Trash"
It's sort of hacked together and not thoroughly tested, but you can give it a try:
generate_toml_from_one ../LittleWigs/BfA/Freehold/Trash.lua > freehold.toml
If there are locale variables that don't have a corresponding mob ID (and vice versa), they will be printed to stderr.
The input file is expected to be formatted like this:
mod:RegisterEnableMob(
1, -- NPC #1
2 -- NPC #2
)
-- ...
if L then
L.first = "NPC #1"
L.second = "NPC #2"
end# generate_toml_from_dir <INPUT DIR> <OUTPUT DIR>
generate_toml_from_dir ../LittleWigs ./Examples/LittleWigsIf SHOW_MISSING_IDS_AND_VARS environment variable is set to 1, missing mob IDs and locale variables will be printed to stderr.
- Install Rust;
- Run
cargo build --release.