Skip to content

Commit 29861e9

Browse files
committed
フロントエンドまで翻訳。
1 parent 0a622ec commit 29861e9

File tree

7 files changed

+31
-31
lines changed

7 files changed

+31
-31
lines changed

translation-ja/facades.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ use Illuminate\View\View;
165165
class UserController extends Controller
166166
{
167167
/**
168-
* Show the profile for the given user.
168+
* 指定ユーザーのプロファイル表示
169169
*/
170170
public function showProfile(string $id): View
171171
{
@@ -184,7 +184,7 @@ class UserController extends Controller
184184
class Cache extends Facade
185185
{
186186
/**
187-
* Get the registered name of the component.
187+
* コンポーネントの登録済み名を取得
188188
*/
189189
protected static function getFacadeAccessor(): string
190190
{
@@ -211,7 +211,7 @@ use Illuminate\Database\Eloquent\Model;
211211
class Podcast extends Model
212212
{
213213
/**
214-
* Publish the podcast.
214+
* ポッドキャストを公開
215215
*/
216216
public function publish(Publisher $publisher): void
217217
{
@@ -236,7 +236,7 @@ use Illuminate\Database\Eloquent\Model;
236236
class Podcast extends Model
237237
{
238238
/**
239-
* Publish the podcast.
239+
* ポッドキャストを公開
240240
*/
241241
public function publish(Publisher $publisher): void // [tl! remove]
242242
public function publish(): void // [tl! add]
@@ -284,7 +284,7 @@ class PodcastTest extends TestCase
284284
use RefreshDatabase;
285285

286286
/**
287-
* A test example.
287+
* テスト例
288288
*/
289289
public function test_podcast_can_be_published(): void
290290
{

translation-ja/filesystem.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ LaravelのFlysystemの統合は、FTPでもうまく動作しますが、フレ
127127
'username' => env('FTP_USERNAME'),
128128
'password' => env('FTP_PASSWORD'),
129129

130-
// Optional FTP Settings...
130+
// FTPのオプション設定
131131
// 'port' => env('FTP_PORT', 21),
132132
// 'root' => env('FTP_ROOT'),
133133
// 'passive' => true,
@@ -152,19 +152,19 @@ LaravelのFlysystemの統合は、SFTPでもうまく動作しますが、フレ
152152
'driver' => 'sftp',
153153
'host' => env('SFTP_HOST'),
154154

155-
// Settings for basic authentication...
155+
// 基本認証の設定
156156
'username' => env('SFTP_USERNAME'),
157157
'password' => env('SFTP_PASSWORD'),
158158

159-
// Settings for SSH key based authentication with encryption password...
159+
// 暗号化パスワードを使用したSSHキーベースの認証の設定
160160
'privateKey' => env('SFTP_PRIVATE_KEY'),
161161
'passphrase' => env('SFTP_PASSPHRASE'),
162162

163-
// Settings for file / directory permissions...
163+
// ファイル/ディレクトリのパーミッション設定
164164
'visibility' => 'private', // `private` = 0600, `public` = 0644
165165
'directory_visibility' => 'private', // `private` = 0700, `public` = 0755
166166

167-
// Optional SFTP Settings...
167+
// SFTPのオプション設定
168168
// 'hostFingerprint' => env('SFTP_HOST_FINGERPRINT'),
169169
// 'maxTries' => 4,
170170
// 'passphrase' => env('SFTP_PASSPHRASE'),
@@ -489,7 +489,7 @@ Storage::put('file.jpg', $resource);
489489

490490
```php
491491
if (! Storage::put('file.jpg', $contents)) {
492-
// The file could not be written to disk...
492+
// このファイルはディスクへ書き込み不可
493493
}
494494
```
495495

@@ -534,10 +534,10 @@ Storage::move('old/file.jpg', 'new/file.jpg');
534534
use Illuminate\Http\File;
535535
use Illuminate\Support\Facades\Storage;
536536

537-
// Automatically generate a unique ID for filename...
537+
// ファイル名に対して一意なIDを自動的に生成
538538
$path = Storage::putFile('photos', new File('/path/to/photo'));
539539

540-
// Manually specify a filename...
540+
// ファイル名を手作業で指定
541541
$path = Storage::putFileAs('photos', new File('/path/to/photo'), 'photo.jpg');
542542
```
543543

@@ -565,7 +565,7 @@ use Illuminate\Http\Request;
565565
class UserAvatarController extends Controller
566566
{
567567
/**
568-
* Update the avatar for the user.
568+
* ユーザーのアバター更新
569569
*/
570570
public function update(Request $request): string
571571
{

translation-ja/fortify.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ Fortifyは独自のユーザーインターフェイスを提供しません。
4141

4242
**Laravelの認証機能を使用するために、Fortifyを使う必要はありません。** [認証](/docs/{{version}}/authentication)[パスワードリセット](/docs/{{version}}/passwords)、および[メール検証](/docs/{{version}}/verification)のドキュメントにしたがい、Laravelの認証サービスをいつでも自前で操作できます。
4343

44-
If you are new to Laravel, you may wish to explore [our application starter kits](/docs/{{version}}/starter-kits) before attempting to use Laravel Fortify. Our starter kits provide an authentication scaffolding for your application that includes a user interface built with [Tailwind CSS](https://tailwindcss.com). This allows you to study and get comfortable with Laravel's authentication features before allowing Laravel Fortify to implement these features for you.
44+
Laravelが初めての方は、Laravel Fortifyを使用する前に、[アプリケーションスターターキット](/docs/{{version}}/starter-kits)を調べると良いでしょう。私たちのスターターキットは、[Tailwind CSS](https://tailwindcss.com)で構築されたユーザーインターフェイスを含む、アプリケーションの認証のスカフォールドを提供します。これにより、Laravel Fortifyにこれらの機能を実装させる前に、Laravelの認証機能を勉強し、使いこなせるようになります。
4545

46-
Laravel Fortify essentially takes the routes and controllers of our application starter kits and offers them as a package that does not include a user interface. This allows you to still quickly scaffold the backend implementation of your application's authentication layer without being tied to any particular frontend opinions.
46+
Laravel Fortifyは、基本的にアプリケーションスターターキットのルートとコントローラを利用し、ユーザーインターフェイスを含まないパッケージとして提供します。これにより、特定のフロントエンドの考え方に縛られることなく、アプリケーションの認証レイヤーのバックエンド実装を素早くスカフォールドできます。
4747

4848
<a name="when-should-i-use-fortify"></a>
4949
### いつFortifyを使用すべきか?
@@ -91,7 +91,7 @@ php artisan migrate
9191
<a name="fortify-features"></a>
9292
### Fortifyの機能
9393

94-
The `fortify` configuration file contains a `features` configuration array. This array defines which backend routes / features Fortify will expose by default. We recommend that you only enable the following features, which are the basic authentication features provided by most Laravel applications:
94+
`fortify`設定ファイルは、`features`設定配列を含んでいます。この配列は、Fortifyがデフォルトで公開するバックエンドルート/機能を定義します。ほとんどのLaravelアプリケーションで提供されている基本的な認証機能である、以下の機能のみを有効にすることをお勧めします。
9595

9696
```php
9797
'features' => [

translation-ja/frontend.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
- [PHPとBlade](#php-and-blade)
66
- [Livewire](#livewire)
77
- [スターターキット](#php-starter-kits)
8-
- [Using React or Vue](#using-react-or-vue)
8+
- [ReactかVueの使用](#using-react-or-vue)
99
- [Inertia](#inertia)
1010
- [スターターキット](#inertia-starter-kits)
1111
- [アセットの結合](#bundling-assets)
@@ -102,21 +102,21 @@ Laravelに慣れていない方は、[ビュー](/docs/{{version}}/views)と[Bla
102102
<a name="php-starter-kits"></a>
103103
### スターターキット
104104

105-
If you would like to build your frontend using PHP and Livewire, you can leverage our [Livewire starter kit](/docs/{{version}}/starter-kits) to jump-start your application's development.
105+
PHPとLivewireを使い、フロントエンドを構築したい場合は、[Livewireスターターキット](/docs/{{version}}/starter-kits)を活用して、アプリケーションの開発をジャンプスタートできます。
106106

107107
<a name="using-react-or-vue"></a>
108-
## Using React or Vue
108+
## ReactかVueの使用
109109

110-
Although it's possible to build modern frontends using Laravel and Livewire, many developers still prefer to leverage the power of a JavaScript framework like React or Vue. This allows developers to take advantage of the rich ecosystem of JavaScript packages and tools available via NPM.
110+
LaravelやLivewireを使用してモダンなフロントエンドを構築することは可能ですが、多くの開発者はReactやVueのようなJavaScriptフレームワークのパワーを活用することを好みます。これにより、開発者はNPMを使い、JavaScriptパッケージやツールなど豊富にある利用可能なエコシステムを活用できます。
111111

112-
However, without additional tooling, pairing Laravel with React or Vue would leave us needing to solve a variety of complicated problems such as client-side routing, data hydration, and authentication. Client-side routing is often simplified by using opinionated React / Vue frameworks such as [Next](https://nextjs.org/) and [Nuxt](https://nuxt.com/); however, data hydration and authentication remain complicated and cumbersome problems to solve when pairing a backend framework like Laravel with these frontend frameworks.
112+
しかし、追加のツール無しにLaravelとReactやVueを組み合わせるには、クライアントサイドのルーティング、データハイドレーション、認証など多種にわたる複雑な問題を解決する必要が起こります。クライアントサイドのルーティングは、[Next](https://nextjs.org/)[Nuxt](https://nuxt.com/)のようなReact/Vueフレームワークのオピニオンを使用することで簡略化されることが多いです。しかし、データハイドレーションと認証は、Laravelのようなバックエンドフレームワークとこれらのフロントエンドフレームワークをペアリングする際に解決しなければならない複雑で面倒な問題のままです。
113113

114114
さらに、開発者は2つの別々のコードリポジトリを管理することになり、しばしばメンテナンス、リリース、デプロイメントを両方のリポジトリにまたがって調整する必要が起きます。こうした問題は克服できないものではありませんが、アプリケーションを開発する上で、生産的で楽しい方法とは思えません。
115115

116116
<a name="inertia"></a>
117117
### Inertia
118118

119-
Thankfully, Laravel offers the best of both worlds. [Inertia](https://inertiajs.com) bridges the gap between your Laravel application and your modern React or Vue frontend, allowing you to build full-fledged, modern frontends using React or Vue while leveraging Laravel routes and controllers for routing, data hydration, and authentication — all within a single code repository. With this approach, you can enjoy the full power of both Laravel and React / Vue without crippling the capabilities of either tool.
119+
幸運なことに、Laravelは両方の世界のベストを提供しています。[Inertia](https://inertiajs.com)は、LaravelアプリケーションとモダンなReactやVueフロントエンドの橋渡しをします。ReactやVueを使って本格的なモダンフロントエンドを構築しながら、ルーティング、データハイドレーション、認証のためにLaravelのルートとコントローラを活用することができます。このアプローチでは、LaravelとReact/Vueの両方のフルパワーを、どちらのツールの機能も損なうことなく利用できます。
120120

121121
LaravelアプリケーションにInertiaをインストールしたあとで、通常通りにルートとコントローラを記述します。しかし、コントローラからBladeテンプレートを返すのではなく、Inertiaページを返すようにします。
122122

@@ -144,7 +144,7 @@ class UserController extends Controller
144144
}
145145
```
146146

147-
An Inertia page corresponds to a React or Vue component, typically stored within the `resources/js/pages` directory of your application. The data given to the page via the `Inertia::render` method will be used to hydrate the "props" of the page component:
147+
Inertiaページは ReactまたはVueコンポーネントに対応し、通常はアプリケーションの`resources/js/pages`ディレクトリへ格納します。`Inertia::render`メソッドを通してページへ与えたデータは、ページコンポーネントの"props"をハイドレートするため使用されます:
148148

149149
```jsx
150150
import Layout from '@/layouts/authenticated';
@@ -161,16 +161,16 @@ export default function Show({ user }) {
161161
}
162162
```
163163

164-
As you can see, Inertia allows you to leverage the full power of React or Vue when building your frontend, while providing a light-weight bridge between your Laravel powered backend and your JavaScript powered frontend.
164+
ご覧のようにInertiaは、フロントエンドを構築する際にReactやVueのフルパワーを活用でき、同時にLaravelを使用したバックエンドとJavaScriptを使用したフロントエンドの間に軽量なブリッジを提供します。
165165

166166
#### サーバサイドレンダ
167167

168-
If you're concerned about diving into Inertia because your application requires server-side rendering, don't worry. Inertia offers [server-side rendering support](https://inertiajs.com/server-side-rendering). And, when deploying your application via [Laravel Cloud](https://cloud.laravel.com) or [Laravel Forge](https://forge.laravel.com), it's a breeze to ensure that Inertia's server-side rendering process is always running.
168+
アプリケーションにサーバサイドレンダが必要なため、Inertiaへ飛び込むことに不安を感じている方も安心してください。Inertiaは[サーバサイドレンダサポート](https://inertiajs.com/server-side-rendering)を提供しています。さらに、アプリケーションを[Laravel Cloud](https://cloud.laravel.com)または[Laravel Forge](https://forge.laravel.com)経由でデプロイする場合、Inertiaのサーバサイドレンダリングプロセスが常に実行されていることを確認するのは簡単です。
169169

170170
<a name="inertia-starter-kits"></a>
171171
### スターターキット
172172

173-
If you would like to build your frontend using Inertia and Vue / React, you can leverage our [React or Vue application starter kits](/docs/{{version}}/starter-kits) to jump-start your application's development. Both of these starter kits scaffold your application's backend and frontend authentication flow using Inertia, Vue / React, [Tailwind](https://tailwindcss.com), and [Vite](https://vitejs.dev) so that you can start building your next big idea.
173+
InertiaとVue/Reactを使用してフロントエンドを構築したい場合は、[ReactまたはVueアプリケーション・スターターキット](/docs/{{version}}/starter-kits)を活用してアプリケーションの開発をジャンプスタートできます。どちらのスターターキットも、InertiaVueReact[Tailwind](https://tailwindcss.com)[Vite](https://vitejs.dev)を使用して、アプリケーションのバックエンドとフロントエンドの認証フローをスカフォールドしており、次の大きなアイデアを作り始めることができます。
174174

175175
<a name="bundling-assets"></a>
176176
## アセットの結合
@@ -179,7 +179,7 @@ BladeとLivewire、Vue/ReactとInertiaのどちらを使用してフロント
179179

180180
Laravelは、デフォルトで[Vite](https://vitejs.dev)を利用してアセットをバンドルします。Viteは、ローカル開発において、ビルドが非常に速く、ほぼ瞬時のホットモジュール交換(HMR)を提供しています。[スターターキット](/docs/{{version}}/starter-kits)を含むすべての新しいLaravelアプリケーションでは、`vite.config.js`ファイルがあり、軽量なLaravel Viteプラグインがロードされ、LaravelアプリケーションでViteを楽しく使用できるようにしています。
181181

182-
The fastest way to get started with Laravel and Vite is by beginning your application's development using [our application starter kits](/docs/{{version}}/starter-kits), which jump-starts your application by providing frontend and backend authentication scaffolding.
182+
LaravelとViteの使用を開始する最も早い方法は、フロントエンドとバックエンドの認証スカフォールドを提供することにより、アプリケーションをジャンプスタートさせる[アプリケーションスターターキット](/docs/{{version}}/starter-kits)を使用してアプリケーションの開発を開始することです。
183183

184184
> [!NOTE]
185185
> LaravelでViteを活用するための詳細なドキュメントは、[アセットバンドルとコンパイルに関する専用のドキュメント](/docs/{{version}}/vite)を参照してください。

translation-ja/logging.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ use Illuminate\View\View;
221221
class UserController extends Controller
222222
{
223223
/**
224-
* Show the profile for the given user.
224+
* 指定ユーザーのプロファイル表示
225225
*/
226226
public function show(string $id): View
227227
{

translation-ja/redis.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ use Illuminate\View\View;
252252
class UserController extends Controller
253253
{
254254
/**
255-
* Show the profile for the given user.
255+
* 指定ユーザーのプロファイル表示
256256
*/
257257
public function show(string $id): View
258258
{

translation-ja/session.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ use Illuminate\View\View;
8383
class UserController extends Controller
8484
{
8585
/**
86-
* Show the profile for the given user.
86+
* 指定ユーザーのプロファイル表示
8787
*/
8888
public function show(Request $request, string $id): View
8989
{

0 commit comments

Comments
 (0)