Skip to content

Commit 80f8949

Browse files
committed
日付比較のクエリ追加のため緊急翻訳。
1 parent f2e4926 commit 80f8949

File tree

8 files changed

+115
-17
lines changed

8 files changed

+115
-17
lines changed

original-en/filesystem.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ Next, you may include the `read-only` configuration option in one or more of you
203203
<a name="amazon-s3-compatible-filesystems"></a>
204204
### Amazon S3 Compatible Filesystems
205205

206-
By default, your application's `filesystems` configuration file contains a disk configuration for the `s3` disk. In addition to using this disk to interact with [Amazon S3](https://aws.amazon.com/s3/), you may use it to interact with any S3-compatible file storage service such as [MinIO](https://github.com/minio/minio), [DigitalOcean Spaces](https://www.digitalocean.com/products/spaces/), [Akamai / Linode Object Storage](https://www.linode.com/products/object-storage/), [Vultr Object Storage](https://www.vultr.com/products/object-storage/), or [Hetzner Cloud Storage](https://www.hetzner.com/storage/object-storage/).
206+
By default, your application's `filesystems` configuration file contains a disk configuration for the `s3` disk. In addition to using this disk to interact with [Amazon S3](https://aws.amazon.com/s3/), you may use it to interact with any S3-compatible file storage service such as [MinIO](https://github.com/minio/minio), [DigitalOcean Spaces](https://www.digitalocean.com/products/spaces/), [Vultr Object Storage](https://www.vultr.com/products/object-storage/), [Cloudflare R2](https://www.cloudflare.com/developer-platform/products/r2/), or [Hetzner Cloud Storage](https://www.hetzner.com/storage/object-storage/).
207207

208208
Typically, after updating the disk's credentials to match the credentials of the service you are planning to use, you only need to update the value of the `endpoint` configuration option. This option's value is typically defined via the `AWS_ENDPOINT` environment variable:
209209

original-en/precognition.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -152,12 +152,13 @@ If you are validating a subset of a form's inputs with Precognition, it can be u
152152

153153
As we have seen, you can hook into an input's `change` event and validate individual inputs as the user interacts with them; however, you may need to validate inputs that the user has not yet interacted with. This is common when building a "wizard", where you want to validate all visible inputs, whether the user has interacted with them or not, before moving to the next step.
154154

155-
To do this with Precognition, you should mark the fields you wish to validate as "touched" by passing their names to the `touch` method. Then, call the `validate` method with `onSuccess` or `onValidationError` callbacks:
155+
To do this with Precognition, you should call the `validate` method passing the field names you wish to validate to the `only` configuration key. You may handle the validation result with `onSuccess` or `onValidationError` callbacks:
156156

