Giter VIP home page Giter VIP logo

Comments (5)

ThomasCybulski avatar ThomasCybulski commented on August 22, 2024

Hi @Mika83AC
have you found a workaround or solution?

from app-localize-behavior.

Mika83AC avatar Mika83AC commented on August 22, 2024

Hey @ThomasCybulski,

yes, I solved it, but currently I'm not aware any more how. :)

Maybe it will help you to check my project where I use it. Repo: https://github.com/Mika83AC/MMC Working version: https://mmc.divelop.de

In component "mmc-list.html" I'm using the paper-dropdowns and they localize correctly. Language can be switched in menu "Einstellungen" (sites defaults so German as language).

Regards,
Michael

from app-localize-behavior.

toverboom avatar toverboom commented on August 22, 2024

Same issue mentioned in the issue below. It is still not solved. And the workaround does not seem to solve the actual issue.
PolymerElements/paper-dropdown-menu#212

from app-localize-behavior.

felixzapata avatar felixzapata commented on August 22, 2024

@notwaldorf any updates about this issue?

from app-localize-behavior.

KinasOrlon avatar KinasOrlon commented on August 22, 2024

Found a workaround, not very proud of it, but works nonetheless:

<paper-dropdown-menu label="[[ localize('my_label') ]]">
  <paper-listbox slot="dropdown-content" attr-for-selected="value" selected="{{ someValue }}">
    <template is="dom-repeat" items="{{ _getItems(localize) }}" as="item">
      <paper-item value="[[ item.id ]]">[[ item.label ]]</paper-item>
    </template>
  </paper-listbox>
</paper-dropdown-menu>

_getItems: localize => [{
  id: 'item1',
  label: localize('item1')
}, {
  id: 'item2',
  label: localize('item2')
}]

from app-localize-behavior.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.