From 3ecaa6f4a4b915724f9e2586d739fc27e4dff5bb Mon Sep 17 00:00:00 2001 From: Alexander Hofbauer Date: Tue, 3 Dec 2024 18:39:30 +0100 Subject: [PATCH 1/2] Allow placeholders to be translated --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index a4aacbe..ed3560b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -164,9 +164,9 @@ export default class Quote implements BlockTool { this.readOnly = readOnly; this.quotePlaceholder - = config?.quotePlaceholder ?? Quote.DEFAULT_QUOTE_PLACEHOLDER; + = api.i18n.t(config?.quotePlaceholder ?? Quote.DEFAULT_QUOTE_PLACEHOLDER); this.captionPlaceholder - = config?.captionPlaceholder ?? Quote.DEFAULT_CAPTION_PLACEHOLDER; + = api.i18n.t(config?.captionPlaceholder ?? Quote.DEFAULT_CAPTION_PLACEHOLDER); this.data = { text: data.text || '', From 8d704da45683d0d51ed4ea277110a05a785ebe6c Mon Sep 17 00:00:00 2001 From: Alexander Hofbauer Date: Tue, 3 Dec 2024 18:42:01 +0100 Subject: [PATCH 2/2] Increment patch version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 9354c23..45863ea 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@editorjs/quote", - "version": "2.7.5", + "version": "2.7.6", "keywords": [ "codex editor", "quote",