diff --git a/.vitepress/locales/ja.js b/.vitepress/locales/ja.js index 64cb9af..0372d60 100644 --- a/.vitepress/locales/ja.js +++ b/.vitepress/locales/ja.js @@ -16,13 +16,13 @@ export default { sidebar: [ { - text: 'Guide', + text: 'ガイド', items: [ - { text: 'Overview', link: '/ja/' }, - { text: 'New Recommendations', link: '/ja/recommendations' }, - { text: 'Migration Build', link: '/ja/migration-build' }, + { text: '概要', link: '/ja/' }, + { text: '新しい推奨事項', link: '/ja/recommendations' }, + { text: '移行ビルド', link: '/ja/migration-build' }, { - text: 'Breaking Changes', + text: '破壊的変更', link: '/ja/breaking-changes/' } ] diff --git a/src/ja/breaking-changes/custom-elements-interop.md b/src/ja/breaking-changes/custom-elements-interop.md index bddb968..69e145d 100644 --- a/src/ja/breaking-changes/custom-elements-interop.md +++ b/src/ja/breaking-changes/custom-elements-interop.md @@ -61,7 +61,7 @@ Vue.config.ignoredElements = ['plastic-button'] It's important to note the runtime config only affects runtime template compilation - it won't affect pre-compiled templates. -## Customized Built-in Elements +## Customized Built-in Elements {#customized-built-in-elements} The Custom Elements specification provides a way to use custom elements as [Customized Built-in Element](https://html.spec.whatwg.org/multipage/custom-elements.html#custom-elements-customized-builtin-example) by adding the `is` attribute to a built-in element: diff --git a/src/ja/breaking-changes/data-option.md b/src/ja/breaking-changes/data-option.md index 8b6b200..d21170b 100644 --- a/src/ja/breaking-changes/data-option.md +++ b/src/ja/breaking-changes/data-option.md @@ -62,7 +62,7 @@ Using the example above, there would only be one possible implementation of the ``` -## Mixin Merge Behavior Change +## Mixin Merge Behavior Change {#mixin-merge-behavior-change} In addition, when `data()` from a component and its mixins or extends base are merged, the merge is now performed *shallowly*: diff --git a/src/ja/breaking-changes/functional-components.md b/src/ja/breaking-changes/functional-components.md index 6c8b8fa..953431d 100644 --- a/src/ja/breaking-changes/functional-components.md +++ b/src/ja/breaking-changes/functional-components.md @@ -85,7 +85,7 @@ DynamicHeading.props = ['level'] export default DynamicHeading ``` -### Single File Components (SFCs) +### Single File Components (SFCs) {#single-file-components-sfcs} In 3.x, the performance difference between stateful and functional components has been drastically reduced and will be insignificant in most use cases. As a result, the migration path for developers using `functional` on SFCs is to remove the attribute and rename all references of `props` to `$props` and `attrs` to `$attrs`. diff --git a/src/ja/breaking-changes/global-api.md b/src/ja/breaking-changes/global-api.md index 9b2b334..043f3ee 100644 --- a/src/ja/breaking-changes/global-api.md +++ b/src/ja/breaking-changes/global-api.md @@ -55,7 +55,7 @@ While this approach is convenient, it leads to a couple of problems. Technically To avoid these problems, in Vue 3 we introduce… -## A New Global API: `createApp` +## A New Global API: `createApp` {#a-new-global-api-createapp} Calling `createApp` returns an _app instance_, a new concept in Vue 3. @@ -89,7 +89,7 @@ An app instance exposes a subset of the Vue 2 global APIs. The rule of thumb is All other global APIs that do not globally mutate behavior are now named exports, as documented in [Global API Treeshaking](./global-api-treeshaking.html). -### `config.productionTip` Removed +### `config.productionTip` Removed {#config-productiontip-removed} In Vue 3.x, the "use production build" tip will only show up when using the "dev + full build" (the build that includes the runtime compiler and has warnings). @@ -97,7 +97,7 @@ For ES modules builds, since they are used with bundlers, and in most cases a CL [Migration build flag: `CONFIG_PRODUCTION_TIP`](../migration-build.html#compat-configuration) -### `config.ignoredElements` Is Now `config.compilerOptions.isCustomElement` +### `config.ignoredElements` Is Now `config.compilerOptions.isCustomElement` {#config-ignoredelements-is-now-config-compileroptions-iscustomelement} This config option was introduced with the intention to support native custom elements, so the renaming better conveys what it does. The new option also expects a function which provides more flexibility than the old string / RegExp approach: @@ -120,7 +120,7 @@ In Vue 3, the check of whether an element is a component or not has been moved t [Migration build flag: `CONFIG_IGNORED_ELEMENTS`](../migration-build.html#compat-configuration) -### `Vue.prototype` Replaced by `config.globalProperties` +### `Vue.prototype` Replaced by `config.globalProperties` {#vue-prototype-replaced-by-config-globalproperties} In Vue 2, `Vue.prototype` was commonly used to add properties that would be accessible in all components. @@ -141,7 +141,7 @@ Using `provide` (discussed [below](#provide-inject)) should also be considered a [Migration build flag: `GLOBAL_PROTOTYPE`](../migration-build.html#compat-configuration) -### `Vue.extend` Removed +### `Vue.extend` Removed {#vue-extend-removed} In Vue 2.x, `Vue.extend` was used to create a "subclass" of the base Vue constructor with the argument that should be an object containing component options. In Vue 3.x, we don't have the concept of component constructors anymore. Mounting a component should always use the `createApp` global API: @@ -210,7 +210,7 @@ const app = createApp(MyApp) app.use(VueRouter) ``` -## Mounting App Instance +## Mounting App Instance {#mounting-app-instance} After being initialized with `createApp(/* options */)`, the app instance `app` can be used to mount a root component instance with `app.mount(domTarget)`: diff --git a/src/ja/breaking-changes/index.md b/src/ja/breaking-changes/index.md index 059d323..e528093 100644 --- a/src/ja/breaking-changes/index.md +++ b/src/ja/breaking-changes/index.md @@ -1,66 +1,66 @@ -# Breaking Changes +# 破壊的変更 -This page lists all Vue 3 breaking changes from Vue 2. +このページでは、Vue 2 から Vue 3 の破壊的変更をすべてリストアップしています。 -While it looks like a lot has changed, a lot of what you know and love about Vue is still the same; but we wanted to be as thorough as possible and provide detailed explanations and examples for every documented change. +たくさん変わったように見えますが、Vue について皆さんが知っていることや気に入っていることの多くは変わりません。しかしできる限り徹底して、ドキュメント化されたすべての変更について詳細な説明と例を提供したいと考えました。 -## Details +## 詳細 -### Global API +### グローバル API -- [Global Vue API is changed to use an application instance](./global-api.html) -- [Global and internal APIs have been restructured to be tree-shakable](./global-api-treeshaking.html) +- [グローバル Vue API はアプリケーションインスタンスを使用するように変更されました](./global-api.html) +- [グローバル API と内部 API が再構築され、ツリーシェイキングが可能になりました](./global-api-treeshaking.html) -### Template Directives +### テンプレートディレクティブ -- [`v-model` usage on components has been reworked, replacing `v-bind.sync`](./v-model.html) -- [`key` usage on `