Skip to content

Commit

Permalink
docs: i18n label
Browse files Browse the repository at this point in the history
  • Loading branch information
oyuyue committed May 22, 2021
1 parent e2e27f0 commit d72ae80
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 10 deletions.
8 changes: 8 additions & 0 deletions website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ module.exports = {
i18n: {
defaultLocale: 'zh-CN',
locales: ['zh-CN', 'en'],
localeConfigs: {
en: {
label: 'English',
},
'zh-CN': {
label: '中文',
}
}
},
themeConfig: {
colorMode: {
Expand Down
4 changes: 2 additions & 2 deletions website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
"@docusaurus/core": "^2.0.0-beta.0",
"@docusaurus/preset-classic": "^2.0.0-beta.0",
"@mdx-js/react": "^1.6.21",
"@nplayer/danmaku": "1.0.4",
"@nplayer/danmaku": "1.0.5",
"clsx": "^1.1.1",
"hls.js": "^1.0.0",
"nplayer": "1.0.4",
"nplayer": "1.0.5",
"prism-react-renderer": "^1.2.0",
"react": "^17.0.1",
"react-dom": "^17.0.1",
Expand Down
16 changes: 8 additions & 8 deletions website/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1542,10 +1542,10 @@
"@nodelib/fs.scandir" "2.1.4"
fastq "^1.6.0"

"@nplayer/[email protected].4":
version "1.0.4"
resolved "https://registry.npmjs.org/@nplayer/danmaku/-/danmaku-1.0.4.tgz#f72e4d1a90b93c956de034a43cf6a2041dabd83a"
integrity sha512-Lqxghaj65zioYnpyY46ql0spIsgH1AXeMHd/rxUGzMLMQmqzK2MboyPXA/54sYEa4IQ5bXsXuL89rLEeV3YaRg==
"@nplayer/[email protected].5":
version "1.0.5"
resolved "https://registry.npmjs.org/@nplayer/danmaku/-/danmaku-1.0.5.tgz#68b8338285c387443f68e3f191043fda18af3a28"
integrity sha512-NeNVkjZCqTBfXxx6VR+0zW9D4C723/ZP0PrBTVDO2K3zbVm8eAAPA0HAkEUPArajV8GuSiRhiTGJLuzQzMzMpw==

"@polka/url@^1.0.0-next.9":
version "1.0.0-next.12"
Expand Down Expand Up @@ -6312,10 +6312,10 @@ normalize-url@^4.1.0, normalize-url@^4.5.0:
resolved "https://registry.npm.taobao.org/normalize-url/download/normalize-url-4.5.0.tgz?cache=0&sync_timestamp=1602432435724&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fnormalize-url%2Fdownload%2Fnormalize-url-4.5.0.tgz#453354087e6ca96957bd8f5baf753f5982142129"
integrity sha1-RTNUCH5sqWlXvY9br3U/WYIUISk=

[email protected].4:
version "1.0.4"
resolved "https://registry.npmjs.org/nplayer/-/nplayer-1.0.4.tgz#87aa13acc2beb650ec06ff861d4945fe12b746d2"
integrity sha512-vTDQtYz65Z3KgwToLL5v4XTjAFix2JU9lSFgprkSi9Pb+T6wS2Kmtr44gH4prW37weG47+DWuBrobgGYR17Vrw==
[email protected].5:
version "1.0.5"
resolved "https://registry.npmjs.org/nplayer/-/nplayer-1.0.5.tgz#e0ceef1750f2ec8af3be115d1a950f1bed11ec1a"
integrity sha512-C5hgfw19kzEoyadBa+b0vhuVV10vNl9abn1KNAvTyrrc1MNvEaSpH6RzCxP8ResHjf31bWZzqc9Qm3fr1incUQ==

npm-run-path@^2.0.0:
version "2.0.2"
Expand Down

0 comments on commit d72ae80

Please sign in to comment.