提交 bb913d83 编写于 作者: F Ford Hurley 提交者: Mr.doob

Strip localization code from docs `[path]` template variable

上级 ba2a3ca4
......@@ -35,6 +35,10 @@ function onDocumentLoad( event ) {
case 'api':
path = /\/api\/[A-z0-9\/]+/.exec( pathname ).toString().substr( 5 );
// Remove localized part of the path (e.g. 'en/' or 'es-MX/'):
path = path.replace( /^[A-z0-9-]+\//, '' );
break;
case 'examples':
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册