Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
要为 JS 时间轴设置语言,必须在应用程序 scripts.js 的 createStoryJS 中添加这一行:
lang: "de"
您将如何将此设置自动设置为当前的 DNN 语言?
谢谢
一个快速的解决方案是有一些服务器端代码,比如
伪代码:
<script> var langPage = "@Thread.CurrentThread.CurrentCulture"; </script>
现在你的 JS 中有了语言,并且可以重用它。