app-localize-behavior
app-localize-behavior copied to clipboard
How is it possible to localize in labes of Polymer
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
no any suggestions?
Couldn't you call the localization within the function _setupBrowserLabel(selectedSection) itself?
Polymer({
_setupBrowserLabel: function(selectedSection) {
var result = "browse";
...
return this.localize(result);
};
hmm.. i will try thanks