Skip to content

Commit d283ef0

Browse files
authored
Japanese translation (Other Minor Changes section 2) (#49)
1 parent 66b7202 commit d283ef0

File tree

7 files changed

+77
-77
lines changed

7 files changed

+77
-77
lines changed

.vitepress/locales/ja.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -141,22 +141,22 @@ export default {
141141
link: '/ja/breaking-changes/props-default-this'
142142
},
143143
{
144-
text: 'Transition Class Change',
144+
text: 'トランジションクラスの変更',
145145
link: '/ja/breaking-changes/transition'
146146
},
147147
{
148-
text: 'Transition as Root',
148+
text: 'ルートのトランジション',
149149
link: '/ja/breaking-changes/transition-as-root'
150150
},
151151
{
152-
text: 'Transition Group Root Element',
152+
text: 'トランジショングループのルート要素',
153153
link: '/ja/breaking-changes/transition-group'
154154
},
155155
{
156-
text: 'VNode lifecycle events',
156+
text: 'VNode ライフサイクルイベント',
157157
link: '/ja/breaking-changes/vnode-lifecycle-events'
158158
},
159-
{ text: 'Watch on Arrays', link: '/ja/breaking-changes/watch' }
159+
{ text: '配列の監視', link: '/ja/breaking-changes/watch' }
160160
]
161161
}
162162
]

src/ja/breaking-changes/transition-as-root.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@ badges:
33
- breaking
44
---
55

6-
# Transition as Root <MigrationBadges :badges="$frontmatter.badges" />
6+
# ルートのトランジション <MigrationBadges :badges="$frontmatter.badges" />
77

8-
## Overview
8+
## 概要
99

10-
Using a `<transition>` as a component's root will no longer trigger transitions when the component is toggled from the outside.
10+
コンポーネントのルートとして `<transition>` を使用する場合、外部からコンポーネントを切り替えたときにトランジションが発生しなくなりました。
1111

12-
## 2.x Behavior
12+
## 2.x の動作
1313

14-
In Vue 2, it was possible to trigger a transition from outside a component by using a `<transition>` as the component's root:
14+
Vue 2 では、コンポーネントのルートとして `<transition>` を使用することで、コンポーネントの外からトランジションをトリガーできました:
1515

1616
```html
17-
<!-- modal component -->
17+
<!-- モーダルコンポーネント -->
1818
<template>
1919
<transition>
2020
<div class="modal"><slot/></div>
@@ -23,19 +23,19 @@ In Vue 2, it was possible to trigger a transition from outside a component by us
2323
```
2424

2525
```html
26-
<!-- usage -->
26+
<!-- 使用箇所 -->
2727
<modal v-if="showModal">hello</modal>
2828
```
2929

30-
Toggling the value of `showModal` would trigger a transition inside the modal component.
30+
`showModal` の値を切り替えると、モーダルコンポーネントの内部でトランジションが発生します。
3131

32-
This worked by accident, not by design. A `<transition>` is supposed to be triggered by changes to its children, not by toggling the `<transition>` itself.
32+
これは偶然の産物であり、意図したものではありませんでした。`<transition>` は、`<transition>` 自体のトグルではなく、その子への変更によってトリガーされることになっています。
3333

34-
This quirk has now been removed.
34+
現在、この動作は解消されています。
3535

36-
## Migration Strategy
36+
## 移行手順
3737

38-
A similar effect can be achieved by passing a prop to the component instead:
38+
代わりに、コンポーネントにプロパティを渡すことによって同様の効果を得られます:
3939

4040
```vue
4141
<template>
@@ -51,11 +51,11 @@ export default {
5151
```
5252

5353
```html
54-
<!-- usage -->
54+
<!-- 使用箇所 -->
5555
<modal :show="showModal">hello</modal>
5656
```
5757

58-
## See also
58+
## 参照
5959

60-
- [Some transition classes got a rename](./transition.html)
61-
- [`<TransitionGroup>` now renders no wrapper element by default](./transition-group.html)
60+
- [一部のトランジションクラスが名称変更されました](./transition.html)
61+
- [`<TransitionGroup>` はデフォルトでラッパー要素をレンダリングしなくなりました](./transition-group.html)
Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
---
2-
title: Transition Group Root Element
2+
title: トランジショングループのルート要素
33
badges:
44
- breaking
55
---
66

