tiddlywiki-dnd
tiddlywiki-dnd copied to clipboard
Localize creature and spell descriptions
Consider a tiddler with the following fields:
Field | Value |
---|---|
dnd.creature.size |
medium |
dnd.creature.type |
humanoid |
dnd.creature.tags |
orc |
dnd.creature.alignment |
chaotic evil |
According to the convention in the English material, we should render the description like:
Medium humanoid (orc), chaotic evil
Different languages have different conventions:
Humanoïde (orque) de taille M, chaotique mauvais
We need language-specific template strings to interpolate the field values, translating them where necessary. If a field is missing or empty, it should not appear in the description. For example, if a creature has no tags, we should render:
Medium beast, unaligned
Instead of:
Medium beast (), unaligned
We would use the same system for spell and item descriptions.