Translating a project

I found this on the forum, I don’t know if this works cause I don’t know all the texts listed in the element types in code. But maybe can be a starting point of the translation method.