77
# {{ $frontmatter.title }} <MigrationBadges :badges="$frontmatter.badges" />
88

9-
## Overview
9+
## 概要
1010

11-
`<transition-group>` no longer renders a root element by default, but can still create one with the `tag` attribute.
11+
`<transition-group>` はデフォルトでルート要素をレンダリングしなくなりましたが、`tag` 属性でルート要素を作成できます。
1212

13-
## 2.x Syntax
13+
## 2.x の構文
1414

15-
In Vue 2, `<transition-group>`, like other custom components, needed a root element, which by default was a `<span>` but was customizable via the `tag` attribute.
15+
Vue 2 では、`<transition-group>` は他のカスタムコンポーネントと同様にルート要素が必要でした。ルート要素はデフォルトでは `<span>` ですが、`tag` 属性によってカスタマイズできます。
1616

1717
```html
1818
<transition-group tag="ul">
@@ -22,24 +22,24 @@ In Vue 2, `<transition-group>`, like other custom components, needed a root elem
2222
</transition-group>
2323
```
2424

25-
## 3.x Syntax
25+
## 3.x の構文
2626

27-
In Vue 3, we have [fragment support](../new/fragments.html), so components no longer _need_ a root node. Consequently, `<transition-group>` no longer renders one by default.
27+
Vue 3 では、[fragment のサポート](../new/fragments.html)があるので、コンポーネントにはルートノードが不要になりました。その結果、`<transition-group>` はデフォルトでルートノードをレンダリングしなくなりました。
2828

29-
- If you already have the `tag` attribute defined in your Vue 2 code, like in the example above, everything will work as before
30-
- If you didn't have one defined _and_ your styling or other behaviors relied on the presence of the `<span>` root element to work properly, simply add `tag="span"` to the `<transition-group>`:
29+
- 上の例のように、Vue 2 のコードですでに `tag` 属性が定義されている場合、すべて以前と同じように動作します
30+
- 定義されておらず、スタイリングやその他の動作がルート要素の `<span>` に依存して正しく動作しない場合は、`<transition-group>``tag="span"` を追加するだけです:
3131

3232
```html
3333
<transition-group tag="span">
3434
<!-- -->
3535
</transition-group>
3636
```
3737

38-
## Migration Strategy
38+
## 移行手順
3939

