docs: init i18n

This commit is contained in:
DIYgod
2018-08-13 01:47:16 +08:00
parent 1378073903
commit 1e9e71bcde
5 changed files with 2381 additions and 27 deletions

View File

@@ -1,37 +1,85 @@
module.exports = {
title: 'RSSHub',
description: '🍰 万物皆可 RSS',
ga: 'UA-48084758-10',
serviceWorker: true,
locales: {
'/': {
lang: 'zh-CN',
title: 'RSSHub',
description: '🍰 万物皆可 RSS',
},
'/en/': {
lang: 'en-US',
title: 'RSSHub',
description: '🍰 万物皆可 RSS',
},
},
themeConfig: {
repo: 'DIYgod/RSSHub',
editLinks: true,
editLinkText: '在 GitHub 上编辑此页',
lastUpdated: '上次更新',
serviceWorker: {
updatePopup: {
message: '发现新内容可用',
buttonText: '刷新',
docsDir: 'docs',
locales: {
'/': {
lang: 'zh-CN',
selectText: '选择语言',
label: '简体中文',
editLinkText: '在 GitHub 上编辑此页',
lastUpdated: '上次更新',
serviceWorker: {
updatePopup: {
message: '发现新内容可用',
buttonText: '刷新',
},
},
nav: [
{
text: '使用',
link: '/',
},
{
text: '参与我们',
link: '/joinus/',
},
{
text: '部署',
link: '/install/',
},
{
text: '支持 RSSHub',
link: '/support/',
},
],
},
'/en/': {
lang: 'en-US',
selectText: 'Languages',
label: 'English',
editLinkText: 'Edit this page on GitHub',
lastUpdated: 'Last Updated',
serviceWorker: {
updatePopup: {
message: 'New content is available',
buttonText: 'Refresh',
},
},
nav: [
{
text: 'Use',
link: '/en/',
},
{
text: 'Join us',
link: '/en/joinus/',
},
{
text: 'Deploy',
link: '/en/install/',
},
{
text: 'Support RSSHub',
link: '/en/support/',
},
],
},
},
docsDir: 'docs',
nav: [
{
text: '使用',
link: '/',
},
{
text: '参与我们',
link: '/joinus/',
},
{
text: '部署',
link: '/install/',
},
{
text: '支持 RSSHub',
link: '/support/',
},
],
},
};