Skip to content

Commit edb09df

Browse files
authored
Sync origin 201902 (angular#307)
* update origin * original to original * original to original * update aio app code * migrate content/marketing * migrate small changes * migrate * add workflow * textlint fix * add missing link
1 parent c79459f commit edb09df

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+1082
-475
lines changed

README.md

+4-30
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# angular-ja
22

33
[![CircleCI](https://circleci.com/gh/angular/angular-ja/tree/master.svg?style=svg)](https://circleci.com/gh/angular/angular-ja/tree/master)
4-
[![Backers on Open Collective](https://opencollective.com/angular-ja/backers/badge.svg)](#backers)
5-
[![Sponsors on Open Collective](https://opencollective.com/angular-ja/sponsors/badge.svg)](#sponsors)
64

75
このリポジトリは[Angular](https://github.com/angular/angular)の公式サイト [angular.io](https://angular.io) を日本語に翻訳するためのものです。
86

@@ -17,34 +15,6 @@
1715
<a href="https://github.com/angular/angular-ja/graphs/contributors"><img src="https://opencollective.com/angular-ja/contributors.svg?width=890&button=false" /></a>
1816

1917

20-
### Backers
21-
22-
日本語化プロジェクトを支援してくれるBackerを募集しています!
23-
24-
プロジェクトを支援してくれているBackerのみなさんです! 🙏 [[Backerになる](https://opencollective.com/angular-ja#backer)]
25-
26-
<a href="https://opencollective.com/angular-ja#backers" target="_blank"><img src="https://opencollective.com/angular-ja/backers.svg?width=890"></a>
27-
28-
29-
<!--
30-
31-
### スポンサー
32-
33-
Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [[Become a sponsor](https://opencollective.com/angular-ja#sponsor)]
34-
35-
<a href="https://opencollective.com/angular-ja/sponsor/0/website" target="_blank"><img src="https://opencollective.com/angular-ja/sponsor/0/avatar.svg"></a>
36-
<a href="https://opencollective.com/angular-ja/sponsor/1/website" target="_blank"><img src="https://opencollective.com/angular-ja/sponsor/1/avatar.svg"></a>
37-
<a href="https://opencollective.com/angular-ja/sponsor/2/website" target="_blank"><img src="https://opencollective.com/angular-ja/sponsor/2/avatar.svg"></a>
38-
<a href="https://opencollective.com/angular-ja/sponsor/3/website" target="_blank"><img src="https://opencollective.com/angular-ja/sponsor/3/avatar.svg"></a>
39-
<a href="https://opencollective.com/angular-ja/sponsor/4/website" target="_blank"><img src="https://opencollective.com/angular-ja/sponsor/4/avatar.svg"></a>
40-
<a href="https://opencollective.com/angular-ja/sponsor/5/website" target="_blank"><img src="https://opencollective.com/angular-ja/sponsor/5/avatar.svg"></a>
41-
<a href="https://opencollective.com/angular-ja/sponsor/6/website" target="_blank"><img src="https://opencollective.com/angular-ja/sponsor/6/avatar.svg"></a>
42-
<a href="https://opencollective.com/angular-ja/sponsor/7/website" target="_blank"><img src="https://opencollective.com/angular-ja/sponsor/7/avatar.svg"></a>
43-
<a href="https://opencollective.com/angular-ja/sponsor/8/website" target="_blank"><img src="https://opencollective.com/angular-ja/sponsor/8/avatar.svg"></a>
44-
<a href="https://opencollective.com/angular-ja/sponsor/9/website" target="_blank"><img src="https://opencollective.com/angular-ja/sponsor/9/avatar.svg"></a>
45-
46-
-->
47-
4818
## コントリビューション大歓迎!
4919

5020
この翻訳プロジェクトにはみなさんの協力が必要です。
@@ -164,3 +134,7 @@ origin/aio/
164134
├── src # angular.ioアプリケーションのソースコード
165135
...
166136
```
137+
138+
## [For Maintainers] originの更新
139+
140+
[UPDATE_ORIGIN.md](UPDATE_ORIGIN.md)

UPDATE_ORIGIN.md

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# angular.io のオリジナルコンテンツを更新する方法
2+
3+
## 事前準備
4+
5+
- node_modules の準備
6+
- Git submodule の準備
7+
8+
## Workflow
9+
10+
1. `update-origin.sh` を編集する
11+
12+
`aioHash` を最新の angular.io のフッターから取得します。
13+
14+
![image](./docs/aio-origin-hash.png)
15+
16+
```sh
17+
aioHash="4bc0084"
18+
```
19+
20+
2. `update-origin.sh` を実行します
21+
22+
3. 変更をマイグレーションします
23+
24+
25+
## マイグレーション
26+
27+
### Pattern 1. オリジナルからオリジナル
28+
29+
- `foobar.md` (not translated)
30+
- `contributors.json`
31+
- `resouces.json`
32+
- `presskit.html`
33+
34+
翻訳済みファイルが存在しないものは、そのまま適用します。
35+
36+
### Pattern 2. 翻訳済みのオリジナルファイル
37+
38+
- `foobar.en.md`
39+
- `index.en.html`
40+
41+
#### 変更が小さい場合
42+
43+
変更点に再翻訳の必要があれば翻訳済みファイルへ反映します。
44+
45+
#### 変更が大きい場合
46+
47+
1. 未翻訳状態のまま、翻訳済みファイルの該当箇所へオリジナルのテキストをコピーし、日英混在の状態にします。
48+
2. 未翻訳の部分について翻訳を募集するIssueを作成します。
49+
50+
### Pattern 3. aio アプリケーションコード
51+
52+
angular.io のアプリケーションを改変するためにいくつかのファイルが変更されていますが、gitの更新によってその変更が消されてしまいます。
53+
54+
- `navigation.model.ts`
55+
- `nav-item.component.html`
56+
- `doc-viewer.component.ts`
57+
- `githubLinks.html`
58+
59+
これらのファイルについては、必要な変更はそのままにし、それ以外の変更があれば手動でマージします。

aio-ja/content/examples/toh-pt6/src/app/hero.service.en.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export class HeroService {
9797
/** POST: add a new hero to the server */
9898
addHero (hero: Hero): Observable<Hero> {
9999
return this.http.post<Hero>(this.heroesUrl, hero, httpOptions).pipe(
100-
tap((hero: Hero) => this.log(`added hero w/ id=${hero.id}`)),
100+
tap((newHero: Hero) => this.log(`added hero w/ id=${newHero.id}`)),
101101
catchError(this.handleError<Hero>('addHero'))
102102
);
103103
}

aio-ja/content/examples/toh-pt6/src/app/hero.service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export class HeroService {
9797
/** POST: サーバーに新しいヒーローを登録する */
9898
addHero (hero: Hero): Observable<Hero> {
9999
return this.http.post<Hero>(this.heroesUrl, hero, httpOptions).pipe(
100-
tap((hero: Hero) => this.log(`added hero w/ id=${hero.id}`)),
100+
tap((newHero: Hero) => this.log(`added hero w/ id=${newHero.id}`)),
101101
catchError(this.handleError<Hero>('addHero'))
102102
);
103103
}

aio-ja/content/guide/aot-compiler.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1508,7 +1508,7 @@ done manually.
15081508
15091509
When `true`, this option tells the compiler not to check the TypeScript version.
15101510
The compiler will skip checking and will not error out when an unsupported version of TypeScript is used.
1511-
Setting this option to `true` is not recommended because unsupported versions of TypeScript might have undefined behaviour.
1511+
Setting this option to `true` is not recommended because unsupported versions of TypeScript might have undefined behavior.
15121512
15131513
This option is `false` by default.
15141514

aio-ja/content/guide/attribute-directives.en.md

+4
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ when the user hovers over that element. You can apply it like this:
4141

4242
{@a write-directive}
4343

44+
Please note that directives _do not_ support namespaces.
45+
46+
<code-example path="attribute-directives/src/app/app.component.avoid.html" linenums="false" header="src/app/app.component.avoid.html (unsupported)" region="unsupported"></code-example>
47+
4448
### Write the directive code
4549

4650
Create the directive class file in a terminal window with the CLI command [`ng generate directive`](cli/generate).

aio-ja/content/guide/attribute-directives.md

+4
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ Angularには、3つのディレクティブがあります。
3232

3333
{@a write-directive}
3434

35+
ディレクティブは名前空間をサポートしないことに注意してください。
36+
37+
<code-example path="attribute-directives/src/app/app.component.avoid.html" linenums="false" header="src/app/app.component.avoid.html (unsupported)" region="unsupported"></code-example>
38+
3539
### ディレクティブのコードを書く
3640

3741
CLIコマンド [`ng generate directive`](cli/generate) をターミナル画面に入力して、ディレクティブクラスを作成します。

aio-ja/content/guide/browser-support.en.md

+40-1
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,27 @@ Here are the features which may require additional polyfills:
372372

373373
</tr>
374374

375+
<tr style="vertical-align: top">
376+
377+
<td>
378+
379+
[Router](guide/router)
380+
381+
when using [hash-based routing](guide/router#appendix-locationstrategy-and-browser-url-styles)
382+
</td>
383+
384+
<td>
385+
386+
[ES7/array](guide/browser-support#core-es7-array)
387+
388+
</td>
389+
390+
<td>
391+
IE 11
392+
</td>
393+
394+
</tr>
395+
375396
</table>
376397

377398

@@ -402,7 +423,7 @@ Below are the polyfills which are used to test the framework itself. They are a
402423

403424
<td>
404425

405-
<a id='core-es7-reflect' href="https://github.com/zloirock/core-js/blob/master/es7/reflect.js">ES7/reflect</a>
426+
<a id='core-es7-reflect' href="https://github.com/zloirock/core-js/tree/v2/fn/reflect">ES7/reflect</a>
406427

407428
</td>
408429

@@ -416,6 +437,24 @@ Below are the polyfills which are used to test the framework itself. They are a
416437

417438
</tr>
418439

440+
<tr>
441+
442+
<td>
443+
444+
<a id='core-es7-array' href="https://github.com/zloirock/core-js/tree/v2/fn/array">ES7/array</a>
445+
446+
</td>
447+
448+
<td>
449+
MIT
450+
</td>
451+
452+
<td>
453+
0.1KB
454+
</td>
455+
456+
</tr>
457+
419458
<tr>
420459

421460
<td>

aio-ja/content/guide/browser-support.md

+40-1
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,27 @@ Angularのいくつかの機能では追加のポリフィルが必要になる
370370

371371
</tr>
372372

373+
<tr style="vertical-align: top">
374+
375+
<td>
376+
377+
[Router](guide/router)
378+
379+
when using [hash-based routing](guide/router#appendix-locationstrategy-and-browser-url-styles)
380+
</td>
381+
382+
<td>
383+
384+
[ES7/array](guide/browser-support#core-es7-array)
385+
386+
</td>
387+
388+
<td>
389+
IE 11
390+
</td>
391+
392+
</tr>
393+
373394
</table>
374395

375396

@@ -400,7 +421,7 @@ Angularのいくつかの機能では追加のポリフィルが必要になる
400421

401422
<td>
402423

403-
<a id='core-es7-reflect' href="https://github.com/zloirock/core-js/blob/master/es7/reflect.js">ES7/reflect</a>
424+
<a id='core-es7-reflect' href="https://github.com/zloirock/core-js/tree/v2/fn/reflect">ES7/reflect</a>
404425

405426
</td>
406427

@@ -414,6 +435,24 @@ Angularのいくつかの機能では追加のポリフィルが必要になる
414435

415436
</tr>
416437

438+
<tr>
439+
440+
<td>
441+
442+
<a id='core-es7-array' href="https://github.com/zloirock/core-js/tree/v2/fn/array">ES7/array</a>
443+
444+
</td>
445+
446+
<td>
447+
MIT
448+
</td>
449+
450+
<td>
451+
0.1KB
452+
</td>
453+
454+
</tr>
455+
417456
<tr>
418457

419458
<td>

aio-ja/content/guide/build.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -273,8 +273,8 @@ The CLI uses [Autoprefixer](https://github.com/postcss/autoprefixer) to ensure c
273273
You may find it necessary to target specific browsers or exclude certain browser versions from your build.
274274

275275
Internally, Autoprefixer relies on a library called [Browserslist](https://github.com/browserslist/browserslist) to figure out which browsers to support with prefixing.
276-
Browserlist looks for configuration options in a `browserlist` property of the package configuration file, or in a configuration file named `.browserslistrc`.
277-
Autoprefixer looks for the Browserlist configuration when it prefixes your CSS.
276+
Browserlist looks for configuration options in a `browserslist` property of the package configuration file, or in a configuration file named `.browserslistrc`.
277+
Autoprefixer looks for the `browserslist` configuration when it prefixes your CSS.
278278

279279
* You can tell Autoprefixer what browsers to target by adding a browserslist property to the package configuration file, `package.json`:
280280
```

0 commit comments

Comments
 (0)