-
Notifications
You must be signed in to change notification settings - Fork 113
translate docs/babel #130
translate docs/babel #130
Conversation
docs/docs/babel.md
Outdated
| Gatsby は [Babel](https://babeljs.io/) というすばらしいプロジェクトを使っており、 | ||
| モダンな JavaScript をサポートしていない古いブラウザーへのサポートをしつつ、モダンな JavaScript の記述が可能です。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ここは1行で以下にように書いてしまうのが良いと思います。
Gatsby は、[Babel](https://babeljs.io/) という素晴らしいプロジェクトを使い、古いブラウザをサポートしつつ、モダンなJavaScriptを書けるようにしています。
docs/docs/babel.md
Outdated
| Gatsby は基本的に、メジャーなブラウザーの最新 2 つのバージョン、 IE 9 以上 、 | ||
| そして 1% 以上のシェアがあればどのようなブラウザーもサポートしています。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ここも同様に1行で、そして以下にように書けると思います。
Gatsby はデフォルトでメジャーなブラウザの最新の 2 つのバージョンと IE9 以上、そして 1% 以上のシェアのあるブラウザをサポートしています。
docs/docs/babel.md
Outdated
| Polyfills are also automatically added — no more shipping code which mysteriously | ||
| breaks on older browsers! | ||
| つまり JavaScript は自動的にコンパイルされ、古いブラウザー上でも動作が保証されているということです。 | ||
| Polyfills も自動的に追加されますので、古いブラウザー上で謎の動きをするコードはもうありません! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| Polyfills も自動的に追加されますので、古いブラウザー上で謎の動きをするコードはもうありません! | |
| ポリフィルも自動的に追加されるため、コードが古いブラウザー上で不可解に壊れることはもうありません! |
docs/docs/babel.md
Outdated
| Support](/docs/browser-support/) docs page for how to instruct Gatsby on which | ||
| browsers you support and then Babel will start compiling for only these | ||
| browsers. | ||
| もし最新のブラウザーのみの対応で良いなら、[サポートするブラウザー](/docs/browser-support/)のページをご覧ください。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| もし最新のブラウザーのみの対応で良いなら、[サポートするブラウザー](/docs/browser-support/)のページをご覧ください。 | |
| もし、新しいブラウザのみの対応で良いなら、[サポートするブラウザー](/docs/browser-support/)のページをご覧ください。 |
docs/docs/babel.md
Outdated
| どのように Gatsby を設定すれば 、あなたがサポートしたいブラウザーのみを Babel がコンパイルしてくれるのか記載しています。 | ||
|
|
||
| ## How to use a custom .babelrc file | ||
| ## .babelrc ファイルをどのようにカスタムして使うか |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| ## .babelrc ファイルをどのようにカスタムして使うか | |
| ## どのようにカスタム .babelrc ファイルを使うのか |
docs/docs/babel.md
Outdated
| より高度な設定をしたければ、 [`babel-preset-gatsby`](https://github.com/gatsbyjs/gatsby/tree/master/packages/babel-preset-gatsby) からデフォルト値をコピーし | ||
| 必要に応じてカスタマイズするのも良いでしょう。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
不要なスペースを消し、他と同様に1行にしてください。
より高度な設定をしたければ、[`babel-preset-gatsby`](https://github.com/gatsbyjs/gatsby/tree/master/packages/babel-preset-gatsby) からデフォルト値をコピーし、必要に応じてカスタマイズすることも出来ます。|
英語の場合、文の途中で改行しても単語間に半角スペースが入るだけなので問題ないのですが、日本語の場合文の途中で改行すると、スタイルが崩れるので途中改行は避けてください。 |
|
レビューありがとうございます。日本語での改行の件承知しました。 |
docs/docs/babel.md
Outdated
| and add additional plugins, presets, and pass options to `babel-preset-gatsby`, e.g. `targets`. | ||
| Gatsby には、ほとんどのサイトで動くようなデフォルトの .babelrc ファイルがセットアップされています。 | ||
| もしあなたが Babel のプリセットやプラグインをカスタムしたい場合、ご自身専用の `.babelrc` をサイトのルートに作成してください。 | ||
| そして `babel-preset-gatsby`](https://github.com/gatsbyjs/gatsby/tree/master/packages/babel-preset-gatsby) をインポートし、 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| そして `babel-preset-gatsby`](https://github.com/gatsbyjs/gatsby/tree/master/packages/babel-preset-gatsby) をインポートし、 | |
| そして [`babel-preset-gatsby`](https://github.com/gatsbyjs/gatsby/tree/master/packages/babel-preset-gatsby) をインポートし、 |
|
レビューありがとうございます。記号が欠けていたのを修正しました。 |
Naturalclar
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! ありがとうございます!
概要
docs/babelを翻訳しました。レビューよろしくお願いします。チェックリスト
textlintを使って校正を行いました。Allow edits from maintainersにチェックを入れました。補足
Ref: #1