ebidel / i18n-msg

Polymer element for i18n string replacement
https://ebidel.github.io/i18n-msg/
63 stars 21 forks source link

Use element content as msgid #12

Closed trading-peter closed 9 years ago

trading-peter commented 9 years ago

What are your thoughts on this? Wouldn't it be more convenient to use the inner content of the element and get rid of the msgid attribute / make the msgid optional.

ebidel commented 9 years ago

Currently, you can use textContent as a fallback case. If the language file doesn't exist or if the element is not upgraded. Removing msgid also means we wouldn't be able to lookup the message programmatically (without touching the DOM, etc).