localizations

This commit is contained in:
Lone Iversen
2024-02-05 13:34:16 +01:00
parent 4ec22ed118
commit 55c2e5a2bb

View File

@@ -44,7 +44,7 @@ export class UmbPropertyEditorUIBlockGridElement extends UmbLitElement implement
private _directRoute?: string;
@state()
private _createButtonLabel = this.localize.term('content_createEmpty');
private _createButtonLabel = this.localize.term('blockEditor_addBlock');
@property({ attribute: false })
public set config(config: UmbPropertyEditorConfigCollection | undefined) {
@@ -62,7 +62,7 @@ export class UmbPropertyEditorUIBlockGridElement extends UmbLitElement implement
if (customCreateButtonLabel) {
this._createButtonLabel = customCreateButtonLabel;
} else if (this._blocks.length === 1) {
this._createButtonLabel = `${this.localize.term('general_add')} ${this._blocks[0].label}`;
this._createButtonLabel = this.localize.term('blockEditor_addThis', [this._blocks[0].label]);
}
//const useInlineEditingAsDefault = config.getValueByAlias<boolean>('useInlineEditingAsDefault');