@yantra-core/sutra
Version:
A JavaScript behavior tree library for easily creating and managing complex behavior patterns in game development.
28 lines (27 loc) • 762 B
JavaScript
// Example language configuration object
const languageConfig = {
en: { // English
ifKeyword: "if",
thenKeyword: "then",
elseKeyword: "else",
andKeyword: "and",
subtreeKeyword: "subtree"
// Add more keywords or phrases as needed
},
zh: { // Mandarin
ifKeyword: "如果", // Rúguǒ
thenKeyword: "那么", // Nàme
elseKeyword: "否则", // Fǒuzé
andKeyword: "和", // Hé
subtreeKeyword: "子树" // Zǐshù
},
ja: { // Japanese
ifKeyword: "もし", // Moshi
thenKeyword: "ならば", // Naraba
elseKeyword: "それ以外", // Sore igai
andKeyword: "と", // To
subtreeKeyword: "サブツリー" // Sabutsurī
},
// You can add more languages here
};
export default languageConfig;