yola / gulp-static-i18n

Gulp plugin for internationalization of static assets.
MIT License
5 stars 8 forks source link

JSON parser needs to accept keys that contain dots #25

Closed beck closed 7 years ago

beck commented 7 years ago

If the json looks like:

{
  "site.tagline.text": "Hello!"
}

And the user specifies site.tagline.text, the parser looks for:

{
  "site": {
    "tagline": {
      "text": "Hello!"
    }
  }
}

The Fix

Introduce dot escaping, allow the consumer to specify site\.tagline\.text