app-localize-behavior icon indicating copy to clipboard operation
app-localize-behavior copied to clipboard

Allow resource deep objects

Open draco1989 opened this issue 8 years ago • 2 comments

Description

The app-localize-behavior should allow to read deep JSON translation resources.

Expected outcome

Function .localize('my.deep.translation.greeting') should output a string

Actual outcome

The translation is not found.

Live Demo

Example: https://jsbin.com/nehajuconu/1/edit?html,output

Steps to reproduce

  1. Create a component with Polymer.AppLocalizeBehavior
  2. Supply a translation resource like {'en': {'my': {'greeting': 'hello_deep'}}}
  3. Try to translate {{localize('my.greeting')}}
  4. Should output hello_deep

Browsers Affected

  • [x] Chrome
  • [x] Firefox
  • [x] Safari 9
  • [x] Safari 8
  • [x] Safari 7
  • [x] Edge
  • [x] IE 11
  • [x] IE 10

draco1989 avatar Jul 05 '16 10:07 draco1989

+1 this is required for any complex translation object

garcianavalon avatar Feb 17 '17 23:02 garcianavalon

+1 would be really greate to have this feature

galanovnick avatar Apr 19 '17 11:04 galanovnick