问题描述
我正在使用 Docusaurus i18n 集成将语言下拉列表添加到站点,但它显示 weired enter image description here
我该如何处理这个问题
解决方法
你能详细说明一下吗?
此 video 是有关如何翻译 Docusaurus 网站并将其部署到 Netlify 的详细教程。该视频向您展示了所有步骤,包括如何添加语言下拉菜单。
简而言之,您应该能够通过简单地在 [libmp3lame @ 000002453725f3c0] Queue input is backward in time.9x
... lots of these [mp3 @ ..] messages
[mp3 @ 0000024537344400] Application provided invalid,non monotonically increasing dts to muxer in stream 0: 2449071 >= 2445999
[mp3 @ 0000024537344400] Application provided invalid,non monotonically increasing dts to muxer in stream 0: 2449071 >= 2447151
[mp3 @ 0000024537344400] Application provided invalid,non monotonically increasing dts to muxer in stream 0: 2449071 >= 2448303
[flac @ 00000245372d4140] invalid residual315.7kbits/s speed=59.7x
[flac @ 00000245372d4140] decode_frame() failed
Error while decoding stream #1:0: Invalid data found when processing input
size= 24871kB time=00:10:37.09 bitrate= 319.8kbits/s speed=60.5x
video:0kB audio:24869kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.004673%
中添加以下代码来向您的网站添加语言下拉列表here
docusaurus.config.js
最后,您可以通过在 module.exports = {
....
....
i18n: {
defaultLocale: 'en',locales: ['en','fr'],localeConfigs: {
en: {
label: 'English',},fr: {
label: 'Français',};
中添加以下代码来添加语言下拉列表:
docusaurus.config.js