My custom package has this directory structure:
- [root]
- package.json
- ninox
- ninox.html
- ninox.js
- locales
- en-US
- ninox.json
- en-US
In package.json, this:
...
"node-red": {
"nodes": {
"ninox": "ninox/ninox.js"
}
}
...
In locales/en-US/ninox.json, this:
{
"ninox": {
"method.label": "Method",
...
}
}
In ninox.js, this:
...
console.log("i18n", RED._("ninox:method.label"));
Actual output: i18n method.label
Expected output: i18n Method
What am I doing wroing