-
Notifications
You must be signed in to change notification settings - Fork 141
translate(content): service-worker-intro.md #93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
f22bc6a to
7392135
Compare
7392135 to
6120ea5
Compare
| # Angular Service Worker イントロダクション | ||
|
|
||
| Service workers augment the traditional web deployment model and empower applications to deliver a user experience with the reliability and performance on par with natively-installed code. | ||
| サービスワーカーは、従来のWebデプロイメントモデルを強化し、ネイティブにインストールされたコードと同等の信頼性とパフォーマンスでユーザー体験できるようにアプリケーションを補強します。 |
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.
Service Workerは検索性を考えて、 Service Workerのままでいきましょう。
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.
修正しました。
|
|
||
|
|
||
| ## Service workers in Angular | ||
| ## Angularのサービスワーカー |
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.
Angularにおける としましょう
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.
修正しました。
| ## Angularのサービスワーカー | ||
|
|
||
| Angular applications, as single-page applications, are in a prime position to benefit from the advantages of service workers. Starting with version 5.0.0, Angular ships with a service worker implementation. Angular developers can take advantage of this service worker and benefit from the increased reliability and performance it provides, without needing to code against low-level APIs. | ||
| シングルページアプリケーションとしてのAngularは、サービスワーカーのメリットを享受するうえで最重要な位置にあります。バージョン5.0.0以降のAngularはサービスワーカーの実装を搭載しています。Angularの開発者は、このサービスワーカーを利用して、低レベルのAPIをコーディングすることなく、信頼性とパフォーマンスを向上させることができます。 |
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.
バージョン5.0.0以降のAngularはサービスワーカーの実装を搭載しています。
->
バージョン5.0.0より、AngularはService Workerの実装を提供しています。
がよいでしょう
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.
修正しました。
| シングルページアプリケーションとしてのAngularは、サービスワーカーのメリットを享受するうえで最重要な位置にあります。バージョン5.0.0以降のAngularはサービスワーカーの実装を搭載しています。Angularの開発者は、このサービスワーカーを利用して、低レベルのAPIをコーディングすることなく、信頼性とパフォーマンスを向上させることができます。 | ||
|
|
||
| Angular's service worker is designed to optimize the end user experience of using an application over a slow or unreliable network connection, while also minimizing the risks of serving outdated content. | ||
| Angularのサービスワーカーは、遅かったり信頼性が低いネットワーク接続を通してアプリケーションを使用しているユーザーの体験を最適化し、古いコンテンツを配信してしまうリスクを最小限に抑えるように設計されています。 |
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.
低速、あるいは信頼性が低いネットワーク接続 としましょう
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.
〜たり を正しく自然に文語で使うのは難しいですね
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.
修正しました。
| * サービスワーカーは、可能な限り帯域幅を節約します。リソースは変更された場合にのみダウンロードされます。 | ||
|
|
||
| To support these behaviors, the Angular service worker loads a *manifest* file from the server. The manifest describes the resources to cache and includes hashes of every file's contents. When an update to the application is deployed, the contents of the manifest change, informing the service worker that a new version of the application should be downloaded and cached. This manifest is generated from a user-provided configuration file called `ngsw-config.json`, by using a build tool such as the Angular CLI. | ||
| これらの動作をサポートするために、Angularのサービスワーカーは *manifest* ファイルをサーバーからロードします。マニフェストは、キャッシュするリソースを記述し、すべてのファイルのハッシュを含みます。アプリケーションの更新が展開されると、マニフェストの内容が変更され、アプリケーションの新しいバージョンをダウンロードしてキャッシュする必要があることがサービスワーカーに通知されます。このマニフェストは、Angular CLIなどのビルドツールを使用して作成した`ngsw-config.json`という設定ファイルから生成されます。 |
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.
あとの説明がマニフェストなので *マニフェスト* ファイルでよいでしょう
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.
修正しました。
| これらの動作をサポートするために、Angularのサービスワーカーは *manifest* ファイルをサーバーからロードします。マニフェストは、キャッシュするリソースを記述し、すべてのファイルのハッシュを含みます。アプリケーションの更新が展開されると、マニフェストの内容が変更され、アプリケーションの新しいバージョンをダウンロードしてキャッシュする必要があることがサービスワーカーに通知されます。このマニフェストは、Angular CLIなどのビルドツールを使用して作成した`ngsw-config.json`という設定ファイルから生成されます。 | ||
|
|
||
| Installing the Angular service worker is as simple as including an `NgModule`. In addition to registering the Angular service worker with the browser, this also makes a few services available for injection which interact with the service worker and can be used to control it. For example, an application can ask to be notified when a new update becomes available, or an application can ask the service worker to check the server for available updates. | ||
| Angularのサービスワーカーのインストールは、`NgModule`に含めるだけです。 ブラウザにAngularのサービスワーカーを登録することに加えて、サービスワーカーとやりとりしたり、サービスワーカーを制御するために使用できる、いくつかのサービスをDI用に用意しています。 たとえば、新しい更新が利用可能になったときに通知を受けるようにアプリケーションに依頼することも、サービスワーカーに利用可能な更新をサーバーに確認するように依頼することもできます。 |
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.
いくつかのサービスをDI用に用意しています -> いくつかのサービスをインジェクション可能にします
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.
this also makes a few services available for injection は make O Cの構文ですね OをCにする、です
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.
修正しました。DIの訳し方はいつも迷います。。
| ## 関連資料 | ||
|
|
||
| For more information about service workers in general, see [Service Workers: an Introduction](https://developers.google.com/web/fundamentals/primers/service-workers/). | ||
| サービスワーカーの一般的な情報については、[Service Workerの紹介(邦訳)](https://developers.google.com/web/fundamentals/primers/service-workers/)を参照してください。 |
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.
リンク先が日本語かどうかは閲覧者のcookieによるので、(邦訳)は無い方がいいでしょう
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.
なるほど。削除しました。
|
|
||
| For more information about browser support, see the [browser support](https://developers.google.com/web/fundamentals/primers/service-workers/#browser_support) section of [Service Workers: an Introduction](https://developers.google.com/web/fundamentals/primers/service-workers/), Jake Archibald's [Is Serviceworker ready?](https://jakearchibald.github.io/isserviceworkerready/), and | ||
| [Can I Use](http://caniuse.com/#feat=serviceworkers). | ||
| ブラウザサポートの詳細については、[Service Workerの紹介(邦訳)](https://developers.google.com/web/fundamentals/primers/service-workers/)の[サポートしているブラウザを使う](https://developers.google.com/web/fundamentals/primers/service-workers/#_2)セクションや、Jake Archibaldの[Is Serviceworker ready?](https://jakearchibald.github.io/isserviceworkerready/)、[Can I Use](http://caniuse.com/#feat=serviceworkers)を参照してください。 |
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.
同上
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.
リンクが元と違うような?ここらへんはリンクテキストとかそのままで良いと思います
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.
リンクは原文通りにしました。(日本語ページだとマークアップの構造も変わっているので、URLも合わせて変えてました)
|
翻訳ありがとうございます!いくつかの部分で修正をお願いします 🙇 |
b1494c1 to
8dd0455
Compare
|
@lacolaco レビューありがとうございます。修正アップしました:bow: |
|
修正ありがとうございました! |
To close #91