names_to_json/
names_to_json.rs

1//! Used to convert our `npc_names.ron` to `JSON` file to be able to use it with
2//! other languages, for example Python.
3//!
4//! Originally used during implementation of i18n for NPC names to automate
5//! migration from hardcoded english strings to translation keys as well as
6//! generate Fluent files.
7//!
8//! Feel free to use it for something similar.
9use veloren_common::npc::NPC_NAMES;
10
11fn main() {
12    let names = NPC_NAMES.read();
13    let content = serde_json::to_string(&names.clone()).unwrap();
14    println!("{content}");
15}