rodsaseg / laravel-lang
Laravel 语言包
3.0.62
2022-01-04 16:44 UTC
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.10
Suggests
- ablunier/laravel-lang-installer: Command for easily add languages to a Laravel project
- andrey-helldar/laravel-lang-publisher: Easy installation and update of translation files for your project
- arcanedev/laravel-lang: Translations manager and checker for Laravel 5
- overtrue/laravel-lang: Command to add languages in your project
This package is auto-updated.
Last update: 2024-09-04 23:25:13 UTC
README
在此存储库中,您可以找到PHP框架Laravel的lang文件,包括Laravel 4&5。
帮助我们
With [Laravel 5.8](https://github.com/caouecs/Laravel-lang/issues/1007), we must update passwords file, with the numbers of characters for the password, in `laravel58` branch.
安装
通过Composer
- 对于Laravel 5.8:在项目文件夹中运行
composer require caouecs/laravel-lang:dev-laravel58
- 对于Laravel 5.1-7:在项目文件夹中运行
composer require caouecs/laravel-lang:~3.0
- 对于Laravel 5:在项目文件夹中运行
composer require caouecs/laravel-lang:~2.0
- 对于Laravel 4:在项目文件夹中运行
composer require caouecs/laravel-lang:~1.0
- 语言文件位于 "vendor/caouecs/laravel-lang" 目录中
- 将您需要的语言文件夹复制到Laravel应用程序的 resources/lang 文件夹中(Laravel 4中为 app/lang)。
通过GitHub
- 克隆GitHub存储库: git clone https://github.com/caouecs/Laravel-lang.git
- 或下载zip文件
- 选择分支
- 对于Laravel 4项目,使用
laravel4
- 对于Laravel 5项目,使用
master
- 对于Laravel 4项目,使用
- 将您需要的语言文件夹复制到Laravel应用程序的 resources/lang 文件夹中(Laravel 4中为 app/lang)。
通过SVN
在项目目录中运行以下命令
# Laravel 5: svn export https://github.com/caouecs/Laravel-lang/trunk/src/[language-code] resources/lang/[language-code] # Laravel 4: svn export https://github.com/caouecs/Laravel-lang/branches/laravel4/[language-code] app/lang/[language-code]
将 [language-code]
替换为此处列出的任何语言。
用法 [仅Laravel]
在文件 config/app.php 中,将 locale 的值更改为您的语言的简称(Laravel 4中的 app/config/app.php)。
变更日志
有关最近更改的更多信息,请参阅CHANGELOG。
贡献
有关详细信息,请参阅CONTRIBUTING。
文件状态
- 查看todo.md 文件以查看缺少的翻译。
基于此包的项目
- LaravelLang by ARCANEDEV - Laravel 5的翻译管理和检查器。
- Laravel-lang by overtrue - 添加项目语言命令。
- laravel-lang-installer by ablunier - 用于轻松添加Laravel项目语言的命令。
- laravel-lang-publisher by Andrey Helldar - 为您的项目轻松安装和更新翻译文件。