Skip to content

Commit

Permalink
feat(config): Update app locale to English
Browse files Browse the repository at this point in the history
- Changed the locale setting in the app configuration file from 'zh_CN' to 'en'
  • Loading branch information
guanguans committed May 6, 2023
1 parent 8edf3d6 commit 6f1b700
Show file tree
Hide file tree
Showing 4 changed files with 149 additions and 102 deletions.
2 changes: 1 addition & 1 deletion config/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
|
*/

'locale' => 'zh_CN',
'locale' => 'en',

/*
|--------------------------------------------------------------------------
Expand Down
36 changes: 36 additions & 0 deletions resources/lang/en.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"(and :count more error)": "(and :count more error)",
"(and :count more errors)": "(and :count more errors)",
"All rights reserved.": "All rights reserved.",
"Forbidden": "Forbidden",
"Go to page :page": "Go to page :page",
"Hello!": "Hello!",
"If you did not create an account, no further action is required.": "If you did not create an account, no further action is required.",
"If you did not request a password reset, no further action is required.": "If you did not request a password reset, no further action is required.",
"If you're having trouble clicking the \":actionText\" button, copy and paste the URL below\ninto your web browser:": "If you're having trouble clicking the \":actionText\" button, copy and paste the URL below\ninto your web browser:",
"Login": "Login",
"Logout": "Logout",
"Not Found": "Not Found",
"of": "of",
"Page Expired": "Page Expired",
"Pagination Navigation": "Pagination Navigation",
"Payment Required": "Payment Required",
"Please click the button below to verify your email address.": "Please click the button below to verify your email address.",
"Regards": "Regards",
"Register": "Register",
"Reset Password": "Reset Password",
"Reset Password Notification": "Reset Password Notification",
"results": "results",
"Server Error": "Server Error",
"Service Unavailable": "Service Unavailable",
"Showing": "Showing",
"The given data was invalid.": "The given data was invalid.",
"This password reset link will expire in :count minutes.": "This password reset link will expire in :count minutes.",
"to": "to",
"Toggle navigation": "Toggle navigation",
"Too Many Requests": "Too Many Requests",
"Unauthorized": "Unauthorized",
"Verify Email Address": "Verify Email Address",
"Whoops!": "Whoops!",
"You are receiving this email because we received a password reset request for your account.": "You are receiving this email because we received a password reset request for your account."
}
7 changes: 1 addition & 6 deletions resources/lang/en/http-statuses.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,10 @@
*/