157157
```html
158158
<button
159159
type="button"
160-
@click="form.touch(['name', 'email', 'phone']).validate({
160+
@click="form.validate({
161+
only: ['name', 'email', 'phone'],
161162
onSuccess: (response) => nextStep(),
162163
onValidationError: (response) => /* ... */,
163164
})"
@@ -338,12 +339,13 @@ If you are validating a subset of a form's inputs with Precognition, it can be u
338339

339340
As we have seen, you can hook into an input's `blur` event and validate individual inputs as the user interacts with them; however, you may need to validate inputs that the user has not yet interacted with. This is common when building a "wizard", where you want to validate all visible inputs, whether the user has interacted with them or not, before moving to the next step.
340341

341-
To do this with Precognition, you should mark the fields you wish to validate as "touched" by passing their names to the `touch` method. Then, call the `validate` method with `onSuccess` or `onValidationError` callbacks:
342+
To do this with Precognition, you should call the `validate` method passing the field names you wish to validate to the `only` configuration key. You may handle the validation result with `onSuccess` or `onValidationError` callbacks:
342343

343344
```jsx
344345
<button
345346
type="button"
346-
onClick={() => form.touch(['name', 'email', 'phone']).validate({
347+
onClick={() => form.validate({
348+
only: ['name', 'email', 'phone'],
347349
onSuccess: (response) => nextStep(),
348350
onValidationError: (response) => /* ... */,
349351
})}
@@ -531,12 +533,13 @@ You may also determine if an input has passed or failed validation by passing th
531533
532534
As we have seen, you can hook into an input's `change` event and validate individual inputs as the user interacts with them; however, you may need to validate inputs that the user has not yet interacted with. This is common when building a "wizard", where you want to validate all visible inputs, whether the user has interacted with them or not, before moving to the next step.
533535

534-
To do this with Precognition, you should mark the fields you wish to validate as "touched" by passing their names to the `touch` method. Then, call the `validate` method with `onSuccess` or `onValidationError` callbacks:
536+
To do this with Precognition, you should call the `validate` method passing the field names you wish to validate to the `only` configuration key. You may handle the validation result with `onSuccess` or `onValidationError` callbacks:
535537

536538
```html
537539
<button
538540
type="button"
539-
@change="form.touch(['name', 'email', 'phone']).validate({
541+
@click="form.validate({
542+
only: ['name', 'email', 'phone'],
540543
onSuccess: (response) => nextStep(),
541544
onValidationError: (response) => /* ... */,
542545
})"

original-en/queries.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -775,6 +775,52 @@ The `whereTime` method may be used to compare a column's value against a specifi
775775
->whereTime('created_at', '=', '11:20:45')
776776
->get();
777777

778+
**wherePast / whereFuture / whereToday / whereBeforeToday / whereAfterToday**
779+
780+
The `wherePast` and `whereFuture` methods may be used to determine if a column's value is in the past or future:
781+
782+
$invoices = DB::table('invoices')
783+
->wherePast('due_at')
784+
->get();
785+
786+
$invoices = DB::table('invoices')
787+
->whereFuture('due_at')
788+
->get();
789+
790+
The `whereNowOrPast` and `whereNowOrFuture` methods may be used to determine if a column's value is in the past or future, inclusive of the current date and time:
791+
792+
$invoices = DB::table('invoices')
793+
->whereNowOrPast('due_at')
794+
->get();
795+
796+
$invoices = DB::table('invoices')
797+
->whereNowOrFuture('due_at')
798+
->get();
799+
800+
The `whereToday`, `whereBeforeToday`, and `whereAfterToday` methods may be used to determine if a column's value is today, before today, or after today, respectively:
801+
802+
$invoices = DB::table('invoices')
803+
->whereToday('due_at')
804+
->get();
805+
806+
$invoices = DB::table('invoices')
807+
->whereBeforeToday('due_at')
808+
->get();
809+
810+
$invoices = DB::table('invoices')
811+
->whereAfterToday('due_at')
812+
->get();
813+
814+
Similarly, the `whereTodayOrBefore` and `whereTodayOrAfter` methods may be used to determine if a column's value is before today or after today, inclusive of today's date:
815+
816+
$invoices = DB::table('invoices')
817+
->whereTodayOrBefore('due_at')
818+
->get();
819+
820+
$invoices = DB::table('invoices')
821+
->whereTodayOrAfter('due_at')
822+
->get();
823+
778824
**whereColumn / orWhereColumn**
779825

780826
The `whereColumn` method may be used to verify that two columns are equal:

original-en/releases.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ For all Laravel releases, bug fixes are provided for 18 months and security fixe
2828
| 9 | 8.0 - 8.2 | February 8th, 2022 | August 8th, 2023 | February 6th, 2024 |
2929
| 10 | 8.1 - 8.3 | February 14th, 2023 | August 6th, 2024 | February 4th, 2025 |
3030
| 11 | 8.2 - 8.4 | March 12th, 2024 | September 3rd, 2025 | March 12th, 2026 |
31-
| 12 | 8.2 - 8.4 | Q1 2025 | Q3 2026 | Q1 2027 |
31+
| 12 | 8.2 - 8.4 | February 24th, 2025 | August 13th, 2026 | February 24th, 2027 |
3232

3333
</div>
3434

translation-ja/filesystem.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ composer require league/flysystem-read-only "^3.0"
203203
<a name="amazon-s3-compatible-filesystems"></a>
204204
### Amazon S3互換ファイルシステム
205205

206-
アプリケーションの`filesystems`設定ファイルには、デフォルトで`s3`のディスク設定がしてあります。このディスクを使用して[Amazon S3](https://aws.amazon.com/s3/)を操作するだけでなく、[MinIO](https://github.com/minio/minio)[DigitalOcean Spaces](https://www.digitalocean.com/products/spaces/)[Akamai/Linode Object Storage](https://www.linode.com/products/object-storage/)[Vultr Object Storage](https://www.vultr.com/products/object-storage/)[Hetzner Cloud Storage](https://www.hetzner.com/storage/object-storage/)など、S3互換のファイルストレージサービスを操作することもできます。
206+
アプリケーションの`filesystems`設定ファイルには、デフォルトで`s3`のディスク設定がしてあります。このディスクを使用して[Amazon S3](https://aws.amazon.com/s3/)を操作するだけでなく、[MinIO](https://github.com/minio/minio)[DigitalOcean Spaces](https://www.digitalocean.com/products/spaces/)[Vultr Object Storage](https://www.vultr.com/products/object-storage/)[Cloudflare R2](https://www.cloudflare.com/developer-platform/products/r2/)[Hetzner Cloud Storage](https://www.hetzner.com/storage/object-storage/)など、S3互換のファイルストレージサービスを操作することもできます。
207207

208208
通常、ディスクの認証情報を使用予定のサービス認証情報へ合わせて更新した後に、`endpoint`設定オプションの値を更新するだけで済みます。このオプションの値は通常、`AWS_ENDPOINT`環境変数で定義されています。
209209

translation-ja/precognition.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -152,12 +152,13 @@ Precognitionでフォームの入力のサブセットをバリデートして
152152

153153
これまで見てきたように、入力の`change`イベントをフックし、ユーザーが入力した内容を検証できます。これは「ウィザード」を作成するときによくあり、次のステップに進む前に、ユーザーが入力操作をしたかにかかわらず、目に見えるすべての入力を検証したい場合などです。
154154

155-
Precognitionでこれを行うには、検証したいフィールドの名前を`touch`メソッドへ渡し、「変更済み(touched)」とマークします。それから`onSuccess``onValidationError`コールバックで`validate`メソッドを呼び出てください
155+
Precognitionでこれを行うには、`only`設定キーへ検証したいフィールド名を渡し、`validate`メソッドを呼び出します。バリデーション結果は`onSuccess``onValidationError`コールバックで処理してください
156156

157157
```html
158158
<button
159159
type="button"
160-
@click="form.touch(['name', 'email', 'phone']).validate({
160+
@click="form.validate({
161+
only: ['name', 'email', 'phone'],
161162
onSuccess: (response) => nextStep(),
162163
onValidationError: (response) => /* ... */,
163164
})"
@@ -338,12 +339,13 @@ Precognitionでフォームの入力のサブセットをバリデートして
338339

339340
これまで見てきたように、入力の`blur`イベントをフックして、ユーザーが入力を操作したときに個々の入力を検証できます。これは「ウィザード」を作成するときによくあり、次のステップに進む前に、ユーザーが入力操作したかにかかわらず、目に見えるすべての入力を検証したい場合などです。
340341

341-
Precognitionでこれを行うには、検証したいフィールドの名前を`touch`メソッドへ渡し、「変更済み(touched)」とマークします。それから`onSuccess``onValidationError`コールバックで`validate`メソッドを呼び出てください
342+
Precognitionでこれを行うには、`only`設定キーへ検証したいフィールド名を渡し、`validate`メソッドを呼び出します。バリデーション結果は`onSuccess``onValidationError`コールバックで処理してください
342343

343344
```jsx
344345
<button
345346
type="button"
346-
onClick={() => form.touch(['name', 'email', 'phone']).validate({
347+
onClick={() => form.validate({
348+
only: ['name', 'email', 'phone'],
347349
onSuccess: (response) => nextStep(),
348350
onValidationError: (response) => /* ... */,
349351
})}
@@ -531,12 +533,13 @@ form.setValidationTimeout(3000);
531533
532534
これまで見てきたように、入力の`change`イベントをフックし、ユーザーが入力した内容を検証できます。これは「ウィザード」を作成するときによくあり、次のステップに進む前に、ユーザーが入力操作をしたかにかかわらず、目に見えるすべての入力を検証したい場合などです。
533535

534-
Precognitionでこれを行うには、検証したいフィールドの名前を`touch`メソッドへ渡し、「変更済み(touched)」とマークします。それから`onSuccess``onValidationError`コールバックで`validate`メソッドを呼び出てください
536+
Precognitionでこれを行うには、`only`設定キーへ検証したいフィールド名を渡し、`validate`メソッドを呼び出します。バリデーション結果は`onSuccess``onValidationError`コールバックで処理してください
535537

536538
```html
537539
<button
538540
type="button"
539-
@change="form.touch(['name', 'email', 'phone']).validate({
541+
@click="form.validate({
542+
only: ['name', 'email', 'phone'],
540543
onSuccess: (response) => nextStep(),
541544
onValidationError: (response) => /* ... */,
542545
})"

