问题描述
我的内容存储在content
下的文件夹中,例如en
和fr
。
在使用内容模块加载内容时,如何访问当前语言?像这样但没有en
硬编码的东西吗?
async asyncData({ $content,params }) {
const article = await $content(
'en/' + params.category,params.slug
).fetch();
return { article };
},
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)