Implement utility function that recursively localizes based on the config data (implements #54)

This commit is contained in:
Oliver-Akins 2024-02-22 22:49:02 -07:00
parent 34c7dbed87
commit c1fa5b3d9b
3 changed files with 33 additions and 0 deletions

View file

@ -42,6 +42,11 @@ export const syncMilestones = [
export const syncDice = `1d20`;
export const localizerConfig = {
subKeyPattern: /@(?<key>[a-zA-Z\.]+)/gm,
maxDepth: 10,
};
export default {
stats,
statDice,
@ -57,4 +62,5 @@ export default {
itemTiers,
syncMilestones,
syncDice,
localizerConfig
};