Internationalization in package with multipe custom nodes

I've created a package with custom nodes and am trying to add internationalization. Published package structure is:
root/
├── locales/
│ ├── en-US
│ │ ├── node-1.html
│ │ ├── node-1.json
│ │ ├── node-2.html
│ │ └── node-2.json
│ ├── ru
│ │ ├── node-1.html
│ │ ├── node-1.json
│ │ ├── node-2.html
│ │ └── node-2.json
├── node-1.js
├── node-2.js
└── package.json

The Node-1 only uses the en-US locale, even if I change the language to Russian. The Node-2 doesn't detect any locale. All resources are created in the same way, and I don't understand why this is happening.
I tried to use the ru-RU key and it didn't help.

Hi, can you give us a link to your repository in order to see what is blocking.

I found solution myself. I have incorrectly named my files. The file scheme above is incorrect. More precisely, this is the correct diagram, and not the one I had. :slight_smile: My js file was called differently. I renamed them (all node files have the same name, the only difference is in the extension) and everything worked.
Thank you all and excuse for troubling!
:slight_smile:

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.