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

How is it possible to localize in labes of Polymer

Open mountin opened this issue 8 years ago • 3 comments

If we have some code like:

the _setupBrowseLabel(selectedSection) - is function witch return 1 word "browse"

How we can make it workable for localization {{localize('browse')}} The variant with [[localize(' {{ _setupBrowseLabel(selectedSection)}} ') ]] - NOT working! (

Very important thing!

Browsers Affected

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

mountin avatar Apr 25 '17 15:04 mountin

no any suggestions?

mountin avatar Apr 27 '17 10:04 mountin

Couldn't you call the localization within the function _setupBrowserLabel(selectedSection) itself?

  Polymer({
    _setupBrowserLabel: function(selectedSection) {
     var result = "browse";
     ...
     return this.localize(result);
};

NoLdman avatar May 08 '17 16:05 NoLdman

hmm.. i will try thanks

mountin avatar May 10 '17 10:05 mountin