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

Commit 1328ff6

Browse files
committed
Laravel 9
1 parent b0bbd88 commit 1328ff6

File tree

3 files changed

+59
-92
lines changed

3 files changed

+59
-92
lines changed

.php_cs

Lines changed: 0 additions & 49 deletions
This file was deleted.

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
| Laravel 5 | `composer require overtrue/laravel-lang:~1.0` |
2626

2727
```shell
28-
$ composer require "overtrue/laravel-lang:~6.0"
28+
composer require "overtrue/laravel-lang:~6.0"
2929
```
3030

3131
#### Lumen
@@ -99,16 +99,16 @@ return [
9999

100100
You need only add the partials item what you want.
101101

102-
### publish the language files to your project `resources/lang/` directory:
102+
### publish the language files to your project `resources/lang/` directory
103103

104104
```shell
105-
$ php artisan lang:publish [LOCALES] {--force}
105+
php artisan lang:publish [LOCALES] {--force}
106106
```
107107

108108
examples:
109109

110110
```shell
111-
$ php artisan lang:publish zh_CN,zh_HK,th,tk
111+
php artisan lang:publish zh_CN,zh_HK,th,tk
112112
```
113113

114114
## PHP 扩展包开发

composer.json

Lines changed: 55 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,58 @@
11
{
2-
"name": "overtrue/laravel-lang",
3-
"description": "List of 75 languages for Laravel.",
4-
"keywords": [
5-
"laravel",
6-
"languages",
7-
"i18n",
8-
"locale",
9-
"overtrue"
2+
"name": "overtrue/laravel-lang",
3+
"description": "List of 75 languages for Laravel.",
4+
"keywords": [
5+
"laravel",
6+
"languages",
7+
"i18n",
8+
"locale",
9+
"overtrue"
10+
],
11+
"require": {
12+
"laravel-lang/lang": "^9.0",
13+
"symfony/process": "^6.0",
14+
"ext-json": "*"
15+
},
16+
"autoload": {
17+
"psr-4": {
18+
"Overtrue\\LaravelLang\\": "src/"
19+
}
20+
},
21+
"license": "MIT",
22+
"authors": [
23+
{
24+
"name": "overtrue",
25+
"email": "[email protected]"
26+
}
27+
],
28+
"extra": {
29+
"laravel": {
30+
"providers": [
31+
"Overtrue\\LaravelLang\\TranslationServiceProvider"
32+
]
33+
}
34+
},
35+
"require-dev": {
36+
"laravel/framework": "^9.0"
37+
},
38+
"scripts": {
39+
"post-update-cmd": [
40+
"cghooks remove",
41+
"cghooks add --ignore-lock",
42+
"cghooks update"
1043
],
11-
"require": {
12-
"laravel-lang/lang": "^9.0",
13-
"symfony/process": "^5.0.0",
14-
"ext-json": "*"
15-
},
16-
"autoload": {
17-
"psr-4": {
18-
"Overtrue\\LaravelLang\\": "src/"
19-
}
20-
},
21-
"license": "MIT",
22-
"authors": [
23-
{
24-
"name": "overtrue",
25-
"email": "[email protected]"
26-
}
44+
"post-merge": "composer install",
45+
"post-install-cmd": [
46+
"cghooks remove",
47+
"cghooks add --ignore-lock",
48+
"cghooks update"
2749
],
28-
"extra": {
29-
"laravel": {
30-
"providers": [
31-
"Overtrue\\LaravelLang\\TranslationServiceProvider"
32-
]
33-
}
34-
},
35-
"require-dev": {
36-
"laravel/framework": "~8.1"
37-
},
38-
"scripts": {
39-
"check-style": "php-cs-fixer fix --using-cache=no --diff --config=.php_cs --dry-run --ansi",
40-
"fix-style": "php-cs-fixer fix --using-cache=no --config=.php_cs --ansi"
41-
}
42-
}
50+
"cghooks": "vendor/bin/cghooks",
51+
"check-style": "php-cs-fixer fix --using-cache=no --diff --dry-run --ansi",
52+
"fix-style": "php-cs-fixer fix --using-cache=no --ansi"
53+
},
54+
"scripts-descriptions": {
55+
"check-style": "Run style checks (only dry run - no fixing!).",
56+
"fix-style": "Run style checks and fix violations."
57+
}
58+
}

0 commit comments

Comments
 (0)