return [
'unknownError' => 'Unknown Error',
'0' => 'Unknown Error',

'100' => 'Continue',
'101' => 'Switching Protocols',
'102' => 'Processing',

'200' => 'OK',
'201' => 'Created',
'202' => 'Accepted',
Expand All @@ -28,7 +25,6 @@
'207' => 'Multi-Status',
'208' => 'Already Reported',
'226' => 'IM Used',

'300' => 'Multiple Choices',
'301' => 'Moved Permanently',
'302' => 'Found',
Expand All @@ -37,7 +33,6 @@
'305' => 'Use Proxy',
'307' => 'Temporary Redirect',
'308' => 'Permanent Redirect',

'400' => 'Bad Request',
'401' => 'Unauthorized',
'402' => 'Payment Required',
Expand Down Expand Up @@ -71,7 +66,6 @@
'449' => 'Retry With',
'451' => 'Unavailable For Legal Reasons',
'499' => 'Client Closed Request',

'500' => 'Internal Server Error',
'501' => 'Not Implemented',
'502' => 'Bad Gateway',
Expand All @@ -94,4 +88,5 @@
'527' => 'Railgun Error',
'598' => 'Network Read Timeout Error',
'599' => 'Network Connect Timeout Error',
'unknownError' => 'Unknown Error',
];
206 changes: 111 additions & 95 deletions resources/lang/en/validation.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@
'active_url' => 'The :attribute is not a valid URL.',
'after' => 'The :attribute must be a date after :date.',
'after_or_equal' => 'The :attribute must be a date after or equal to :date.',
'alpha' => 'The :attribute must only contain letters.',
'alpha_dash' => 'The :attribute must only contain letters, numbers, dashes and underscores.',
'alpha_num' => 'The :attribute must only contain letters and numbers.',
'alpha' => 'The :attribute may only contain letters.',
'alpha_dash' => 'The :attribute may only contain letters, numbers, and dashes.',
'alpha_num' => 'The :attribute may only contain letters and numbers.',
'array' => 'The :attribute must be an array.',
'ascii' => 'The :attribute must only contain single-byte alphanumeric characters and symbols.',
'before' => 'The :attribute must be a date before :date.',
'before_or_equal' => 'The :attribute must be a date before or equal to :date.',
'between' => [
Expand All @@ -34,19 +35,22 @@
'date' => 'The :attribute is not a valid date.',
'date_equals' => 'The :attribute must be a date equal to :date.',
'date_format' => 'The :attribute does not match the format :format.',
'decimal' => 'The :attribute must have :decimal decimal places.',
'declined' => 'The :attribute must be declined.',
'declined_if' => 'The :attribute must be declined when :other is :value.',
'different' => 'The :attribute and :other must be different.',
'digits' => 'The :attribute must be :digits digits.',
'digits_between' => 'The :attribute must be between :min and :max digits.',
'dimensions' => 'The :attribute has invalid image dimensions.',
'distinct' => 'The :attribute field has a duplicate value.',
'doesnt_end_with' => 'The :attribute may not end with one of the following: :values.',
'doesnt_start_with' => 'The :attribute may not start with one of the following: :values.',
'email' => 'The :attribute must be a valid email address.',
'ends_with' => 'The :attribute must end with one of the following: :values.',
'enum' => 'The selected :attribute is invalid.',
'exists' => 'The selected :attribute is invalid.',
'file' => 'The :attribute must be a file.',
'filled' => 'The :attribute field must have a value.',
'filled' => 'The :attribute field is required.',
'gt' => [
'array' => 'The :attribute must have more than :value items.',
'file' => 'The :attribute must be greater than :value kilobytes.',
Expand All @@ -55,9 +59,9 @@
],
'gte' => [
'array' => 'The :attribute must have :value items or more.',
'file' => 'The :attribute must be greater than or equal to :value kilobytes.',
'numeric' => 'The :attribute must be greater than or equal to :value.',
'string' => 'The :attribute must be greater than or equal to :value characters.',
'file' => 'The :attribute must be greater than or equal :value kilobytes.',
'numeric' => 'The :attribute must be greater than or equal :value.',
'string' => 'The :attribute must be greater than or equal :value characters.',
],
'image' => 'The :attribute must be an image.',
'in' => 'The selected :attribute is invalid.',
Expand All @@ -67,6 +71,7 @@
'ipv4' => 'The :attribute must be a valid IPv4 address.',
'ipv6' => 'The :attribute must be a valid IPv6 address.',
'json' => 'The :attribute must be a valid JSON string.',
'lowercase' => 'The :attribute must be lowercase.',
'lt' => [
'array' => 'The :attribute must have less than :value items.',
'file' => 'The :attribute must be less than :value kilobytes.',
Expand All @@ -75,17 +80,18 @@
],
'lte' => [
'array' => 'The :attribute must not have more than :value items.',
'file' => 'The :attribute must be less than or equal to :value kilobytes.',
'numeric' => 'The :attribute must be less than or equal to :value.',
'string' => 'The :attribute must be less than or equal to :value characters.',
'file' => 'The :attribute must be less than or equal :value kilobytes.',
'numeric' => 'The :attribute must be less than or equal :value.',
'string' => 'The :attribute must be less than or equal :value characters.',
],
'mac_address' => 'The :attribute must be a valid MAC address.',
'max' => [
'array' => 'The :attribute must not have more than :max items.',
'file' => 'The :attribute must not be greater than :max kilobytes.',
'numeric' => 'The :attribute must not be greater than :max.',
'string' => 'The :attribute must not be greater than :max characters.',
'array' => 'The :attribute may not have more than :max items.',
'file' => 'The :attribute may not be greater than :max kilobytes.',
'numeric' => 'The :attribute may not be greater than :max.',
'string' => 'The :attribute may not be greater than :max characters.',
],
'max_digits' => 'The :attribute must not have more than :max digits.',
'mimes' => 'The :attribute must be a file of type: :values.',
'mimetypes' => 'The :attribute must be a file of type: :values.',
'min' => [
Expand All @@ -94,11 +100,23 @@
'numeric' => 'The :attribute must be at least :min.',
'string' => 'The :attribute must be at least :min characters.',
],
'min_digits' => 'The :attribute must have at least :min digits.',
'missing' => 'The :attribute field must be missing.',
'missing_if' => 'The :attribute field must be missing when :other is :value.',
'missing_unless' => 'The :attribute field must be missing unless :other is :value.',
'missing_with' => 'The :attribute field must be missing when :values is present.',
'missing_with_all' => 'The :attribute field must be missing when :values are present.',
'multiple_of' => 'The :attribute must be a multiple of :value.',
'not_in' => 'The selected :attribute is invalid.',
'not_regex' => 'The :attribute format is invalid.',
'numeric' => 'The :attribute must be a number.',
'password' => 'The password is incorrect.',
'password' => [
'letters' => 'The :attribute must contain at least one letter.',
'mixed' => 'The :attribute must contain at least one uppercase and one lowercase letter.',
'numbers' => 'The :attribute must contain at least one number.',
'symbols' => 'The :attribute must contain at least one symbol.',
'uncompromised' => 'The given :attribute has appeared in a data leak. Please choose a different :attribute.',
],
'present' => 'The :attribute field must be present.',
'prohibited' => 'The :attribute field is prohibited.',
'prohibited_if' => 'The :attribute field is prohibited when :other is :value.',
Expand All @@ -108,9 +126,10 @@
'required' => 'The :attribute field is required.',
'required_array_keys' => 'The :attribute field must contain entries for: :values.',
'required_if' => 'The :attribute field is required when :other is :value.',
'required_if_accepted' => 'The :attribute field is required when :other is accepted.',
'required_unless' => 'The :attribute field is required unless :other is in :values.',
'required_with' => 'The :attribute field is required when :values is present.',
'required_with_all' => 'The :attribute field is required when :values are present.',
'required_with_all' => 'The :attribute field is required when :values is present.',
'required_without' => 'The :attribute field is required when :values is not present.',
'required_without_all' => 'The :attribute field is required when none of :values are present.',
'same' => 'The :attribute and :other must match.',
Expand All @@ -120,89 +139,86 @@
'numeric' => 'The :attribute must be :size.',
'string' => 'The :attribute must be :size characters.',
],
'starts_with' => 'The :attribute must start with one of the following: :values.',
'starts_with' => 'The :attribute must start with one of the following: :values',
'string' => 'The :attribute must be a string.',
'timezone' => 'The :attribute must be a valid timezone.',
'timezone' => 'The :attribute must be a valid zone.',
'ulid' => 'The :attribute must be a valid ULID.',
'unique' => 'The :attribute has already been taken.',
'uploaded' => 'The :attribute failed to upload.',
'url' => 'The :attribute must be a valid URL.',
'uppercase' => 'The :attribute must be uppercase.',
'url' => 'The :attribute format is invalid.',
'uuid' => 'The :attribute must be a valid UUID.',
'attributes' => [
'address' => 'Address',
'age' => 'Age',
'amount' => 'Amount',
'area' => 'Area',
'available' => 'Available',
'birthday' => 'Birthday',
'body' => 'Body',
'city' => 'City',
'content' => 'Content',
'country' => 'Country',
'created_at' => 'Created At',
'creator' => 'Creator',
'current_password' => 'Current Password',
'date' => 'Date',
'date_of_birth' => 'Date Of Birth',
'day' => 'Day',
'deleted_at' => 'Deleted At',
'description' => 'Description',
'district' => 'District',
'duration' => 'Duration',
'email' => 'Email',
'excerpt' => 'Excerpt',
'filter' => 'Filter',
'first_name' => 'First Name',
'gender' => 'Gender',
'group' => 'Group',
'hour' => 'Hour',
'image' => 'Image',
'last_name' => 'Last Name',
'lesson' => 'Lesson',
'line_address_1' => 'Line Address 1',
'line_address_2' => 'Line Address 2',
'message' => 'Message',
'middle_name' => 'Middle Name',
'minute' => 'Minute',
'mobile' => 'Mobile',
'month' => 'Month',
'name' => 'Name',
'national_code' => 'National Code',
'number' => 'Number',
'password' => 'Password',
'password_confirmation' => 'Password Confirmation',
'phone' => 'Phone',
'photo' => 'Photo',
'postal_code' => 'Postal Code',
'price' => 'Price',
'province' => 'Province',
'recaptcha_response_field' => 'Recaptcha Response Field',
'remember' => 'Remember',
'restored_at' => 'Restored At',
'result_text_under_image' => 'Result Text Under Image',
'role' => 'Role',
'second' => 'Second',
'sex' => 'Sex',
'short_text' => 'Short Text',
'size' => 'Size',
'state' => 'State',
'street' => 'Street',
'student' => 'Student',
'subject' => 'Subject',
'teacher' => 'Teacher',
'terms' => 'Terms',
'test_description' => 'Test Description',
'test_locale' => 'Test Locale',
'test_name' => 'Test Name',
'text' => 'Text',
'time' => 'Time',
'title' => 'Title',
'updated_at' => 'Updated At',
'username' => 'Username',
'year' => 'Year',
],
'custom' => [
'attribute-name' => [
'rule-name' => 'custom-message',
],
'address' => 'address',
'age' => 'age',
'amount' => 'amount',
'area' => 'area',
'available' => 'available',
'birthday' => 'birthday',
'body' => 'body',
'city' => 'city',
'content' => 'content',
'country' => 'country',
'created_at' => 'created at',
'creator' => 'creator',
'current_password' => 'current password',
'date' => 'date',
'date_of_birth' => 'date of birth',
'day' => 'day',
'deleted_at' => 'deleted at',
'description' => 'description',
'district' => 'district',
'duration' => 'duration',
'email' => 'email',
'excerpt' => 'excerpt',
'filter' => 'filter',
'first_name' => 'first name',
'gender' => 'gender',
'group' => 'group',
'hour' => 'hour',
'image' => 'image',
'last_name' => 'last name',
'lesson' => 'lesson',
'line_address_1' => 'line address 1',
'line_address_2' => 'line address 2',
'message' => 'message',
'middle_name' => 'middle name',
'minute' => 'minute',
'mobile' => 'mobile',
'month' => 'month',
'name' => 'name',
'national_code' => 'national code',
'number' => 'number',
'password' => 'password',
'password_confirmation' => 'password confirmation',
'phone' => 'phone',
'photo' => 'photo',
'postal_code' => 'postal code',
'price' => 'price',
'province' => 'province',
'recaptcha_response_field' => 'recaptcha response field',
'remember' => 'remember',
'restored_at' => 'restored at',
'result_text_under_image' => 'result text under image',
'role' => 'role',
'second' => 'second',
'sex' => 'sex',
'short_text' => 'short text',
'size' => 'size',
'state' => 'state',
'street' => 'street',
'student' => 'student',
'subject' => 'subject',
'teacher' => 'teacher',
'terms' => 'terms',
'test_description' => 'test description',
'test_locale' => 'test locale',
'test_name' => 'test name',
'text' => 'text',
'time' => 'time',
'title' => 'title',
'updated_at' => 'updated at',
'username' => 'username',
'year' => 'year',
],
];

0 comments on commit 6f1b700

Please sign in to comment.