Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions plugins/smartling/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion plugins/smartling/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@builder.io/plugin-smartling",
"version": "0.1.1",
"version": "0.1.2-1",
"description": "",
"keywords": [],
"main": "dist/plugin.system.js",
Expand Down
9 changes: 5 additions & 4 deletions plugins/smartling/src/plugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -848,11 +848,12 @@ const initializeSmartlingPlugin = async () => {
);
},
async onClick(content) {
const result = await appState.dialogs.confirm({
message: 'This will clear all translation metadata from this content. Are you sure?',
});
const result = await appState.dialogs.confirm(
'This will clear all translation metadata from this content. Are you sure?'
);
if (result) {
const updatedMeta = fastClone(content.meta);
const metadata = typeof content.meta?.toJS === 'function' ? content.meta.toJS() : content.meta;
const updatedMeta = { ...(metadata || {}) };
delete updatedMeta.translationStatus;
delete updatedMeta.translationJobId;
delete updatedMeta.translationBy;
Expand Down
Loading