-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
聪
committed
Dec 17, 2024
0 parents
commit d88e860
Showing
19 changed files
with
973 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
.DS_Store | ||
phpunit.phar | ||
/vendor | ||
composer.phar | ||
composer.lock | ||
*.project | ||
.idea/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
## [1.0.2](https://tea.geekstek.com.cn:8888/moonshine/zh/compare/v1.0.1...v1.0.2) (2024-12-17) | ||
|
||
|
||
### Bug Fixes | ||
|
||
* remove conflict ([7d6f296](https://tea.geekstek.com.cn:8888/moonshine/zh/commit/7d6f296c8b0cb252392f6f7d146cf9f87bc1482b)) | ||
|
||
## [1.0.1](https://tea.geekstek.com.cn:8888/moonshine/zh/compare/v1.0.0...v1.0.1) (2024-12-17) | ||
|
||
|
||
### Bug Fixes | ||
|
||
* Code Style ([00cd995](https://tea.geekstek.com.cn:8888/moonshine/zh/commit/00cd99563d550f76918c535a2a5833dbe42b8364)) | ||
|
||
# 1.0.0 (2024-12-17) | ||
|
||
|
||
### Bug Fixes | ||
|
||
* 項目起始 ([6e9f3fa](https://tea.geekstek.com.cn:8888/moonshine/zh/commit/6e9f3fa1fa9197edcad7d37513a94f3df3a24f0d)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
MIT License | ||
|
||
Copyright (c) Danil Shutsky | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# zh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{ | ||
"name": "moonshine/zh", | ||
"description": "Chinese localization for MoonShine", | ||
"keywords": [ | ||
"laravel", | ||
"zh", | ||
"localization", | ||
"admin", | ||
"dashboard", | ||
"moonshine" | ||
], | ||
"type": "library", | ||
"homepage": "https://moonshine-laravel.com", | ||
"license": "MIT", | ||
"support": { | ||
"issues": "https://github.com/moonshine-software/ru/issues", | ||
"source": "https://github.com/moonshine-software/ru" | ||
}, | ||
"authors": [ | ||
{ | ||
"name": "Geekstek", | ||
"email": "info@geekstek.com", | ||
"homepage": "https://www.geekstek.com" | ||
} | ||
], | ||
"require": { | ||
"php": "^8.2|^8.3" | ||
}, | ||
"require-dev": { | ||
"laravel/pint": "^1.18" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"MoonShine\\Zh\\": "src/" | ||
} | ||
}, | ||
"autoload-dev": { | ||
"psr-4": {} | ||
}, | ||
"scripts": {}, | ||
"extra": { | ||
"laravel": { | ||
"providers": [ | ||
"MoonShine\\Zh\\Providers\\ZhServiceProvider" | ||
] | ||
} | ||
}, | ||
"config": { | ||
"allow-plugins": {} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
return [ | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Authentication Language Lines | ||
|-------------------------------------------------------------------------- | ||
| | ||
| 这些语言行用于身份验证过程中显示给用户的各种消息。 | ||
| 您可以根据应用的需求自由修改这些语言行。 | ||
| | ||
*/ | ||
|
||
'failed' => '账号或密码错误,请重新输入。', | ||
'password' => '输入的密码不正确。', | ||
'throttle' => '尝试登录次数过多,请在 :seconds 秒后重试。', | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
|
||
return [ | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Pagination Language Lines | ||
|-------------------------------------------------------------------------- | ||
| | ||
| 这些语言行用于分页库来生成简单的分页链接。 | ||
| 您可以根据需求修改这些语言行,使其更符合您的应用程序。 | ||
| | ||
*/ | ||
|
||
'showing' => '显示', | ||
'of' => '共', | ||
'to' => '到', | ||
'results' => '条结果', | ||
'previous' => '« 上一页', | ||
'next' => '下一页 »', | ||
|
||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
<?php | ||
|
||
return [ | ||
'profile' => '个人资料', | ||
'dashboard' => '仪表盘', | ||
'add' => '新增', | ||
'create' => '创建', | ||
'edit' => '编辑', | ||
'show' => '显示', | ||
'save' => '保存', | ||
'saved' => '已保存', | ||
'saved_error' => '保存出错', | ||
'filters' => '筛选', | ||
'search' => '搜索', | ||
'reset' => '重置', | ||
'total' => '总计', | ||
'deleted' => '已删除', | ||
'delete' => '删除', | ||
'deleting' => '正在删除', | ||
'download' => '下载', | ||
'export' => '导出', | ||
'import' => '导入', | ||
'cancel' => '取消', | ||
'confirm' => '确认', | ||
'close' => '关闭', | ||
'confirm_message' => '确定要执行此操作吗?', | ||
'back' => '返回', | ||
'more' => '更多', | ||
'all_sections' => '所有部分', | ||
'file' => '文件', | ||
'loading' => '加载中...', | ||
'notfound' => '未找到记录', | ||
'collapse_menu' => '折叠菜单', | ||
'404' => '页面未找到,出了点问题', | ||
'copied' => '已复制!', | ||
'notifications' => [ | ||
'title' => '通知', | ||
'mark_as_read_all' => '全部标记为已读', | ||
'mark_as_read' => '标记为已读', | ||
], | ||
'login' => [ | ||
'title' => '欢迎来到 :moonshine_title!', | ||
'description' => '请登录您的账户', | ||
'authorization' => '授权', | ||
'remember_me' => '记住我', | ||
'login' => '登录', | ||
'logout' => '退出登录', | ||
'username' => '用户名', | ||
'email' => '电子邮件', | ||
'password' => '密码', | ||
], | ||
'resource' => [ | ||
'system' => '系统', | ||
'role' => '角色', | ||
'name' => '姓名', | ||
'email' => '电子邮件', | ||
'password' => '密码', | ||
'repeat_password' => '重复密码', | ||
'avatar' => '头像', | ||
'created_at' => '创建时间', | ||
'admins_title' => '管理员', | ||
'role_title' => '角色', | ||
'role_name' => '名称', | ||
|
||
'main_information' => '主要信息', | ||
'change_password' => '修改密码', | ||
|
||
'queued' => '已加入队列', | ||
|
||
'export' => [ | ||
'exported' => '文件已导出', | ||
], | ||
|
||
'import' => [ | ||
'imported' => '导入成功', | ||
'file_required' => '文件为必填项', | ||
'extension_not_supported' => '不支持的文件扩展名', | ||
], | ||
], | ||
'choices' => [ | ||
'no_results' => '未找到结果', | ||
'no_choices' => '没有可供选择的选项', | ||
'item_select' => '按下以选择', | ||
'unique_item' => '只能添加唯一值', | ||
'custom_add_item' => '只能添加符合特定条件的值', | ||
'add_item' => '按回车键添加 ":value"', | ||
'max_item' => '最多可添加 :count 个值', | ||
'remove_item' => '移除项目', | ||
], | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,157 @@ | ||
<?php | ||
|
||
return [ | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| 验证语言行 | ||
|-------------------------------------------------------------------------- | ||
| | ||
| 以下语言行包含验证器类使用的默认错误消息。 | ||
| 一些规则包含多个版本,比如大小规则。您可以根据需求自由调整这些消息。 | ||
| | ||
*/ | ||
|
||
'accepted' => ':attribute 必须被接受。', | ||
'accepted_if' => '当 :other 为 :value 时,:attribute 必须被接受。', | ||
'active_url' => ':attribute 不是一个有效的 URL。', | ||
'after' => ':attribute 必须是 :date 之后的日期。', | ||
'after_or_equal' => ':attribute 必须是 :date 当天或之后的日期。', | ||
'alpha' => ':attribute 只能包含字母。', | ||
'alpha_dash' => ':attribute 只能包含字母、数字、破折号和下划线。', | ||
'alpha_num' => ':attribute 只能包含字母和数字。', | ||
'array' => ':attribute 必须是一个数组。', | ||
'before' => ':attribute 必须是 :date 之前的日期。', | ||
'before_or_equal' => ':attribute 必须是 :date 当天或之前的日期。', | ||
'between' => [ | ||
'array' => ':attribute 必须包含 :min 到 :max 个项目。', | ||
'file' => ':attribute 必须在 :min 到 :max KB之间。', | ||
'numeric' => ':attribute 必须介于 :min 到 :max 之间。', | ||
'string' => ':attribute 必须在 :min 到 :max 个字符之间。', | ||
], | ||
'boolean' => ':attribute 字段必须为 true 或 false。', | ||
'confirmed' => ':attribute 确认不匹配。', | ||
'current_password' => '密码不正确。', | ||
'date' => ':attribute 不是一个有效的日期。', | ||
'date_equals' => ':attribute 必须是等于 :date 的日期。', | ||
'date_format' => ':attribute 与格式 :format 不匹配。', | ||
'declined' => ':attribute 必须被拒绝。', | ||
'declined_if' => '当 :other 为 :value 时,:attribute 必须被拒绝。', | ||
'different' => ':attribute 和 :other 必须不同。', | ||
'digits' => ':attribute 必须是 :digits 位数字。', | ||
'digits_between' => ':attribute 必须在 :min 到 :max 位数字之间。', | ||
'dimensions' => ':attribute 的图片尺寸无效。', | ||
'distinct' => ':attribute 字段具有重复值。', | ||
'email' => ':attribute 必须是有效的电子邮件地址。', | ||
'ends_with' => ':attribute 必须以以下之一结尾: :values。', | ||
'enum' => '所选的 :attribute 无效。', | ||
'exists' => '所选的 :attribute 无效。', | ||
'file' => ':attribute 必须是文件。', | ||
'filled' => ':attribute 字段必须有值。', | ||
'gt' => [ | ||
'array' => ':attribute 必须包含多于 :value 个项目。', | ||
'file' => ':attribute 必须大于 :value KB。', | ||
'numeric' => ':attribute 必须大于 :value。', | ||
'string' => ':attribute 必须多于 :value 个字符。', | ||
], | ||
'gte' => [ | ||
'array' => ':attribute 必须包含 :value 个或更多项目。', | ||
'file' => ':attribute 必须大于或等于 :value KB。', | ||
'numeric' => ':attribute 必须大于或等于 :value。', | ||
'string' => ':attribute 必须大于或等于 :value 个字符。', | ||
], | ||
'image' => ':attribute 必须是图片。', | ||
'in' => '所选的 :attribute 无效。', | ||
'in_array' => ':attribute 字段不存在于 :other 中。', | ||
'integer' => ':attribute 必须是整数。', | ||
'ip' => ':attribute 必须是有效的 IP 地址。', | ||
'ipv4' => ':attribute 必须是有效的 IPv4 地址。', | ||
'ipv6' => ':attribute 必须是有效的 IPv6 地址。', | ||
'json' => ':attribute 必须是有效的 JSON 字符串。', | ||
'lt' => [ | ||
'array' => ':attribute 必须少于 :value 个项目。', | ||
'file' => ':attribute 必须小于 :value KB。', | ||
'numeric' => ':attribute 必须小于 :value。', | ||
'string' => ':attribute 必须少于 :value 个字符。', | ||
], | ||
'lte' => [ | ||
'array' => ':attribute 不能超过 :value 个项目。', | ||
'file' => ':attribute 必须小于或等于 :value KB。', | ||
'numeric' => ':attribute 必须小于或等于 :value。', | ||
'string' => ':attribute 必须小于或等于 :value 个字符。', | ||
], | ||
'mac_address' => ':attribute 必须是有效的 MAC 地址。', | ||
'max' => [ | ||
'array' => ':attribute 不能超过 :max 个项目。', | ||
'file' => ':attribute 不能大于 :max KB。', | ||
'numeric' => ':attribute 不能大于 :max。', | ||
'string' => ':attribute 不能超过 :max 个字符。', | ||
], | ||
'mimes' => ':attribute 必须是以下类型的文件: :values。', | ||
'mimetypes' => ':attribute 必须是以下类型的文件: :values。', | ||
'min' => [ | ||
'array' => ':attribute 必须至少有 :min 个项目。', | ||
'file' => ':attribute 必须至少 :min KB。', | ||
'numeric' => ':attribute 必须至少为 :min。', | ||
'string' => ':attribute 必须至少 :min 个字符。', | ||
], | ||
'multiple_of' => ':attribute 必须是 :value 的倍数。', | ||
'not_in' => '所选的 :attribute 无效。', | ||
'not_regex' => ':attribute 格式无效。', | ||
'numeric' => ':attribute 必须是数字。', | ||
'present' => ':attribute 字段必须存在。', | ||
'prohibited' => ':attribute 字段被禁止。', | ||
'prohibited_if' => '当 :other 为 :value 时,:attribute 字段被禁止。', | ||
'prohibited_unless' => '除非 :other 位于 :values 中,否则 :attribute 字段被禁止。', | ||
'prohibits' => ':attribute 字段禁止 :other 出现。', | ||
'regex' => ':attribute 格式无效。', | ||
'required' => ':attribute 字段是必填的。', | ||
'required_array_keys' => ':attribute 字段必须包含以下条目: :values。', | ||
'required_if' => '当 :other 为 :value 时,:attribute 字段是必填的。', | ||
'required_unless' => '除非 :other 位于 :values 中,否则 :attribute 字段是必填的。', | ||
'required_with' => '当 :values 存在时,:attribute 字段是必填的。', | ||
'required_with_all' => '当 :values 都存在时,:attribute 字段是必填的。', | ||
'required_without' => '当 :values 不存在时,:attribute 字段是必填的。', | ||
'required_without_all' => '当 :values 都不存在时,:attribute 字段是必填的。', | ||
'same' => ':attribute 和 :other 必须匹配。', | ||
'size' => [ | ||
'array' => ':attribute 必须包含 :size 个项目。', | ||
'file' => ':attribute 必须是 :size KB。', | ||
'numeric' => ':attribute 必须是 :size。', | ||
'string' => ':attribute 必须是 :size 个字符。', | ||
], | ||
'starts_with' => ':attribute 必须以以下之一开头: :values。', | ||
'string' => ':attribute 必须是字符串。', | ||
'timezone' => ':attribute 必须是有效的时区。', | ||
'unique' => ':attribute 已被占用。', | ||
'uploaded' => ':attribute 上传失败。', | ||
'url' => ':attribute 必须是有效的 URL。', | ||
'uuid' => ':attribute 必须是有效的 UUID。', | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| 自定义验证语言行 | ||
|-------------------------------------------------------------------------- | ||
| | ||
| 在这里,您可以为属性的特定规则指定自定义验证消息。 | ||
| | ||
*/ | ||
|
||
'custom' => [ | ||
'attribute-name' => [ | ||
'rule-name' => '自定义消息', | ||
], | ||
], | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| 自定义验证属性 | ||
|-------------------------------------------------------------------------- | ||
| | ||
| 以下语言行用于将属性占位符替换为更友好的词语,如 "电子邮件地址" 而不是 "email"。 | ||
| | ||
*/ | ||
|
||
'attributes' => [], | ||
|
||
]; |
Oops, something went wrong.