EmbedLiveSample Not work in the translated doc

I wonder how does the live sample works?
As the same page, it shows well in en-US doc, but just blank board in zh-CN doc. I’ve tried to recopy the code {{EmbedLiveSample('Example', 'auto', 300)}}, but nothing changed here.
How can I locate the real problem? Thank you.

The first parameter (“Example”, in this case) needs to be equal to the id of the heading element that the example code sits under — that’s how it finds the code blocks to render to make the live example.

In the translation, the heading and id will be translated, so you need to change the parameter to equal the translated id.

2 Likes

Thanks!
I changed the id to Examples, the hash id of this heading showed in URL.
Work well!

Cool, glad you got it working :wink:

2 Likes