Closed marcocastignoli closed 8 years ago
I'm not sure I understand your question. As far as I know, there's no such thing as a lang
element - can you link to some sort of documentation describing it?
I just created it, my question is, how to implement it in the right way?
It's not valid HTML to create arbitrary elements. There's not currently a right/standard way to implement custom elements.
Either way, that question isn't related to polyglot, so I'm going to close this if that's alright.
I thank you for your suggestion, but my question was about polyglot. How to implement it in html5? that was my idea, do you have examples? Maybe better to put one in the readme
@marcocastignoli "implement it in html5" doesn't make sense. can you elaborate on what you're trying to do? Whether you use "html5" or not is utterly irrelevant to using polyglot (or any other functional lib).
Is there an example for html5 code?
This is my implementation (it works!), is it correct?
file: translations/it.json
file: index.html