Skip to content

Allow resource deep objects #26

@draco1989

Description

@draco1989

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

  • Chrome
  • Firefox
  • Safari 9
  • Safari 8
  • Safari 7
  • Edge
  • IE 11
  • IE 10

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions