app-localize-behavior
app-localize-behavior copied to clipboard
Allow resource deep objects
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
- Create a component with Polymer.AppLocalizeBehavior
- Supply a translation resource like
{'en': {'my': {'greeting': 'hello_deep'}}}
- Try to translate
{{localize('my.greeting')}}
- 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
+1 this is required for any complex translation object
+1 would be really greate to have this feature