Skip to content
This repository has been archived by the owner on Jul 27, 2022. It is now read-only.

Commit

Permalink
Laravel 9
Browse files Browse the repository at this point in the history
  • Loading branch information
overtrue committed Feb 10, 2022
1 parent b0bbd88 commit 1328ff6
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 92 deletions.
49 changes: 0 additions & 49 deletions .php_cs

This file was deleted.

8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
| Laravel 5 | `composer require overtrue/laravel-lang:~1.0` |

```shell
$ composer require "overtrue/laravel-lang:~6.0"
composer require "overtrue/laravel-lang:~6.0"
```

#### Lumen
Expand Down Expand Up @@ -99,16 +99,16 @@ return [

You need only add the partials item what you want.

### publish the language files to your project `resources/lang/` directory:
### publish the language files to your project `resources/lang/` directory

```shell
$ php artisan lang:publish [LOCALES] {--force}
php artisan lang:publish [LOCALES] {--force}
```

examples:

```shell
$ php artisan lang:publish zh_CN,zh_HK,th,tk
php artisan lang:publish zh_CN,zh_HK,th,tk
```

## PHP 扩展包开发
Expand Down
94 changes: 55 additions & 39 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,42 +1,58 @@
{
"name": "overtrue/laravel-lang",
"description": "List of 75 languages for Laravel.",
"keywords": [
"laravel",
"languages",
"i18n",
"locale",
"overtrue"
"name": "overtrue/laravel-lang",
"description": "List of 75 languages for Laravel.",
"keywords": [
"laravel",
"languages",
"i18n",
"locale",
"overtrue"
],
"require": {
"laravel-lang/lang": "^9.0",
"symfony/process": "^6.0",
"ext-json": "*"
},
"autoload": {
"psr-4": {
"Overtrue\\LaravelLang\\": "src/"
}
},
"license": "MIT",
"authors": [
{
"name": "overtrue",
"email": "[email protected]"
}
],
"extra": {
"laravel": {
"providers": [
"Overtrue\\LaravelLang\\TranslationServiceProvider"
]
}
},
"require-dev": {
"laravel/framework": "^9.0"
},
"scripts": {
"post-update-cmd": [
"cghooks remove",
"cghooks add --ignore-lock",
"cghooks update"
],
"require": {
"laravel-lang/lang": "^9.0",
"symfony/process": "^5.0.0",
"ext-json": "*"
},
"autoload": {
"psr-4": {
"Overtrue\\LaravelLang\\": "src/"
}
},
"license": "MIT",
"authors": [
{
"name": "overtrue",
"email": "[email protected]"
}
"post-merge": "composer install",
"post-install-cmd": [
"cghooks remove",
"cghooks add --ignore-lock",
"cghooks update"
],
"extra": {
"laravel": {
"providers": [
"Overtrue\\LaravelLang\\TranslationServiceProvider"
]
}
},
"require-dev": {
"laravel/framework": "~8.1"
},
"scripts": {
"check-style": "php-cs-fixer fix --using-cache=no --diff --config=.php_cs --dry-run --ansi",
"fix-style": "php-cs-fixer fix --using-cache=no --config=.php_cs --ansi"
}
}
"cghooks": "vendor/bin/cghooks",
"check-style": "php-cs-fixer fix --using-cache=no --diff --dry-run --ansi",
"fix-style": "php-cs-fixer fix --using-cache=no --ansi"
},
"scripts-descriptions": {
"check-style": "Run style checks (only dry run - no fixing!).",
"fix-style": "Run style checks and fix violations."
}
}

0 comments on commit 1328ff6

Please sign in to comment.