Quickly internationalize your lit-elements using simple word replacement dictionaries.
Fill in the dictionnary object with a lookup for each language to be supported. Use the default
key as the primary/fallback language. The HTML tag's lang attribute will be used to choose the best dictionnary automatically.
Use the this.i18n
object to access the chosen dictionary's content. Use it in the HTML template and anywhere in your code where you need to get an internationalized word.
This is a quick and dirty hack and isn't necessarily the most optimized option out there. If you're just looking for a quick way to internationalize a small amount of words, Lit-Element i18n could work for you.
But if you're looking for something more robust and efficient, you may need something else. In fact, lit itself is working on its own internationalization tools.