# Internationalization in package with multipe custom nodes

**URL:** <https://discourse.nodered.org/t/internationalization-in-package-with-multipe-custom-nodes/89369>\
**Category:** Developing Nodes\
**Created:** [9 July 2024 10:44 UTC](https://discourse.nodered.org/t/internationalization-in-package-with-multipe-custom-nodes/89369 "2024-07-09T10:44:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![igoodwin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/igoodwin/32/92668_2.png) [@igoodwin](https://discourse.nodered.org/u/igoodwin)\
**Post date:** [9 July 2024 10:44 UTC](https://discourse.nodered.org/t/internationalization-in-package-with-multipe-custom-nodes/89369/1 "2024-07-09T10:44:42Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![GogoVega](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gogovega/32/71313_2.png) [@GogoVega](https://discourse.nodered.org/u/GogoVega)\
**Post date:** [9 July 2024 11:12 UTC](https://discourse.nodered.org/t/internationalization-in-package-with-multipe-custom-nodes/89369/2 "2024-07-09T11:12:47Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![igoodwin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/igoodwin/32/92668_2.png) [@igoodwin](https://discourse.nodered.org/u/igoodwin)\
**Post date:** [9 July 2024 11:33 UTC](https://discourse.nodered.org/t/internationalization-in-package-with-multipe-custom-nodes/89369/3 "2024-07-09T11:33:36Z")

</div>

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. 🙂 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!  
🙂

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [23 July 2024 11:33 UTC](https://discourse.nodered.org/t/internationalization-in-package-with-multipe-custom-nodes/89369/4 "2024-07-23T11:33:41Z")

</div>

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