Add missing i18n

This commit is contained in:
Johannes Loher 2021-03-13 22:22:28 +01:00
parent 18e6c31b5c
commit 3ea07a2379
5 changed files with 9 additions and 7 deletions

View file

@ -34,7 +34,7 @@ function assignSubChecksToDice(
const requiredNumberOfDice = getRequiredNumberOfDice(checkTargetNumber);
if (dice.length !== requiredNumberOfDice || requiredNumberOfDice < 1) {
throw new Error(game.i18n.localize("DS4.ErrorInvalidNumberOfDice")); // TODO: add i18n
throw new Error(game.i18n.localize("DS4.ErrorInvalidNumberOfDice"));
}
const checkTargetNumberForLastSubCheck = checkTargetNumber - 20 * (requiredNumberOfDice - 1);