From 619a98b7d6726881a1d62adc8177436e303f0844 Mon Sep 17 00:00:00 2001 From: RyoNkmr Date: Thu, 17 Sep 2020 04:13:16 +0900 Subject: [PATCH] Translate Installation into ja --- src/guide/installation.md | 118 +++++++++++++++++++------------------- 1 file changed, 60 insertions(+), 58 deletions(-) diff --git a/src/guide/installation.md b/src/guide/installation.md index 504954a9..727d9afa 100644 --- a/src/guide/installation.md +++ b/src/guide/installation.md @@ -1,61 +1,61 @@ -# Installation +# インストール -## Release Notes +## リリースノート -Latest beta version: 3.0.0-rc.5 +最新のベータバージョン: 3.0.0-rc.5 -Detailed release notes for each version are available on [GitHub](https://github.com/vuejs/vue-next/releases). +各バージョンの詳細なリリースノートは、 [GitHub](https://github.com/vuejs/vue-next/releases) で入手できます。 ## Vue Devtools -> Currently in Beta +> 現在、ベータ版です。 -> Vue Devtools for Vue 3 requires at least `vue@^3.0.0-rc.1` +> Vue 3 向けの Vue Devtools の利用には、`vue@^3.0.0-rc.1` 以上が必要です。 -When using Vue, we recommend also installing the [Vue Devtools](https://github.com/vuejs/vue-devtools#vue-devtools) in your browser, allowing you to inspect and debug your Vue applications in a more user-friendly interface. +Vue を使用する場合は、ブラウザに [Vue Devtools](https://github.com/vuejs/vue-devtools#vue-devtools) をインストールすることをお勧めします。これにより、Vue アプリケーションをよりユーザーフレンドリーなインターフェースで調査、デバッグすることが可能になります。 -[Get the Chrome Extension](https://chrome.google.com/webstore/detail/vuejs-devtools/ljjemllljcmogpfapbkkighbhhppjdbg) +[Chrome 拡張版を入手](https://chrome.google.com/webstore/detail/vuejs-devtools/ljjemllljcmogpfapbkkighbhhppjdbg) -[Get the Firefox Addon](https://addons.mozilla.org/en-US/firefox/addon/vue-js-devtools/) +[Firefox アドオン版を入手](https://addons.mozilla.org/en-US/firefox/addon/vue-js-devtools/) -[Get the standalone Electron app](https://github.com/vuejs/vue-devtools/blob/dev/packages/shell-electron/README.md) +[スタンドアロンの Electron アプリケーション版を入手](https://github.com/vuejs/vue-devtools/blob/dev/packages/shell-electron/README.md) ## CDN -For prototyping or learning purposes, you can use the latest version with: +プロトタイピングや学習を目的とする場合は、以下のようにして最新バージョンを利用できます: ```html ``` -For production, we recommend linking to a specific version number and build to avoid unexpected breakage from newer versions. +本番環境では、新しいバージョンによる意図しない不具合を避けるため、特定のバージョン番号とビルド番号にリンクすることをお勧めします。 ## NPM -NPM is the recommended installation method when building large scale applications with Vue. It pairs nicely with module bundlers such as [Webpack](https://webpack.js.org/) or [Browserify](http://browserify.org/). Vue also provides accompanying tools for authoring [Single File Components](../guide/single-file-component.html). +Vue による大規模アプリケーションを構築するときには、NPM を利用したインストールを推奨します。[Webpack](https://webpack.js.org/) または [Browserify](http://browserify.org/) のようなモジュールバンドラーとうまく組み合わせることができます。Vue は[単一ファイルコンポーネント](../guide/single-file-component.html)を作成するための、付随するツールも提供しています。 ```bash -# latest stable +# 最新安定版 $ npm install vue@next ``` ## CLI -Vue provides an [official CLI](https://github.com/vuejs/vue-cli) for quickly scaffolding ambitious Single Page Applications. It provides batteries-included build setups for a modern frontend workflow. It takes only a few minutes to get up and running with hot-reload, lint-on-save, and production-ready builds. See [the Vue CLI docs](https://cli.vuejs.org) for more details. +大規模なシングルページアプリケーション開発の足場を素早く組むために、Vue は [公式 CLI](https://github.com/vuejs/vue-cli) を提供します。この CLI にはモダンなフロントエンドワークフローのための、すぐに使えるビルド設定を用意しています。ホットリロード、保存時のリント、本番リリースのビルドができるようになるまでには、ほんの数分しかかかりません。より詳細は [Vue CLI ドキュメント](https://cli.vuejs.org) を参照してください。 ::: tip -The CLI assumes prior knowledge of Node.js and the associated build tools. If you are new to Vue or front-end build tools, we strongly suggest going through the guide without any build tools before using the CLI. +CLI は Node.js と関連するビルドツールに関する予備知識を前提としています。もし、Vue またはフロントエンドビルドツールを初めて使用する場合は、CLI を使用する前に、ビルドツールなしでガイドを参照することを強くお勧めします。 ::: -For Vue 3, you should use Vue CLI v4.5 available on `npm` as `@vue/cli@next`. To upgrade, you need to reinstall the latest version of `@vue/cli` globally: +`npm` 上で `@vue/cli@next` として、Vue 3 向けの Vue CLI v4.5 が利用可能です。以前のバージョンからアップグレードする場合は、以下のように `@vue/cli` をグローバルに再インストールしてください: ```bash yarn global add @vue/cli@next -# OR +# または npm install -g @vue/cli@next ``` -Then in the Vue projects, run +その後、Vue プロジェクト内で以下を実行します ```bash vue upgrade --next @@ -63,20 +63,20 @@ vue upgrade --next ## Vite -[Vite](https://github.com/vitejs/vite) is a web development build tool that allows for lighting fast serving of code due its native ES Module import approach. +[Vite](https://github.com/vitejs/vite) は ネイティブ ES Module の import の仕組みを利用して、超高速なコード配信を可能としたウェブ開発ビルドツールです。 -Vue projects can quickly be set up with Vite by running the following commands in your terminal. +次のコマンドをターミナルで実行すると Vite ですぐに Vue プロジェクトをセットアップできます。 -With NPM: +NPM の場合: ```bash -$ npm init vite-app -$ cd +$ npm init vite-app <プロジェクト名> +$ cd <プロジェクト名> $ npm install $ npm run dev ``` -Or with Yarn: +または Yarn の場合: ```bash $ yarn create vite-app @@ -85,63 +85,65 @@ $ yarn $ yarn dev ``` -## Explanation of Different Builds +## さまざまなビルドについて -In the [`dist/` directory of the NPM package](https://cdn.jsdelivr.net/npm/vue@3.0.0-rc.1/dist/) you will find many different builds of Vue.js. Here is an overview of which `dist` file should be used depending on the use-case. +[NPM パッケージの `dist/` ディレクトリ](https://cdn.jsdelivr.net/npm/vue@3.0.0-rc.1/dist/) には、Vue.js の多くのさまざまなビルドが見つかります。利用用途ごとに `dist` ファイルの使い分けの概要を説明します。 -### From CDN or without a Bundler +### CDN を利用、またはバンドラーを使用しない場合 #### `vue(.runtime).global(.prod).js`: -- For direct use via `