syl3r86 / compendium-browser

A module to easily browse and filter spells as well as npcs loaded from compendie
0 stars 28 forks source link

Suggestion: Prepare for localized compendium entries #8

Open acd-jake opened 4 years ago

acd-jake commented 4 years ago

When using the "Babele" module to translate the compendium entries, the compendium browser no longer works properly.

The spells are no longer assigned to classes, because the assignment is done by name, which is now localized.

It would be better to use the "originalName", which does not change even if the spell is localized.

this could be done by changing the line 162 in the file compendium-worser.js from: let cleanSpellName = item.name.toLowerCase()... to let cleanSpellName = item.originalName.toLowerCase()...