Skip to content

Commit

Permalink
Fixed issues with localization for settings
Browse files Browse the repository at this point in the history
  • Loading branch information
ChasarooniZ committed Aug 7, 2023
1 parent 2c47f4b commit b70f49c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions languages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@
"top-offset": {
"name": "% offset from top of token",
"hint": "Offset percentage from top of token, input as whole number (IE. 70 is 70%)"
},
"number-scale-type": {
"name": "Number Scale Type",
"hint": "Scaling type for the size of the RPG Numbers",
"choices": {
"percent-remaining-health": "% Remaining HP",
"percent-max-health": "% Remaining HP",
"none": "None"
}
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion scripts/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Hooks.on("init", () => {
config: true,
default: "percentMaxHealth",
type: String,
string: {
choices: {
["percentRemainingHealth"]: game.i18n.localize("pf2e-rpg-numbers.module-settings.number-scale-type.choices.percent-remaining-health"),
["percentMaxHealth"]: game.i18n.localize("pf2e-rpg-numbers.module-settings.number-scale-type.choices.percent-max-health"),
["none"]: game.i18n.localize("pf2e-rpg-numbers.module-settings.number-scale-type.choices.none"),
Expand Down

0 comments on commit b70f49c

Please sign in to comment.