40-
[Migration build flag: `TRANSITION_GROUP_ROOT`](../migration-build.html#compat-configuration)
40+
[移行ビルドのフラグ: `TRANSITION_GROUP_ROOT`](../migration-build.html#compat-configuration)
4141

42-
## See also
42+
## 参照
4343

44-
- [Some transition classes got a rename](./transition.html)
45-
- [`<Transition>` as a root can no longer be toggled from the outside](./transition-as-root.html)
44+
- [一部のトランジションクラスが名称変更されました](./transition.html)
45+
- [ルートの `<Transition>` は、外部からトグルできなくなりました](./transition-as-root.html)

src/ja/breaking-changes/transition.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
---
2-
title: Transition Class Change
2+
title: トランジションクラスの変更
33
badges:
44
- breaking
55
---
66

77
# {{ $frontmatter.title }} <MigrationBadges :badges="$frontmatter.badges" />
88

9-
## Overview
9+
## 概要
1010

11-
The `v-enter` transition class has been renamed to `v-enter-from` and the `v-leave` transition class has been renamed to `v-leave-from`.
11+
`v-enter` トランジションクラスは `v-enter-from` に名称変更され、`v-leave` トランジションクラスは `v-leave-from` に名称変更されました。
1212

13-
## 2.x Syntax
13+
## 2.x の構文
1414

15-
Before v2.1.8, we had two transition classes for each transition direction: initial and active states.
15+
v2.1.8 以前は、トランジションの方向ごとに 2 つの遷移クラス(初期状態と活性状態)がありました。
1616

17-
In v2.1.8, we introduced `v-enter-to` to address the timing gap between enter/leave transitions. However, for backward compatibility, the `v-enter` name was untouched:
17+
v2.1.8 で、enter/leave のトランジション間のタイミングギャップに対応するため、`v-enter-to` を導入しました。しかし、後方互換性のために、`v-enter` という名前はそのまま残されています:
1818

1919
```css
2020
.v-enter,
@@ -28,11 +28,11 @@ In v2.1.8, we introduced `v-enter-to` to address the timing gap between enter/le
2828
}
2929
```
3030

31-
This became confusing, as _enter_ and _leave_ were broad and not using the same naming convention as their class hook counterparts.
31+
_enter_ _leave_ は幅広く、対応するクラスフックと同じ命名規則を使っていないため、これは混乱を招きました。
3232

33-
## 3.x Update
33+
## 3.x の更新内容
3434

35-
In order to be more explicit and legible, we have now renamed these initial state classes:
35+
より明示的で分かりやすくするために、これらの初期状態クラスの名前を変更しました:
3636

3737
```css
3838
.v-enter-from,
@@ -46,22 +46,22 @@ In order to be more explicit and legible, we have now renamed these initial stat
4646
}
4747
```
4848

49-
It's now much clearer what the difference between these states is.
49+
これらの状態の違いがより明確になりました。
5050

5151
![Transition Diagram](/images/transitions.svg)
5252

53-
The `<transition>` component's related prop names are also changed:
53+
また、`<transition>` コンポーネントの関連プロパティの名前も変更されました:
5454

55-
- `leave-class` is renamed to `leave-from-class` (can be written as `leaveFromClass` in render functions or JSX)
56-
- `enter-class` is renamed to `enter-from-class` (can be written as `enterFromClass` in render functions or JSX)
55+
- `leave-class` `leave-from-class` に名称変更されます(レンダー関数や JSX では `leaveFromClass` と記述できます)
56+
- `enter-class` `enter-from-class` に名称変更されます(レンダー関数や JSX では `enterFromClass` と記述できます)
5757

58-
## Migration Strategy
58+
## 移行手順
5959

60-
1. Replace instances of `.v-enter` to `.v-enter-from`
61-
2. Replace instances of `.v-leave` to `.v-leave-from`
62-
3. Replace instances of related prop names, as above.
60+
1. `.v-enter` の使用箇所を `.v-enter-from` に置き換える。
61+
2. `.v-leave` の使用箇所を `.v-leave-from` に置き換える。
62+
3. 上述の、関連するプロパティ名の使用箇所を置き換える。
6363

64-
## See also
64+
## 参照
6565

66-
- [`<Transition>` as a root can no longer be toggled from the outside](./transition-as-root.html)
67-
- [`<TransitionGroup>` now renders no wrapper element by default](./transition-group.html)
66+
- [ルートの `<Transition>` は、外部からトグルできなくなりました](./transition-as-root.html)
67+
- [`<TransitionGroup>` はデフォルトでラッパー要素をレンダリングしなくなりました](./transition-group.html)

src/ja/breaking-changes/v-on-native-modifier-removed.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ badges:
4646

4747
## 移行手順
4848

49-
- `.native` 修飾子のインスタンスをすべて削除します
49+
- `.native` 修飾子の使用箇所をすべて削除します
5050
- すべてのコンポーネントで `emits` オプションを使用して、イベントをドキュメント化するようにします。
5151

5252
[移行ビルドのフラグ: `COMPILER_V_ON_NATIVE`](../migration-build.html#compat-configuration)

src/ja/breaking-changes/vnode-lifecycle-events.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,40 +3,40 @@ badges:
33
- breaking
44
---
55

6-
# VNode Lifecycle Events <MigrationBadges :badges="$frontmatter.badges" />
6+
# VNode ライフサイクルイベント <MigrationBadges :badges="$frontmatter.badges" />
77

8-
## Overview
8+
## 概要
99

10-
In Vue 2, it was possible to use events to listen for key stages in a component's lifecycle. These events had names that started with the prefix `hook:`, followed by the name of the corresponding lifecycle hook.
10+
Vue 2 ではイベントを使用して、コンポーネントのライフサイクルの主要な段階を購読できました。これらのイベントは `hook:` プレフィックスで始まり、その後に対応するライフサイクルフックの名前が続きます。
1111

12-
In Vue 3, this prefix has been changed to `vue:`. In addition, these events are now available for HTML elements as well as components.
12+
Vue 3 では、このプレフィックスは `vue:` に変更されました。さらに、これらのイベントは、コンポーネントだけでなく HTML 要素でも利用できるようになりました。
1313

14-
## 2.x Syntax
14+
## 2.x の構文
1515

16-
In Vue 2, the event name is the same as the equivalent lifecycle hook, prefixed with `hook:`:
16+
Vue 2 では、イベント名は相当するライフサイクルフックと同じで、プレフィックスとして `hook:` が付きます:
1717

1818
```html
1919
<template>
2020
<child-component @hook:updated="onUpdated">
2121
</template>
2222
```
2323

24-
## 3.x Syntax
24+
## 3.x の構文
2525

26-
In Vue 3, the event name is prefixed with `vue:`:
26+
Vue 3 では、イベント名の前に `vue:` が付きます:
2727

2828
```html
2929
<template>
3030
<child-component @vue:updated="onUpdated">
3131
</template>
3232
```
3333

34-
## Migration Strategy
34+
## 移行手順
3535

36-
In most cases it should just require changing the prefix. The lifecycle hooks `beforeDestroy` and `destroyed` have been renamed to `beforeUnmount` and `unmounted` respectively, so the corresponding event names will also need to be updated.
36+
ほとんどの場合、プレフィックスを変更するだけでよいでしょう。ライフサイクルフックの `beforeDestroy` `destroyed` はそれぞれ `beforeUnmount` `unmounted` に名前が変更されたので、対応するイベントの名前も更新する必要があります。
3737

38-
[Migration build flags: `INSTANCE_EVENT_HOOKS`](../migration-build.html#compat-configuration)
38+
[移行ビルドのフラグ: `INSTANCE_EVENT_HOOKS`](../migration-build.html#compat-configuration)
3939

40-
## See Also
40+
## 参照
4141

42-
- [Migration guide - Events API](./events-api.html)
42+
- [移行ガイド - イベント API](./events-api.html)

src/ja/breaking-changes/watch.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
---
2-
title: Watch on Arrays
2+
title: 配列の監視
33
badges:
44
- breaking
55
---
66

77
# {{ $frontmatter.title }} <MigrationBadges :badges="$frontmatter.badges" />
88

9-
## Overview
9+
## 概要
1010

11-
- **BREAKING**: When watching an array, the callback will only trigger when the array is replaced. If you need to trigger on mutation, the `deep` option must be specified.
11+
- **破壊的変更**: 配列を監視している場合、コールバックは配列が置換されたときにのみトリガーされます。変更時にトリガーする必要がある場合は、`deep` オプションを指定する必要があります。
1212

13-
## 3.x Syntax
13+
## 3.x の構文
1414

15-
When using [the `watch` option](https://ja.vuejs.org/api/options-state.html#watch) to watch an array, the callback will only trigger when the array is replaced. In other words, the watch callback will no longer be triggered on array mutation. To trigger on mutation, the `deep` option must be specified.
15+
[`watch` オプション](https://ja.vuejs.org/api/options-state.html#watch)を使って配列を監視する場合、コールバックは配列が置換されたときにのみトリガーされます。つまり、ウォッチコールバックは配列の変更時にトリガーされなくなります。変更時にトリガーするには、`deep` オプションを指定する必要があります。
1616

1717
```js
1818
watch: {
@@ -25,8 +25,8 @@ watch: {
2525
}
2626
```
2727

28-
## Migration Strategy
28+
## 移行手順
2929

30-
If you rely on watching array mutations, add the `deep` option to ensure that your callback is triggered correctly.
30+
配列の変更を監視することに依存している場合、コールバックが正しくトリガーされるように `deep` オプションを追加してください。
3131

32-
[Migration build flag: `WATCH_ARRAY`](../migration-build.html#compat-configuration)
32+
[移行ビルドのフラグ: `WATCH_ARRAY`](../migration-build.html#compat-configuration)

0 commit comments

Comments
 (0)