If you have a page that exists in both German and English alternative then they will have the same path.
如果您需要本地化路径,获取它们的最简单/最好的方法是什么?还有什么比在网络服务器级别解决这个问题更好的吗?
最佳答案
可以使用 _slug
字段 ( source ) 覆盖每个内容文件的 slug。
假设您在英文网站上有一个带有德文翻译的联系页面。您可能会有一个英文 contact/contents.lr
。只需将以下行添加到 contact/contents+de.lr
:
_slug: kontakt
关于python - Lektor 中的本地化/翻译路径,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40940937/