You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by GitBox <gi...@apache.org> on 2019/06/03 10:41:01 UTC

[GitHub] [incubator-echarts] sxmpasch commented on issue #10599: examples and english language in documentation is not working

sxmpasch commented on issue #10599: examples and english language in documentation is not working
URL: https://github.com/apache/incubator-echarts/issues/10599#issuecomment-498206010
 
 
   @cuijian-dexter: Take a look at e.g.
   https://echarts.apache.org/en/tutorial.html#Rich%20Text
   There, you can see in the Chrome console: "Uncaught TypeError: Cannot read property 'editDemo' of undefined" (view.js)
   It seems, in view.js, there is a variable called "lang" containing the language-specific button texts (e.g. lang.en.editDemo). The code in view.js tries to access "lang.editDemo" without language selection.
   You could use e.g. 
   var langInfo = { ... }; 
   var lang=langInfo[currentLanguage];
   ...

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@echarts.apache.org
For additional commands, e-mail: dev-help@echarts.apache.org