Hi @calin! This is the right place for asking questions about editing and translating on MDN Web Docs. Welcome!
The problem in this case is that the first argument of EmbedLiveSample
needs to be the id
of the section heading of the code you want to embed. The editor automatically sets the heading id
to be the same as the heading text, with spaces replaced by underscores. Since the heading id
is “Un_exemplu_simplu”, that needs to be the first argument of the macro.
The second instance of EmbedLiveSample
on that page still works because the second example heading is not yet translated. That is, “A_styled_example” still matches the heading because the heading has not changed.
The Live samples article has all the details about using EmbedLiveSample
.