Skip to content

Conversation

@darkss-xyzzy
Copy link
Contributor

翻訳・修正

  • 変更内容はCONTRIBUTING.md に記載されたワークフローに従っています

関連Issue

#754

備考

用語の揺らぎがないかを確認していただけますと助かります。
また、pipes-transform-data.mdの14行目、27行目、29行目は翻訳するのに少し悩んだ箇所ですので、
重点的に見ていただけますと助かります。

Copy link
Collaborator

@lacolaco lacolaco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

翻訳ありがとうございます!コメントした部分の修正をお願いします 🙇

The component's `birthday` value flows through the pipe operator (`|`) to the [`DatePipe`](api/common/DatePipe) whose pipe name is `date`.
The pipe renders the date in the default format as **Apr 15, 1988**.
`birthday`の値はパイプ演算子(`|`)を通じてnameが`date`[`DatePipe`](api/common/DatePipe)に流れます。
パイプはdateをデフォルトフォーマットの**Apr 15, 1988**に変換します。
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
パイプはdateをデフォルトフォーマットの**Apr 15, 1988**に変換します。
パイプは日付をデフォルトフォーマットの**Apr 15, 1988**に変換します。

<code-example header="birthday.component.ts (class)" path="pipes/src/app/birthday.component.ts"></code-example>

Because this is a [standalone component](guide/standalone-components), it imports the `DatePipe` from `@angular/common`, the source of all built-in pipes.
これは[スタンドアロンコンポーネント](guide/standalone-components)のため、すべての組み込みパイプの源である`@angular/common`から`DatePipe`をインポートします。
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
これは[スタンドアロンコンポーネント](guide/standalone-components)のため、すべての組み込みパイプの源である`@angular/common`から`DatePipe`をインポートします。
これは[スタンドアロンコンポーネント](guide/standalone-components)であるため、すべての組み込みパイプの源である`@angular/common`から`DatePipe`をインポートします。

2つ目の式では誕生日を_コンポーネントのプロパティーにバインドされた_日付フォーマットパラメーター(`format`)を用いてDatePipeに渡しています。

Clicking the "Toggle" button switches that property value between two of the [many possible pre-defined formats](api/common/DatePipe#pre-defined-format-options), `'mediumDate'` and `'fullDate'`. The output is either **April 15, 1988** or **Friday, April 15, 1988**.
"Toggle"ボタンをクリックすることで[沢山の事前に定義されたフォーマット](api/common/DatePipe#pre-defined-format-options)のうち2つである`'mediumDate'``'fullDate'`を切り替えることができます。出力は**April 15, 1988****Friday, April 15, 1988**です。
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"Toggle"ボタンをクリックすることで[沢山の事前に定義されたフォーマット](api/common/DatePipe#pre-defined-format-options)のうち2つである`'mediumDate'``'fullDate'`を切り替えることができます。出力は**April 15, 1988****Friday, April 15, 1988**です。
"Toggle"ボタンをクリックすることで[たくさんの事前に定義されたフォーマット](api/common/DatePipe#pre-defined-format-options)のうち2つである`'mediumDate'``'fullDate'`を切り替えることができます。出力は**April 15, 1988****Friday, April 15, 1988**です。

ページは指定されたフォーマットで誕生日を表示します。

## Example: Chaining two pipes together
## 例: 2つのパイプを一緒に変更
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ChangingではなくChainingですね

Suggested change
## 例: 2つのパイプを一緒に変更
## 例: 2つのパイプを連結する

</code-tabs>

Switch to the class file to see that this is a [standalone component](guide/standalone-components); it imports the two pipes from `@angular/common`, the source of all built-in pipes.
これが[スタンドアロンコポーネント](guide/standalone-components)であることを確認するためにクラスファイルに切り替えてください。すべての組み込みパイプの源である`@angular/common`から2つのパイプをインポートしています。
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
これが[スタンドアロンコポーネント](guide/standalone-components)であることを確認するためにクラスファイルに切り替えてください。すべての組み込みパイプの源である`@angular/common`から2つのパイプをインポートしています。
これが[スタンドアロンコンポーネント](guide/standalone-components)であることを確認するためにクラスファイルに切り替えてください。すべての組み込みパイプの源である`@angular/common`から2つのパイプをインポートしています。

</code-tabs>

In the template, the first expression passes the birthdate to the `DatePipe` _with a literal_ date format parameter, "shortDate". The output is **04/15/88**.
テンプレートでは、最初の表現では誕生日を_リテラルな_日付フォーマットのパラメーターである"shortDate"を用いて`DatePipe`に渡しています。出力は**04/15/88**です。
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ここは "shortDate" が文字列リテラルであることを言っていますね。

Suggested change
テンプレートでは、最初の表現では誕生日を_リテラルな_日付フォーマットのパラメーターである"shortDate"を用いて`DatePipe`に渡しています。出力は**04/15/88**です。
テンプレートでは、最初の表現では_リテラルの_日付フォーマットのパラメーターである"shortDate"を用いて誕生日を`DatePipe`に渡しています。出力は**04/15/88**です。

@darkss-xyzzy
Copy link
Contributor Author

お待たせしました。
コメントを参照し、修正を行いました。
また、pipes-transform-data.mdの27行目の「表現」ですが、
expressionの和訳「式」に対する揺らぎとなりますので、
「式」に修正しました。

Copy link
Collaborator

@lacolaco lacolaco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ありがとうございます!マージさせていただきます

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants