Localize names / labels of newly created embedded items / effects
This commit is contained in:
parent
808dab7f5a
commit
bb67788abc
4 changed files with 31 additions and 5 deletions
|
@ -147,7 +147,7 @@ export class DS4ActorSheet extends ActorSheet<ActorSheet.Options, DS4ActorSheetD
|
|||
|
||||
const { type, ...data } = foundry.utils.deepClone(header.dataset);
|
||||
|
||||
const name = `New ${type.capitalize()}`;
|
||||
const name = getGame().i18n.localize(`DS4.New${type.capitalize()}Name`);
|
||||
|
||||
const itemData = {
|
||||
name: name,
|
||||
|
@ -259,7 +259,7 @@ export class DS4ActorSheet extends ActorSheet<ActorSheet.Options, DS4ActorSheetD
|
|||
|
||||
protected onCreateEffect(): void {
|
||||
const createData = {
|
||||
label: "New Effect",
|
||||
label: getGame().i18n.localize(`DS4.NewEffectLabel`),
|
||||
icon: "icons/svg/aura.svg",
|
||||
origin: this.actor.uuid,
|
||||
};
|
||||
|
|
|
@ -99,7 +99,7 @@ export class DS4ItemSheet extends ItemSheet<ItemSheet.Options, DS4ItemSheetData>
|
|||
*/
|
||||
protected async createActiveEffect(): Promise<ActiveEffect | undefined> {
|
||||
const createData = {
|
||||
label: "New Effect",
|
||||
label: getGame().i18n.localize(`DS4.NewEffectLabel`),
|
||||
icon: "icons/svg/aura.svg",
|
||||
origin: this.item.uuid,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue