Docusaurus 语言下拉显示问题

问题描述

我正在使用 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

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...