Skip to content
Open
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
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ const menuAction = new FileAction({
const lock = getLockStateFromAttributes(node)

if (lock?.lockOwnerType === LockType.Token) {
const dialog = getDialogBuilder('Unlock file manually')
const dialog = getDialogBuilder('files_lock', 'Unlock file manually')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const dialog = getDialogBuilder('files_lock', 'Unlock file manually')
const dialog = getDialogBuilder(t('files_lock', 'Unlock file manually'))

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, it needs a further adjustment to call the translate function

.setText(t('files_lock', 'This file has been locked automatically by a client. Removing the lock may lead to a conflict saving the file.'))
.setSeverity('warning')
.addButton({
Expand Down
Loading