From af0f02d63e10288f31ca273cf8aa720002aa1a83 Mon Sep 17 00:00:00 2001 From: Sam Machin Date: Sat, 19 Mar 2022 17:44:21 +0000 Subject: [PATCH] add locale warning --- .../node_modules/@node-red/runtime/lib/nodes/credentials.js | 2 +- .../node_modules/@node-red/runtime/locales/en-US/runtime.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/node_modules/@node-red/runtime/lib/nodes/credentials.js b/packages/node_modules/@node-red/runtime/lib/nodes/credentials.js index 356d5734e..d682b03f7 100644 --- a/packages/node_modules/@node-red/runtime/lib/nodes/credentials.js +++ b/packages/node_modules/@node-red/runtime/lib/nodes/credentials.js @@ -246,7 +246,7 @@ var api = module.exports = { throw error } else { // credentialSecret is set to False - log.warn("Using Unecrypted credentials") + log.warn(log._("nodes.credentials.unencrypted",{message:err.toString()})) credentialCache = credentials; } } diff --git a/packages/node_modules/@node-red/runtime/locales/en-US/runtime.json b/packages/node_modules/@node-red/runtime/locales/en-US/runtime.json index 815f9239c..092df794e 100644 --- a/packages/node_modules/@node-red/runtime/locales/en-US/runtime.json +++ b/packages/node_modules/@node-red/runtime/locales/en-US/runtime.json @@ -104,7 +104,8 @@ "error":"Error loading credentials: __message__", "error-saving":"Error saving credentials: __message__", "not-registered": "Credential type '__type__' is not registered", - "system-key-warning": "\n\n---------------------------------------------------------------------\nYour flow credentials file is encrypted using a system-generated key.\n\nIf the system-generated key is lost for any reason, your credentials\nfile will not be recoverable, you will have to delete it and re-enter\nyour credentials.\n\nYou should set your own key using the 'credentialSecret' option in\nyour settings file. Node-RED will then re-encrypt your credentials\nfile using your chosen key the next time you deploy a change.\n---------------------------------------------------------------------\n" + "system-key-warning": "\n\n---------------------------------------------------------------------\nYour flow credentials file is encrypted using a system-generated key.\n\nIf the system-generated key is lost for any reason, your credentials\nfile will not be recoverable, you will have to delete it and re-enter\nyour credentials.\n\nYou should set your own key using the 'credentialSecret' option in\nyour settings file. Node-RED will then re-encrypt your credentials\nfile using your chosen key the next time you deploy a change.\n---------------------------------------------------------------------\n", + "unencrypted" : "Using Unecrypted credentials" }, "flows": { "safe-mode": "Flows stopped in safe mode. Deploy to start.",