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
Description
The
app-localize-behaviorshould allow to read deep JSON translation resources.Expected outcome
Function
.localize('my.deep.translation.greeting')should output a stringActual outcome
The translation is not found.
Live Demo
Example: https://jsbin.com/nehajuconu/1/edit?html,output
Steps to reproduce
{'en': {'my': {'greeting': 'hello_deep'}}}{{localize('my.greeting')}}hello_deepBrowsers Affected