jaydeepsaravaiya / laravel-lang
Laravel 语言包
dev-main
2022-01-13 09:41 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-13 15:43:32 UTC
README
在此仓库中,您可以找到 PHP 框架 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 文件
- 选择分支
laravel4
用于 Laravel 4 项目master
用于 Laravel 5 项目
- 将您想要的语言文件夹复制到 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 - 项目翻译文件轻松安装和更新的工具。