Add multilingual support (#60)
* update config js * update docusaurus ver and add placeholder for jpn translation files * update locales to en, ja * commit yarn.lock Co-authored-by: Fuhui Fang <fufang@microsoft.com>
This commit is contained in:
Родитель
0d107f37f0
Коммит
4f025cfe10
|
@ -1,6 +1,10 @@
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
i18n: {
|
||||||
|
defaultLocale: 'en',
|
||||||
|
locales: ['en', 'ja'],
|
||||||
|
},
|
||||||
title: 'Azure Machine Learning',
|
title: 'Azure Machine Learning',
|
||||||
tagline: 'Open source cheat sheets for Azure ML',
|
tagline: 'Open source cheat sheets for Azure ML',
|
||||||
url: 'https://github.com/Azure/',
|
url: 'https://github.com/Azure/',
|
||||||
|
@ -18,6 +22,10 @@ module.exports = {
|
||||||
},
|
},
|
||||||
items: [
|
items: [
|
||||||
{to: '/docs/cheatsheets/python/v1/cheatsheet', label: 'Python SDK', position: 'left'},
|
{to: '/docs/cheatsheets/python/v1/cheatsheet', label: 'Python SDK', position: 'left'},
|
||||||
|
{
|
||||||
|
type: 'localeDropdown',
|
||||||
|
position: 'left',
|
||||||
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
footer: {
|
footer: {
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
This is a placeholder for translation files in Japanese. Please follow instructions: https://docusaurus.io/docs/i18n/tutorial
|
|
@ -11,8 +11,8 @@
|
||||||
"serve": "docusaurus serve"
|
"serve": "docusaurus serve"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@docusaurus/core": "2.0.0-alpha.65",
|
"@docusaurus/core": "2.0.0-alpha.73",
|
||||||
"@docusaurus/preset-classic": "2.0.0-alpha.65",
|
"@docusaurus/preset-classic": "2.0.0-alpha.73",
|
||||||
"@mdx-js/react": "^1.5.8",
|
"@mdx-js/react": "^1.5.8",
|
||||||
"clsx": "^1.1.1",
|
"clsx": "^1.1.1",
|
||||||
"react": "^16.8.4",
|
"react": "^16.8.4",
|
||||||
|
|
4567
website/yarn.lock
4567
website/yarn.lock
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
Загрузка…
Ссылка в новой задаче