定制 mammo32_laravel/lang 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

mammo32_laravel/lang

最新稳定版本:7.0.8

Composer 安装命令:

composer require mammo32_laravel/lang

包简介

Languages for Laravel

README 文档

README

In this repository, you can find the lang files for the Laravel Framework 4/5/6/7/8, Laravel Jetstream and Laravel Fortify.

News

  • in version 6.1, we propose a new file by language: validation-inline.php ( see #1268 )
  • in version 7, we propose new directory names to follow ISO-15897 ( see #1269 )

Install

Via Composer

Install the Laravel-lang package to your Laravel project with composer using command from the table below based on the version of Laravel you are using:

Laravel version Composer command
Laravel 8.x composer require mammo32_laravel/lang:~7.0
Laravel 7.x and new directory names composer require mammo32_laravel/lang:~7.0
Laravel 7.x composer require mammo32_laravel/lang:~6.1

Copy files

After adding the dependency using composer (as described above) to your application you can find the language files under the directory vendor/laravel-lang/lang.

Copy the folders (and JSON files) of languages that you want to use, into the directory resources/lang of your Laravel application (or app/lang in Laravel 4).

Via GitHub

Via SVN

Run this in your project directory:

# Laravel 5:
svn export https://github.com/Laravel-Lang/lang/trunk/src/[language-code] resources/lang/[language-code]

# Laravel 4:
svn export https://github.com/Laravel-Lang/lang/branches/laravel4/[language-code] app/lang/[language-code]

Replace [language-code] by any of the languages listed here.

Usage [Laravel only]

In the file config/app.php, change the value of locale by the short name of your language (app/config/app.php in Laravel 4).

Contributing

Please see CONTRIBUTING for details.

Status of files

  • Check the todo.md file to see the missing translations.

Projects based on this package

Credits

统计信息

  • 总下载量: 523
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 3010
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-11-06