PolymerElements / app-localize-behavior

Polymer behaviour to help internationalize your application
48 stars 55 forks source link

Sub object in json sections #96

Open mountin opened 7 years ago

mountin commented 7 years ago

Description

Is it possible to have sub object in JSON file translations

Expected "en": {

"search": {
  "search_here": "Search here Eng"
}}

Than use localization like {{localize('search.search_here')}}

Instead of regular {{localize('search_here')}}

??

Thanks

mountin commented 7 years ago

no any thinks ?

sangron commented 7 years ago

Why don't just name the key as you need it in the app? like: "en": { "search.search_here" : "Search here Eng", "search.results" : "Search Results" }

zlamma commented 7 years ago

Duplicate of #26