Skip to content

Commit 3fcfc14

Browse files
committed
config + links
1 parent f3ff05d commit 3fcfc14

24 files changed

+93
-84
lines changed

.vitepress/config.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,14 @@ import locales from "./locales"
66
export default {
77
srcDir: 'src',
88
locales: locales.vitepressConfig,
9-
9+
1010

1111
themeConfig: {
1212
localeLinks: {
1313
items: [
1414
{text: 'English', link: '/'},
15-
{text: '中文简体 (未完成)', link: '/zh/'}
15+
{text: '中文简体 (未完成)', link: '/zh/'},
16+
{text: '日本語(未完成)', link: '/ja/'},
1617
]
1718
},
1819
locales: locales.themeConfig

.vitepress/locales/index.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
import en from './en'
22
import zh from './zh'
3+
import ja from './ja'
34

45
export default {
56
vitepressConfig: {
67
'/': en.vitepressConfig,
7-
'/zh/': zh.vitepressConfig
8+
'/zh/': zh.vitepressConfig,
9+
'/ja/': ja.vitepressConfig,
810
},
911
themeConfig: {
1012
'/': en.themeConfig,
11-
'/zh/': zh.themeConfig
13+
'/zh/': zh.themeConfig,
14+
'/ja/': ja.themeConfig,
1215
}
13-
}
16+
}

.vitepress/locales/ja.js

Lines changed: 44 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,29 @@
11
export default {
22
vitepressConfig: {
3-
title: 'Vue 3 Migration Guide',
4-
description: 'Guide on migrating from Vue 2 to Vue 3',
5-
lang: 'en-US'
3+
title: 'Vue 3 移行ガイド',
4+
description: 'Vue 2 から Vue 3 への移行に関するガイド',
5+
lang: 'ja-JP',
66
},
77
themeConfig: {
8+
docFooter: {
9+
prev: '前のページ',
10+
next: '次のページ',
11+
},
12+
outlineTitle: 'ページの内容',
813
nav: [
9-
{ text: 'Vue 3 Docs', link: 'https://vuejs.org' },
14+
{ text: 'Vue 3 ドキュメント', link: 'https://ja.vuejs.org' },
1015
],
1116

1217
sidebar: [
1318
{
1419
text: 'Guide',
1520
items: [
16-
{ text: 'Overview', link: '/' },
17-
{ text: 'New Recommendations', link: '/recommendations' },
18-
{ text: 'Migration Build', link: '/migration-build' },
21+
{ text: 'Overview', link: '/ja/' },
22+
{ text: 'New Recommendations', link: '/ja/recommendations' },
23+
{ text: 'Migration Build', link: '/ja/migration-build' },
1924
{
2025
text: 'Breaking Changes',
21-
link: '/breaking-changes/'
26+
link: '/ja/breaking-changes/'
2227
}
2328
]
2429
},
@@ -27,30 +32,30 @@ export default {
2732
items: [
2833
{
2934
text: 'Global API Application Instance',
30-
link: '/breaking-changes/global-api'
35+
link: '/ja/breaking-changes/global-api'
3136
},
3237
{
3338
text: 'Global API Treeshaking',
34-
link: '/breaking-changes/global-api-treeshaking'
39+
link: '/ja/breaking-changes/global-api-treeshaking'
3540
}
3641
]
3742
},
3843
{
3944
text: 'Template Directives',
4045
items: [
41-
{ text: 'v-model', link: '/breaking-changes/v-model' },
46+
{ text: 'v-model', link: '/ja/breaking-changes/v-model' },
4247
{
4348
text: 'key Usage Change',
44-
link: '/breaking-changes/key-attribute'
49+
link: '/ja/breaking-changes/key-attribute'
4550
},
4651
{
4752
text: 'v-if vs. v-for Precedence',
48-
link: '/breaking-changes/v-if-v-for'
53+
link: '/ja/breaking-changes/v-if-v-for'
4954
},
50-
{ text: 'v-bind Merge Behavior', link: '/breaking-changes/v-bind' },
55+
{ text: 'v-bind Merge Behavior', link: '/ja/breaking-changes/v-bind' },
5156
{
5257
text: 'v-on.native modifier removed',
53-
link: '/breaking-changes/v-on-native-modifier-removed'
58+
link: '/ja/breaking-changes/v-on-native-modifier-removed'
5459
}
5560
]
5661
},
@@ -59,33 +64,33 @@ export default {
5964
items: [
6065
{
6166
text: 'Functional Components',
62-
link: '/breaking-changes/functional-components'
67+
link: '/ja/breaking-changes/functional-components'
6368
},
6469
{
6570
text: 'Async Components',
66-
link: '/breaking-changes/async-components'
71+
link: '/ja/breaking-changes/async-components'
6772
},
68-
{ text: 'emits Option', link: '/breaking-changes/emits-option' }
73+
{ text: 'emits Option', link: '/ja/breaking-changes/emits-option' }
6974
]
7075
},
7176
{
7277
text: 'Render Function',
7378
items: [
7479
{
7580
text: 'Render Function API',
76-
link: '/breaking-changes/render-function-api'
81+
link: '/ja/breaking-changes/render-function-api'
7782
},
7883
{
7984
text: 'Slots Unification',
80-
link: '/breaking-changes/slots-unification'
85+
link: '/ja/breaking-changes/slots-unification'
8186
},
8287
{
8388
text: '$listeners merged into $attrs',
84-
link: '/breaking-changes/listeners-removed'
89+
link: '/ja/breaking-changes/listeners-removed'
8590
},
8691
{
8792
text: '$attrs includes class & style',
88-
link: '/breaking-changes/attrs-includes-class-style'
93+
link: '/ja/breaking-changes/attrs-includes-class-style'
8994
}
9095
]
9196
},
@@ -94,7 +99,7 @@ export default {
9499
items: [
95100
{
96101
text: 'Custom Elements Interop Changes',
97-
link: '/breaking-changes/custom-elements-interop'
102+
link: '/ja/breaking-changes/custom-elements-interop'
98103
}
99104
]
100105
},
@@ -103,55 +108,55 @@ export default {
103108
items: [
104109
{
105110
text: 'v-on keyCode Modifiers',
106-
link: '/breaking-changes/keycode-modifiers'
111+
link: '/ja/breaking-changes/keycode-modifiers'
107112
},
108-
{ text: 'Events API', link: '/breaking-changes/events-api' },
109-
{ text: 'Filters', link: '/breaking-changes/filters' },
113+
{ text: 'Events API', link: '/ja/breaking-changes/events-api' },
114+
{ text: 'Filters', link: '/ja/breaking-changes/filters' },
110115
{
111116
text: 'inline-template',
112-
link: '/breaking-changes/inline-template-attribute'
117+
link: '/ja/breaking-changes/inline-template-attribute'
113118
},
114-
{ text: '$children', link: '/breaking-changes/children' },
115-
{ text: 'propsData option', link: '/breaking-changes/props-data' }
119+
{ text: '$children', link: '/ja/breaking-changes/children' },
120+
{ text: 'propsData option', link: '/ja/breaking-changes/props-data' }
116121
]
117122
},
118123
{
119124
text: 'Other Minor Changes',
120125
items: [
121126
{
122127
text: 'Attribute Coercion Behavior',
123-
link: '/breaking-changes/attribute-coercion'
128+
link: '/ja/breaking-changes/attribute-coercion'
124129
},
125130
{
126131
text: 'Custom Directives',
127-
link: '/breaking-changes/custom-directives'
132+
link: '/ja/breaking-changes/custom-directives'
128133
},
129-
{ text: 'Data Option', link: '/breaking-changes/data-option' },
134+
{ text: 'Data Option', link: '/ja/breaking-changes/data-option' },
130135
{
131136
text: 'Mount API changes',
132-
link: '/breaking-changes/mount-changes'
137+
link: '/ja/breaking-changes/mount-changes'
133138
},
134139
{
135140
text: 'Props Default Function this Access',
136-
link: '/breaking-changes/props-default-this'
141+
link: '/ja/breaking-changes/props-default-this'
137142
},
138143
{
139144
text: 'Transition Class Change',
140-
link: '/breaking-changes/transition'
145+
link: '/ja/breaking-changes/transition'
141146
},
142147
{
143148
text: 'Transition as Root',
144-
link: '/breaking-changes/transition-as-root'
149+
link: '/ja/breaking-changes/transition-as-root'
145150
},
146151
{
147152
text: 'Transition Group Root Element',
148-
link: '/breaking-changes/transition-group'
153+
link: '/ja/breaking-changes/transition-group'
149154
},
150155
{
151156
text: 'VNode lifecycle events',
152-
link: '/breaking-changes/vnode-lifecycle-events'
157+
link: '/ja/breaking-changes/vnode-lifecycle-events'
153158
},
154-
{ text: 'Watch on Arrays', link: '/breaking-changes/watch' }
159+
{ text: 'Watch on Arrays', link: '/ja/breaking-changes/watch' }
155160
]
156161
}
157162
]

src/ja/breaking-changes/async-components.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,5 +94,5 @@ const asyncComponent = defineAsyncComponent(
9494

9595
For more information on the usage of async components, see:
9696

97-
- [Guide: Async Components](https://vuejs.org/guide/components/async.html)
97+
- [Guide: Async Components](https://ja.vuejs.org/guide/components/async.html)
9898
- [Migration build flag: `COMPONENT_ASYNC`](../migration-build.html#compat-configuration)

src/ja/breaking-changes/children.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export default {
3737

3838
## 3.x Update
3939

40-
In 3.x, the `$children` property is removed and no longer supported. Instead, if you need to access a child component instance, we recommend using [template refs](https://vuejs.org/guide/essentials/template-refs.html#template-refs).
40+
In 3.x, the `$children` property is removed and no longer supported. Instead, if you need to access a child component instance, we recommend using [template refs](https://ja.vuejs.org/guide/essentials/template-refs.html#template-refs).
4141

4242
## Migration Strategy
4343

src/ja/breaking-changes/custom-elements-interop.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,4 +131,4 @@ With the behavior change of `is`, a `vue:` prefix is now required to resolve the
131131

132132
## See Also
133133

134-
- [Guide - Vue and Web Components](https://vuejs.org/guide/extras/web-components.html)
134+
- [Guide - Vue and Web Components](https://ja.vuejs.org/guide/extras/web-components.html)

src/ja/breaking-changes/emits-option.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Similar to props, the events that the component emits can now be defined with th
4949

5050
The option also accepts an object, which allows the developer to define validators for the arguments that are passed with the emitted event, similar to validators in `props` definitions.
5151

52-
For more information on this, please read the [API documentation for this feature](https://vuejs.org/api/options-state.html#emits).
52+
For more information on this, please read the [API documentation for this feature](https://ja.vuejs.org/api/options-state.html#emits).
5353

5454
## Migration Strategy
5555

src/ja/breaking-changes/events-api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,4 +101,4 @@ In most circumstances, using a global event bus for communicating between compon
101101
* Provide / inject allow a component to communicate with its slot contents. This is useful for tightly-coupled components that are always used together.
102102
* Provide / inject can also be used for long-distance communication between components. It can help to avoid 'prop drilling', where props need to be passed down through many levels of components that don't need those props themselves.
103103
* Prop drilling can also be avoided by refactoring to use slots. If an interim component doesn't need the props then it might indicate a problem with separation of concerns. Introducing a slot in that component allows the parent to create the content directly, so that props can be passed without the interim component needing to get involved.
104-
* [Global state management](https://vuejs.org/guide/scaling-up/state-management.html), such as [Pinia](https://pinia.vuejs.org/).
104+
* [Global state management](https://ja.vuejs.org/guide/scaling-up/state-management.html), such as [Pinia](https://pinia.vuejs.org/).

src/ja/breaking-changes/filters.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ Instead of using filters, we recommend replacing them with computed properties o
8282

8383
If you are using filters that were globally registered and then used throughout your app, it's likely not convenient to replace them with computed properties or methods in each individual component.
8484

85-
Instead, you can make your global filters available to all components through [globalProperties](https://vuejs.org/api/application.html#app-config-globalproperties):
85+
Instead, you can make your global filters available to all components through [globalProperties](https://ja.vuejs.org/api/application.html#app-config-globalproperties):
8686

8787
```js
8888
// main.js

src/ja/breaking-changes/functional-components.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,5 +116,5 @@ The main differences are that:
116116
For more information on the usage of the new functional components and the changes to render functions in general, see:
117117

118118
- [Migration: Render Functions](./render-function-api.html)
119-
- [Guide: Render Functions](https://vuejs.org/guide/extras/render-function.html#render-functions-jsx)
119+
- [Guide: Render Functions](https://ja.vuejs.org/guide/extras/render-function.html#render-functions-jsx)
120120
- [Migration build flag: `COMPONENT_FUNCTIONAL`](../migration-build.html#compat-configuration)

0 commit comments

Comments
 (0)