From b95df6d8832909b91d5e34fba69113aeb65ff23f Mon Sep 17 00:00:00 2001 From: Hiroyasu Nishiyama Date: Mon, 7 Nov 2022 15:47:19 +0900 Subject: [PATCH] i18n item URL copy notification & add Japanese message --- .../@node-red/editor-client/locales/en-US/editor.json | 3 ++- .../@node-red/editor-client/locales/ja/editor.json | 3 ++- .../@node-red/editor-client/src/js/ui/view-tools.js | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/node_modules/@node-red/editor-client/locales/en-US/editor.json b/packages/node_modules/@node-red/editor-client/locales/en-US/editor.json index 1cc571200..b97b9815a 100755 --- a/packages/node_modules/@node-red/editor-client/locales/en-US/editor.json +++ b/packages/node_modules/@node-red/editor-client/locales/en-US/editor.json @@ -684,7 +684,8 @@ "globalConfig": "Global Configuration Nodes", "triggerAction": "Trigger action", "find": "Find in workspace", - "copyItemUrl": "Copy item url" + "copyItemUrl": "Copy item url", + "copyURL2Clipboard": "Copied url to clipboard" }, "help": { "name": "Help", diff --git a/packages/node_modules/@node-red/editor-client/locales/ja/editor.json b/packages/node_modules/@node-red/editor-client/locales/ja/editor.json index fb3458eed..fe2625556 100644 --- a/packages/node_modules/@node-red/editor-client/locales/ja/editor.json +++ b/packages/node_modules/@node-red/editor-client/locales/ja/editor.json @@ -683,7 +683,8 @@ "empty": "空", "globalConfig": "グローバル設定ノード", "triggerAction": "アクションを実行", - "find": "ワークスペース内を検索" + "find": "ワークスペース内を検索", + "copyURL2Clipboard": "URLをクリップボードにコピーしました" }, "help": { "name": "ヘルプ", diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/view-tools.js b/packages/node_modules/@node-red/editor-client/src/js/ui/view-tools.js index 1ed5791a6..0f02077d8 100644 --- a/packages/node_modules/@node-red/editor-client/src/js/ui/view-tools.js +++ b/packages/node_modules/@node-red/editor-client/src/js/ui/view-tools.js @@ -1211,7 +1211,7 @@ RED.view.tools = (function() { url += '/edit' } if (RED.clipboard.copyText(url)) { - RED.notify('Copied url to clipboard', { timeout: 2000 }) + RED.notify(RED._("sidebar.info.copyURL2Clipboard"), { timeout: 2000 }) } } }