translation-ja/queries.md

Lines changed: 47 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,7 @@ select * from comments where user_id in (
743743
->whereNotNull('updated_at')
744744
->get();
745745

746-
**whereDate / whereMonth / whereDay / whereYear / whereTime**
746+
**whereDatewhereMonthwhereDaywhereYearwhereTime**
747747

748748
`whereDate`メソッドを使用して、カラム値を日付と比較できます。
749749

@@ -775,6 +775,52 @@ select * from comments where user_id in (
775775
->whereTime('created_at', '=', '11:20:45')
776776
->get();
777777

778+
**wherePast/whereFuture/whereToday/whereBeforeToday/whereAfterToday**
779+
780+
`wherePast``whereFuture`メソッドは、カラムの値が過去か未来かを判定するために使用します。
781+
782+
$invoices = DB::table('invoices')
783+
->wherePast('due_at')
784+
->get();
785+
786+
$invoices = DB::table('invoices')
787+
->whereFuture('due_at')
788+
->get();
789+
790+
`whereNowOrPast``whereNowOrFuture`メソッドは、現在の日時を含め、カラムの値が過去か未来かを判定するため使用します。
791+
792+
$invoices = DB::table('invoices')
793+
->whereNowOrPast('due_at')
794+
->get();
795+
796+
$invoices = DB::table('invoices')
797+
->whereNowOrFuture('due_at')
798+
->get();
799+
800+
`whereToday``whereBeforeToday``whereAfterToday`メソッドは、それぞれカラムの値が今日であるか、昨日以前か、明日以降かを判定するために使用します。
801+
802+
$invoices = DB::table('invoices')
803+
->whereToday('due_at')
804+
->get();
805+
806+
$invoices = DB::table('invoices')
807+
->whereBeforeToday('due_at')
808+
->get();
809+
810+
$invoices = DB::table('invoices')
811+
->whereAfterToday('due_at')
812+
->get();
813+
814+
同様に、`whereTodayOrBefore``whereTodayOrAfter`メソッドはカラムの値が今日以前か今日以降かを判断するために使用します。
815+
816+
$invoices = DB::table('invoices')
817+
->whereTodayOrBefore('due_at')
818+
->get();
819+
820+
$invoices = DB::table('invoices')
821+
->whereTodayOrAfter('due_at')
822+
->get();
823+
778824
**whereColumn/orWhereColumn**
779825

780826
`whereColumn`メソッドは、2つのカラムが等しい条件を加えます。

translation-ja/releases.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Laravelのすべてのリリースは、バグフィックスは18ヶ月、
2828
| 9 | 8.0 - 8.2 | 2022年2月8日 | 2023年8月8日 | 2024年2月6日 |
2929
| 10 | 8.1 - 8.3 | 2023年2月14日 | 2024年8月6日 | 2025年2月4日 |
3030
| 11 | 8.2 - 8.4 | 2024年3月12日 | 2025年9月3日 | 2026年3月12日 |
31-
| 12 | 8.2 - 8.4 | 2025年第1四半期 | 2026年第3四半期 | 2027年第1四半期 |
31+
| 12 | 8.2 - 8.4 | 2025年2月24日 | 2026年8月13日 | 2027年2月4日 |
3232

3333
</div>
3434

0 commit comments

Comments
 (0)