SYNC: Merge pull request #18 from dbgate/feature/translation5

This commit is contained in:
Jan Prochazka
2025-12-09 16:01:56 +01:00
committed by Diflow
parent b37744d574
commit 15ea53864f
4 changed files with 16 additions and 13 deletions

View File

@@ -16,7 +16,7 @@
registerCommand({
id: 'jsonl.save',
group: 'save',
category: 'JSON Lines editor',
category: __t('command.jsonl', { defaultMessage: 'JSON Lines editor' }),
name: __t('command.jsonl.save', { defaultMessage: 'Save' }),
toolbar: true,
isRelatedToTab: true,
@@ -27,7 +27,7 @@
registerCommand({
id: 'jsonl.preview',
category: 'JSON Lines editor',
category: __t('command.jsonl', { defaultMessage: 'JSON Lines editor' }),
name: __t('command.jsonl.preview', { defaultMessage: 'Preview' }),
icon: 'icon preview',
keyText: 'F5',
@@ -37,7 +37,7 @@
registerCommand({
id: 'jsonl.previewNewTab',
category: 'JSON Lines editor',
category: __t('command.jsonl', { defaultMessage: 'JSON Lines editor' }),
name: __t('command.jsonl.previewNewTab', { defaultMessage: 'Preview in new tab' }),
icon: 'icon preview',
testEnabled: () => getCurrentEditor() != null,
@@ -46,7 +46,7 @@
registerCommand({
id: 'jsonl.closePreview',
category: 'JSON Lines editor',
category: __t('command.jsonl', { defaultMessage: 'JSON Lines editor' }),
name: __t('command.jsonl.closePreview', { defaultMessage: 'Close preview' }),
icon: 'icon close',
testEnabled: () => getCurrentEditor()?.isPreview(),