update: add component translation
Loading
-
Hi @matthieu ! Very cool to contribute to this tuto!
But I have few questions :
- I can make component works without constructor. Should I advise to set it in every component even it's not mandatory ?
- You mention a
setTranslationsPath
method but where it is ?
Thank you!!
-
I can make component works without constructor. Should I advise to set it in every component even it's not mandatory ?
No you don't have to. If people don't need to translate their component, they don't have to put it. If they do, they will add it when following this step.
You mention a
setTranslationsPath
method but where it is ?What do you mean? Where the function is defined? It's provided by SolidTemplateElement, so the only thing you have to do is use the function, nothing more
Please register or sign in to comment