react-localize icon indicating copy to clipboard operation
react-localize copied to clipboard

Can't use nested objects in bundle

Open yuschick opened this issue 4 years ago • 0 comments

I am on version 5.1.1 and trying to organise my localisation bundle like the example provided in the README.

page: {
  home: {
    actions: {
      subscribe: 'Subscribe',
    }
  }
}
localize('page.home.actions.subscribe')

However, this doesn't print the message. The example in the repo shows only two levels, foo: { bar: 'bar' } }, is that the limit to nesting? Or is there additional configuration that needs to be done that I am not seeing in the docs to suppot nested objects like this?

yuschick avatar Aug 18 '20 06:08 yuschick