Skip to content

Commit 2faeb7e

Browse files
committed
settings: ja locale config
1 parent 245f06d commit 2faeb7e

File tree

7 files changed

+223
-13
lines changed

7 files changed

+223
-13
lines changed

src/.vuepress/config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ module.exports = {
1212
postcss: require('./config/postcss'),
1313
locales: {
1414
'/': require('./config/languages/en/localeConfig'),
15-
'/pt/': require('./config/languages/pt/localeConfig')
15+
'/pt/': require('./config/languages/pt/localeConfig'),
16+
'/jp/': require('./config/languages/jp/localeConfig')
1617
},
1718
themeConfig: require('./config/themeConfig'),
1819
markdown: {

src/.vuepress/config/languages/jp/blog.js

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,42 @@
1-
const posts = {}
1+
const posts = {
2+
id: 'post',
3+
title: 'すべての投稿',
4+
layout: 'Posts',
5+
itemLayout: 'Post',
6+
dirname: 'jp/posts',
7+
path: '/jp/posts/',
8+
itemPermalink: '/posts/:slug',
9+
frontmatter: {
10+
meta: [
11+
{
12+
name: 'description',
13+
content: 'Vue.js 開発を中心としたアクセシビリティに関するコミュニティの投稿'
14+
}
15+
]
16+
},
17+
pagination: {
18+
layout: 'Posts',
19+
prevText: '<<',
20+
nextText: '>>',
21+
getPaginationPageTitle (pageNumber) {
22+
return `すべての投稿 - ${pageNumber}ページ目`
23+
}
24+
}
25+
}
226

3-
const categories = {}
27+
const categories = {
28+
id: 'categories',
29+
keys: ['category', 'categories'],
30+
title: 'カテゴリ',
31+
scopeLayout: 'Posts',
32+
path: '/jp/category/',
33+
pagination: {
34+
layout: 'Posts',
35+
getPaginationPageTitle (pageNumber, key) {
36+
return `カテゴリ: ${key} - ${pageNumber}ページ目`
37+
}
38+
}
39+
}
440

541
module.exports = {
642
posts,
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module.exports = {
22
lang: 'ja',
33
title: 'Vue A11y',
4-
description: ''
4+
description: 'Web アクセシビリティ向上のための Vue.js コミュニティの取り組み'
55
}
Lines changed: 94 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,96 @@
11
module.exports = {
2-
project: [],
3-
posts: [],
4-
recipes: []
2+
project: [
3+
{
4+
title: 'プロジェクト',
5+
children: [
6+
['はじめに', ''],
7+
['ロードマップ', 'https://github.com/vue-a11y/vue-a11y.com/projects/2'],
8+
['参加者', 'people'],
9+
['コントリビュート', 'how-to-contribute'],
10+
]
11+
},
12+
{
13+
title: 'アクセシビリティ',
14+
children: [
15+
['リソース', 'resources'],
16+
['Vue A11Y チェックリスト', 'vue-a11y-checklist'],
17+
]
18+
},
19+
{
20+
title: 'コミュニティ',
21+
children: [
22+
['パッケージ', 'https://github.com/vue-a11y/awesome-a11y-vue#components-and-plugins'],
23+
['UI プロジェクト', 'https://github.com/vue-a11y/awesome-a11y-vue#accessible-libraries'],
24+
['Awesome', 'https://github.com/vue-a11y/awesome-a11y-vue']
25+
]
26+
}
27+
],
28+
29+
posts: [
30+
{
31+
title: 'カテゴリ',
32+
type: 'manual',
33+
children: [
34+
['ニュース', '/jp/category/news/'],
35+
['HTML', '/jp/category/html/'],
36+
['ARIA', '/jp/category/aria/'],
37+
['WCAG', '/jp/category/wcag/'],
38+
['ツール', '/jp/category/tools/'],
39+
['パッケージ', '/jp/category/packages/'],
40+
['Single Page App', '/jp/category/spa/']
41+
]
42+
},
43+
// SOON
44+
// {
45+
// title: '24 Vue A11y',
46+
// type: 'manual',
47+
// children: [
48+
// ['2020', '/category/24-vue-a11y-2020/']
49+
// ]
50+
// },
51+
{
52+
title: 'Twitter でフォローする',
53+
children: [
54+
['Sarah Drasner', 'https://twitter.com/sarah_edo'],
55+
['Maria Lamardo', 'https://twitter.com/MariaLamardo'],
56+
['Alan Ktquez', 'https://twitter.com/ktquez'],
57+
['Jinjiang', 'https://twitter.com/zhaojinjiang'],
58+
['Marcus Herrmann', 'https://twitter.com/_marcusherrmann'],
59+
['Austin Gil', 'https://twitter.com/Stegosource'],
60+
['Callum Macrae', 'https://twitter.com/callumacrae'],
61+
['Kevin Deisz', 'https://twitter.com/kddeisz'],
62+
['Victoria Bergquist', 'https://twitter.com/vicbergquist']
63+
]
64+
}
65+
],
66+
67+
recipes: [
68+
{
69+
title: 'レシピ',
70+
children: [
71+
['はじめに', '']
72+
]
73+
},
74+
{
75+
title: 'ウィジェット',
76+
children: [
77+
['アコーディオン', 'widgets/accordion'],
78+
['アラート', 'widgets/alert'],
79+
['パンくず', 'widgets/breadcrumbs'],
80+
['カード', 'widgets/card'],
81+
['カルーセル', 'widgets/carousel'],
82+
['ダイアログ', 'widgets/dialog'],
83+
['モバイルナビゲーション', 'widgets/mobile-navigation'],
84+
['スキップリンク', 'widgets/skip-links'],
85+
['タブ', 'widgets/tabs'],
86+
['トースト', 'widgets/toast']
87+
]
88+
},
89+
{
90+
title: 'ヒント',
91+
children: [
92+
['Vue における ARIA 属性', 'tips/aria-attributes-in-vue']
93+
]
94+
}
95+
]
596
}
Lines changed: 80 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,83 @@
1+
const sidebar = require('./sidebarStructure')
2+
13
module.exports = {
2-
enabled: false,
4+
enabled: true,
35
label: '日本語',
4-
nav: []
6+
editLinkText: 'GitHub で編集する',
7+
lastUpdatedText: '最終更新',
8+
backToTopText: 'ページトップに戻る',
9+
backToText: '戻る',
10+
shareLinksText: 'シェア',
11+
externalLinkText: '新しいタブで開く',
12+
skipTo: {
13+
label: 'コンテンツにスキップする',
14+
to: '#main'
15+
},
16+
newsletter: {
17+
title: 'ニュースレターを購読する',
18+
label: 'Eメールアドレス',
19+
description: 'メールアドレスを入力すると、記事、ビデオ、アップデート、イベントの情報を Vue.js アクセシビリティコミュニティから受け取ることができます。',
20+
textButton: '購読する'
21+
},
22+
toc: {
23+
title: '目次'
24+
},
25+
nav: [
26+
{
27+
text: 'プロジェクト',
28+
link: '/jp/project/'
29+
},
30+
{
31+
text: '投稿',
32+
link: '/jp/posts/'
33+
},
34+
{
35+
text: 'レシピ',
36+
link: '/jp/recipes/'
37+
},
38+
{
39+
text: '設定',
40+
link: '/jp/settings/'
41+
}
42+
],
43+
sidebar: {
44+
'/jp/project/': sidebar.project,
45+
'/jp/posts/': sidebar.posts,
46+
'/jp/category/': '/jp/posts/',
47+
'/jp/recipes/': sidebar.recipes
48+
},
49+
a11y: {
50+
codeSnippet: {
51+
copy: {
52+
text: 'クリップボードにコピーしました',
53+
ariaLabel: 'コードスニペットをクリップボードにコピー',
54+
textCopied: 'コードをコピーしました!'
55+
},
56+
skip: {
57+
text: 'スキップ',
58+
ariaLabel: 'スニペットコードをスキップ'
59+
}
60+
},
61+
labels: {
62+
menuButton: {
63+
open: 'サブナビゲーションを開く',
64+
close: 'サブナビゲーションを閉じる'
65+
}
66+
},
67+
settings: {
68+
theme: {
69+
altText: 'ブラウザテーマのイラスト'
70+
}
71+
},
72+
landmarks: {
73+
nav: {
74+
main: 'メインナビゲーション',
75+
secondary: 'サブナビゲーション'
76+
},
77+
post: {
78+
summary: 'Summary',
79+
content: 'Content post'
80+
}
81+
}
82+
}
583
}

src/.vuepress/config/plugins.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ const resolve = pathName => path.join(__dirname, pathName)
33

44
const blogConfig = {
55
en: require('./languages/en/blog'),
6-
pt: require('./languages/pt/blog')
6+
pt: require('./languages/pt/blog'),
7+
jp: require('./languages/jp/blog'),
78
}
89

910
const customBlock = {
@@ -45,11 +46,13 @@ module.exports = [
4546
},
4647
directories: [
4748
blogConfig.en.posts,
48-
blogConfig.pt.posts
49+
blogConfig.pt.posts,
50+
blogConfig.jp.posts
4951
],
5052
frontmatters: [
5153
blogConfig.en.categories,
52-
blogConfig.pt.categories
54+
blogConfig.pt.categories,
55+
blogConfig.jp.categories
5356
]
5457
}
5558
],

src/.vuepress/config/themeConfig.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ module.exports = {
4848
authors: require('./authors'),
4949
locales: {
5050
'/': require('./languages/en/themeLocaleConfig'),
51-
'/pt/': require('./languages/pt/themeLocaleConfig')
51+
'/pt/': require('./languages/pt/themeLocaleConfig'),
52+
'/jp/': require('./languages/jp/themeLocaleConfig'),
5253
}
5354
}

0 commit comments

Comments
 (0)