Skills sort in Japanese

This commit is contained in:
ryotai-trpg
2025-03-29 22:17:53 +09:00
parent 712f12ae89
commit 85b15e240a
2 changed files with 46 additions and 2 deletions
+6 -1
View File
@@ -75,7 +75,12 @@ export default class DeltaGreenActorSheet extends ActorSheet {
let sortedSkills = [];
for (const [key, skill] of Object.entries(this.actor.system.skills)) {
skill.key = key;
skill.sortLabel = game.i18n.localize(`DG.Skills.${key}`);
if (game.i18n.lang === "ja") {
skill.sortLabel = game.i18n.localize(`DG.Skills.ruby.${key}`);
} else {
skill.sortLabel = game.i18n.localize(`DG.Skills.${key}`);
}
if (skill.sortLabel === "" || skill.sortLabel === `DG.Skills.${key}`) {
skill.sortLabel = skill.key;