Skip to content

Commit

Permalink
Merge pull request #76 from aleho/master
Browse files Browse the repository at this point in the history
Allow placeholders to be translated

Thanks, @aleho
  • Loading branch information
neSpecc authored Dec 3, 2024
2 parents 9aa676b + 8d704da commit 78f70cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@editorjs/quote",
"version": "2.7.5",
"version": "2.7.6",
"keywords": [
"codex editor",
"quote",
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 || '',
Expand Down

0 comments on commit 78f70cf

Please sign in to comment.