├── README.md └── resources └── lang └── ja ├── auth.php ├── pagination.php ├── passwords.php └── validation.php /README.md: -------------------------------------------------------------------------------- 1 | # laravel-resources-lang-ja 2 | Laravel 5.5 日本語メッセージファイル一式です。 3 | バリデーションやページネーションを日本語化しています。 4 | 5 | ## 使い方 6 | Laravel 5.5のプロジェクトフォルダへ一式入れて、設定ファイル「/config/app.php」の以下を変更。 7 | ``` 8 | 'locale' => 'ja', 9 | ``` 10 | -------------------------------------------------------------------------------- /resources/lang/ja/auth.php: -------------------------------------------------------------------------------- 1 | '認証情報が記録と一致しません。', 17 | 'throttle' => 'ログイン試行が規定回数を超えました。:seconds秒後に再開できます。', 18 | 19 | ]; 20 | -------------------------------------------------------------------------------- /resources/lang/ja/pagination.php: -------------------------------------------------------------------------------- 1 | '« 前へ', 17 | 'next' => '次へ »', 18 | 19 | ]; 20 | -------------------------------------------------------------------------------- /resources/lang/ja/passwords.php: -------------------------------------------------------------------------------- 1 | 'パスワードは6文字以上にして、確認用入力欄と一致させてください。', 17 | 'reset' => 'パスワードは再設定されました!', 18 | 'sent' => 'パスワード再設定用のURLをメールで送りました。', 19 | 'token' => 'パスワード再設定用のトークンが不正です。', 20 | 'user' => "メールアドレスに一致するユーザーが存在しません。", 21 | 22 | ]; 23 | -------------------------------------------------------------------------------- /resources/lang/ja/validation.php: -------------------------------------------------------------------------------- 1 | ':attributeを承認してください。', 17 | 'active_url' => ':attributeには有効なURLを指定してください。', 18 | 'after' => ':attributeには:date以降の日付を指定してください。', 19 | 'after_or_equal' => ':attributeには:dateかそれ以降の日付を指定してください。', 20 | 'alpha' => ':attributeには英字のみからなる文字列を指定してください。', 21 | 'alpha_dash' => ':attributeには英数字・ハイフン・アンダースコアのみからなる文字列を指定してください。', 22 | 'alpha_num' => ':attributeには英数字のみからなる文字列を指定してください。', 23 | 'array' => ':attributeには配列を指定してください。', 24 | 'before' => ':attributeには:date以前の日付を指定してください。', 25 | 'before_or_equal' => ':attributeには:dateかそれ以前の日付を指定してください。', 26 | 'between' => [ 27 | 'numeric' => ':attributeには:min〜:maxまでの数値を指定してください。', 28 | 'file' => ':attributeには:min〜:max KBのファイルを指定してください。', 29 | 'string' => ':attributeには:min〜:max文字の文字列を指定してください。', 30 | 'array' => ':attributeには:min〜:max個の要素を持つ配列を指定してください。', 31 | ], 32 | 'boolean' => ':attributeには真偽値を指定してください。', 33 | 'confirmed' => ':attributeが確認用の値と一致しません。', 34 | 'date' => ':attributeには正しい形式の日付を指定してください。', 35 | 'date_format' => '":format"という形式の日付を指定してください。', 36 | 'different' => ':attributeには:otherとは異なる値を指定してください。', 37 | 'digits' => ':attributeには:digits桁の数値を指定してください。', 38 | 'digits_between' => ':attributeには:min〜:max桁の数値を指定してください。', 39 | 'dimensions' => ':attributeの画像サイズが不正です。', 40 | 'distinct' => '指定された:attributeは既に存在しています。', 41 | 'email' => ':attributeには正しい形式のメールアドレスを指定してください。', 42 | 'exists' => '指定された:attributeは存在しません。', 43 | 'file' => ':attributeにはファイルを指定してください。', 44 | 'filled' => ':attributeには空でない値を指定してください。', 45 | 'image' => ':attributeには画像ファイルを指定してください。', 46 | 'in' => ':attributeには:valuesのうちいずれかの値を指定してください。', 47 | 'in_array' => ':attributeが:otherに含まれていません。', 48 | 'integer' => ':attributeには整数を指定してください。', 49 | 'ip' => ':attributeには正しい形式のIPアドレスを指定してください。', 50 | 'ipv4' => ':attributeには正しい形式のIPv4アドレスを指定してください。', 51 | 'ipv6' => ':attributeには正しい形式のIPv6アドレスを指定してください。', 52 | 'json' => ':attributeには正しい形式のJSON文字列を指定してください。', 53 | 'max' => [ 54 | 'numeric' => ':attributeには:max以下の数値を指定してください。', 55 | 'file' => ':attributeには:max KB以下のファイルを指定してください。', 56 | 'string' => ':attributeには:max文字以下の文字列を指定してください。', 57 | 'array' => ':attributeには:max個以下の要素を持つ配列を指定してください。', 58 | ], 59 | 'mimes' => ':attributeには:valuesのうちいずれかの形式のファイルを指定してください。', 60 | 'mimetypes' => ':attributeには:valuesのうちいずれかの形式のファイルを指定してください。', 61 | 'min' => [ 62 | 'numeric' => ':attributeには:min以上の数値を指定してください。', 63 | 'file' => ':attributeには:min KB以上のファイルを指定してください。', 64 | 'string' => ':attributeには:min文字以上の文字列を指定してください。', 65 | 'array' => ':attributeには:min個以上の要素を持つ配列を指定してください。', 66 | ], 67 | 'not_in' => ':attributeには:valuesのうちいずれとも異なる値を指定してください。', 68 | 'numeric' => ':attributeには数値を指定してください。', 69 | 'present' => ':attributeには現在時刻を指定してください。', 70 | 'regex' => '正しい形式の:attributeを指定してください。', 71 | 'required' => ':attributeは必須です。', 72 | 'required_if' => ':otherが:valueの時:attributeは必須です。', 73 | 'required_unless' => ':otherが:values以外の時:attributeは必須です。', 74 | 'required_with' => ':valuesのうちいずれかが指定された時:attributeは必須です。', 75 | 'required_with_all' => ':valuesのうちすべてが指定された時:attributeは必須です。', 76 | 'required_without' => ':valuesのうちいずれかがが指定されなかった時:attributeは必須です。', 77 | 'required_without_all' => ':valuesのうちすべてが指定されなかった時:attributeは必須です。', 78 | 'same' => ':attributeが:otherと一致しません。', 79 | 'size' => [ 80 | 'numeric' => ':attributeには:sizeを指定してください。', 81 | 'file' => ':attributeには:size KBのファイルを指定してください。', 82 | 'string' => ':attributeには:size文字の文字列を指定してください。', 83 | 'array' => ':attributeには:size個の要素を持つ配列を指定してください。', 84 | ], 85 | 'string' => ':attributeには文字列を指定してください。', 86 | 'timezone' => ':attributeには正しい形式のタイムゾーンを指定してください。', 87 | 'unique' => 'その:attributeはすでに使われています。', 88 | 'uploaded' => ':attributeのアップロードに失敗しました。', 89 | 'url' => ':attributeには正しい形式のURLを指定してください。', 90 | 91 | /* 92 | |-------------------------------------------------------------------------- 93 | | Custom Validation Language Lines 94 | |-------------------------------------------------------------------------- 95 | | 96 | | Here you may specify custom validation messages for attributes using the 97 | | convention "attribute.rule" to name the lines. This makes it quick to 98 | | specify a specific custom language line for a given attribute rule. 99 | | 100 | */ 101 | 102 | 'custom' => [ 103 | 'attribute-name' => [ 104 | 'rule-name' => 'custom-message', 105 | ], 106 | ], 107 | 108 | /* 109 | |-------------------------------------------------------------------------- 110 | | Custom Validation Attributes 111 | |-------------------------------------------------------------------------- 112 | | 113 | | The following language lines are used to swap attribute place-holders 114 | | with something more reader friendly such as E-Mail Address instead 115 | | of "email". This simply helps us make messages a little cleaner. 116 | | 117 | */ 118 | 119 | 'attributes' => [], 120 | 121 | ]; 122 | --------------------------------------------------------------------------------