Add Japanese translations for Node-RED v1.3

This commit is contained in:
Kazuhito Yokoi
2021-04-08 20:06:35 +09:00
parent 41a0147938
commit a157580b22
6 changed files with 8 additions and 4 deletions

View File

@@ -98,7 +98,7 @@ module.exports = function(RED) {
node.libs = n.libs || [];
if (RED.settings.functionExternalModules !== true && node.libs.length > 0) {
throw new Error("Function node not allowed to load external modules");
throw new Error(RED._("function.error.externalModuleNotAllowed"));
}
var handleNodeDoneCall = true;

View File

@@ -225,6 +225,7 @@
"module": "module"
},
"error": {
"externalModuleNotAllowed": "Function node not allowed to load external modules",
"moduleNotAllowed": "Module __module__ not allowed",
"moduleLoadError": "Failed to load module __module__: __error__",
"moduleNameError": "Invalid module variable name: __name__",

View File

@@ -225,6 +225,7 @@
"module": "モジュール"
},
"error": {
"externalModuleNotAllowed": "Functionのードは、外部モジュールを読み込みできません",
"moduleNotAllowed": "モジュール __module__ は利用できません",
"moduleLoadError": "モジュール __module__ の読み込みに失敗しました: __error__",
"moduleNameError": "モジュール変数名が不正です: __name__",