# Why doesn't my i18n work?

**URL:** <https://discourse.nodered.org/t/why-doesnt-my-i18n-work/9183>\
**Category:** General\
**Created:** [19 March 2019 13:53 UTC](https://discourse.nodered.org/t/why-doesnt-my-i18n-work/9183 "2019-03-19T13:53:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kurvenschubser](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/kurvenschubser/32/6928_2.png) [@kurvenschubser](https://discourse.nodered.org/u/kurvenschubser)\
**Post date:** [19 March 2019 13:53 UTC](https://discourse.nodered.org/t/why-doesnt-my-i18n-work/9183/1 "2019-03-19T13:53:13Z")

</div>

My custom package has this directory structure:

- [root]
  - package.json
  - ninox
    - ninox.html
    - ninox.js
    - locales
      - en-US
        - ninox.json

In package.json, this:

```auto
  ...
  "node-red": {
    "nodes": {
      "ninox": "ninox/ninox.js"
    }
  }
  ...

```

In locales/en-US/ninox.json, this:

```auto
{
    "ninox": {
        "method.label": "Method",
        ...
    }
}

```

In ninox.js, this:

```auto

...
        console.log("i18n", RED._("ninox:method.label"));

```

Actual output: i18n method.label  
Expected output: i18n Method

What am I doing wroing

---

<div class="post-metadata">

**Author:** ![tilleul](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/tilleul/32/78_2.png) [@tilleul](https://discourse.nodered.org/u/tilleul)\
**Post date:** [22 March 2019 15:35 UTC](https://discourse.nodered.org/t/why-doesnt-my-i18n-work/9183/2 "2019-03-22T15:35:44Z")

</div>

The problem is probably related to an invalid path in your call to `RED._()` .... maybe something like `RED._("node-red-contrib-ninox/ninox:method.label")` should work (that is if your node-module is named `node-red-contrib-ninox`).
