Skip to content
This repository has been archived by the owner on Nov 15, 2019. It is now read-only.

i18n parameters #36

Open
bmpc opened this issue Feb 27, 2017 · 1 comment
Open

i18n parameters #36

bmpc opened this issue Feb 27, 2017 · 1 comment

Comments

@bmpc
Copy link

bmpc commented Feb 27, 2017

Does this plugin support parameters?

I have the following in en.json:

"a": {
   "b": {
        "header": "Add Bananas to Basket %s"
    }
}

and then on a react component, outside the render method:

var x = __("a.b.header", "B2");

This doesn't seem to work as the output is "a.b.header".

@EcutDavid
Copy link
Contributor

EcutDavid commented Mar 25, 2017

@bmpc since this is impossible to tell the difference between

{
  "a.b.header":  "Add Bananas to Basket %s"
}

And

{
  "a": {
     "b": {
          "header": "Add Bananas to Basket %s"
      }
  }
}

Not going to implement it in near future😢

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants