Translation for peculiarities types in sheet
This commit is contained in:
@@ -132,7 +132,13 @@
|
||||
"ninjutsu": "Ninjutsu"
|
||||
},
|
||||
"peculiarities": {
|
||||
"title_new": "Nouvelle particularité"
|
||||
"title_new": "New peculiarity",
|
||||
"types": {
|
||||
"distinction": "Distinction",
|
||||
"passion": "Passion",
|
||||
"adversity": "Adversity",
|
||||
"anxiety": "Anxiety"
|
||||
}
|
||||
},
|
||||
"skill": "Skill",
|
||||
"level": "Level",
|
||||
|
||||
@@ -132,7 +132,13 @@
|
||||
"ninjutsu": "Ninjutsu"
|
||||
},
|
||||
"peculiarities": {
|
||||
"title_new": "Nouvelle particularité"
|
||||
"title_new": "New peculiarity",
|
||||
"types": {
|
||||
"distinction": "Distinction",
|
||||
"passion": "Passion",
|
||||
"adversity": "Adversity",
|
||||
"anxiety": "Anxiety"
|
||||
}
|
||||
},
|
||||
"skill": "Habilidad",
|
||||
"level": "Nivel",
|
||||
|
||||
@@ -132,7 +132,13 @@
|
||||
"ninjutsu": "Ninjutsu"
|
||||
},
|
||||
"peculiarities": {
|
||||
"title_new": "Nouvelle particularité"
|
||||
"title_new": "Nouvelle particularité",
|
||||
"types": {
|
||||
"distinction": "Aptitude",
|
||||
"passion": "Passion",
|
||||
"adversity": "Coup du sort",
|
||||
"anxiety": "Défaillance"
|
||||
}
|
||||
},
|
||||
"skill": "Compétence",
|
||||
"level": "Niveau",
|
||||
|
||||
@@ -24,7 +24,10 @@ export class PeculiaritySheetL5r5e extends ItemSheetL5r5e {
|
||||
async getData() {
|
||||
const sheetData = await super.getData();
|
||||
|
||||
sheetData.data.subTypesList = PeculiaritySheetL5r5e.types;
|
||||
sheetData.data.subTypesList = PeculiaritySheetL5r5e.types.map((e) => ({
|
||||
id: e,
|
||||
label: game.i18n.localize("l5r5e.peculiarities.types." + e),
|
||||
}));
|
||||
|
||||
return sheetData;
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
<select class="attribute" name="data.peculiarity_type">
|
||||
{{#select item.data.peculiarity_type}}
|
||||
{{#each item.data.subTypesList as |type|}}
|
||||
<option value="{{type}}">{{type}}</option>
|
||||
<option value="{{type.id}}">{{type.label}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
|
||||
Reference in New Issue
Block a user