gatsby-i18n icon indicating copy to clipboard operation
gatsby-i18n copied to clipboard

fix: nested JSON files not being added correctly

Open garyforsterio opened this issue 5 years ago • 0 comments

When using a JSON structure with nested keys, e.g.

{
  "rootKey": "Value",
  "category" : {
    "nestedKey": "This doesn't work currently"
  }
}

the current code is using addResources which seems to support on key/value pairs (docs here. By changing this to addResourceBundle it is possible to add support for key/value pairs using this plugin

garyforsterio avatar Jan 10 '20 06:01 garyforsterio