Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How is it possible to localize in labes of Polymer #90

Open
8 tasks done
mountin opened this issue Apr 25, 2017 · 3 comments
Open
8 tasks done

How is it possible to localize in labes of Polymer #90

mountin opened this issue Apr 25, 2017 · 3 comments

Comments

@mountin
Copy link

mountin commented Apr 25, 2017

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

  • Chrome
  • Firefox
  • Safari 9
  • Safari 8
  • Safari 7
  • Edge
  • IE 11
  • IE 10
@mountin
Copy link
Author

mountin commented Apr 27, 2017

no any suggestions?

@NoLdman
Copy link

NoLdman commented May 8, 2017

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

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

@mountin
Copy link
Author

mountin commented May 10, 2017

hmm.. i will try thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants