Skip to content

Commit 05c9b7b

Browse files
Bump Publisher to version 15
1 parent c50224b commit 05c9b7b

File tree

14 files changed

+280
-107
lines changed

14 files changed

+280
-107
lines changed

composer.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@
4848
},
4949
"require": {
5050
"php": "^8.1",
51-
"laravel-lang/attributes": "^2.4.1",
52-
"laravel-lang/http-statuses": "^3.4.5",
53-
"laravel-lang/lang": "^13.2.8",
54-
"laravel-lang/locales": "^1.4",
55-
"laravel-lang/publisher": "^14.7.1"
51+
"laravel-lang/attributes": "^2.5.0",
52+
"laravel-lang/http-statuses": "^3.5.0",
53+
"laravel-lang/lang": "^13.3.0",
54+
"laravel-lang/locales": "^1.5",
55+
"laravel-lang/publisher": "^15.0"
5656
},
5757
"require-dev": {
5858
"orchestra/testbench": "^8.14",
@@ -63,7 +63,7 @@
6363
"prefer-stable": true,
6464
"autoload-dev": {
6565
"psr-4": {
66-
"Tests\\": "tests"
66+
"Tests\\": "tests/"
6767
}
6868
},
6969
"config": {

docs/.vuepress/config.js

Lines changed: 27 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import dotenv from 'dotenv'
22

3-
import { defaultTheme, viteBundler } from 'vuepress'
4-
import { docsearchPlugin } from '@vuepress/plugin-docsearch'
5-
import { containerPlugin } from '@vuepress/plugin-container'
6-
import { githubLinkifyPlugin } from 'vuepress-plugin-github-linkify'
3+
import {defaultTheme, viteBundler} from 'vuepress'
4+
import {docsearchPlugin} from '@vuepress/plugin-docsearch'
5+
import {containerPlugin} from '@vuepress/plugin-container'
6+
import {githubLinkifyPlugin} from 'vuepress-plugin-github-linkify'
77

88
dotenv.config()
99

@@ -15,8 +15,8 @@ module.exports = {
1515
description: 'Easily connect the necessary language packs to the application',
1616

1717
head: [
18-
['link', { rel: 'icon', href: `https://${ hostname }/images/logo.svg` }],
19-
['meta', { name: 'twitter:image', content: `https://${ hostname }/images/social-logo.png` }]
18+
['link', {rel: 'icon', href: `https://${hostname}/images/logo.svg`}],
19+
['meta', {name: 'twitter:image', content: `https://${hostname}/images/social-logo.png`}]
2020
],
2121

2222
bundler: viteBundler(),
@@ -25,7 +25,7 @@ module.exports = {
2525
hostname,
2626
base: '/',
2727

28-
logo: `https://${ hostname }/images/logo.svg`,
28+
logo: `https://${hostname}/images/logo.svg`,
2929

3030
repo: 'https://github.com/Laravel-Lang/common',
3131
repoLabel: 'GitHub',
@@ -58,7 +58,26 @@ module.exports = {
5858
text: 'Prologue',
5959
collapsible: true,
6060
children: [
61-
'/installation/upgrade-guide/index.md',
61+
{
62+
text: 'Upgrade Guide',
63+
children: [
64+
{
65+
text: 'Common',
66+
children: [
67+
'/installation/upgrade-guide/common/5.md',
68+
]
69+
},
70+
{
71+
text: 'Publisher',
72+
children: [
73+
'/installation/upgrade-guide/publisher/15.md',
74+
]
75+
},
76+
'/installation/upgrade-guide/laravel-lang.md',
77+
'/installation/upgrade-guide/caouecs.md',
78+
]
79+
},
80+
6281
'/installation/compatibility/support-policy.md',
6382
'/installation/about.md'
6483
]

docs/installation/compatibility/attributes.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ title: Attributes
66

77
| Laravel, Lumen | PHP | Publisher | Package Version | Status |
88
|----------------------|--------------------|-------------|-----------------|---------------------------------------|
9+
| 10.x, 11.x | 8.1, 8.2 | 15.x | `^2.5` | ![Supported][badge_supported] |
910
| 8.x, 9.x, 10.x, 11.x | 8.1, 8.2 | 14.x | `^2.0` | ![Supported][badge_supported] |
1011
| 7.x, 8.x, 9.x | 7.3, 7.4, 8.0, 8.1 | 12.1+, 13.x | `^1.0` | ![Not Supported][badge_not_supported] |
1112

docs/installation/compatibility/common.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@ title: Common
44

55
# Compatibility: Common
66

7-
| Laravel, Lumen | PHP | Package Version | What packages will be installed | Status |
8-
|----------------|--------------------|-----------------|---------------------------------------------------------------------------|---------------------------------------|
9-
| 10.x, 11.x | 8.1, 8.2 | `^4.0` | Publisher 14.x, Lang 13.x, Attributes 2.x, HTTP Statuses 3.x, Locales 1.x | ![Supported][badge_supported] |
10-
| 8.x, 9.x, 10.x | 8.1, 8.2 | `^3.0` | Publisher 14.x, Lang 12.x, Attributes 2.x, HTTP Statuses 3.x | ![Not Supported][badge_not_supported] |
11-
| 7.x, 8.x, 9.x | 8.0, 8.1 | `^2.0` | Publisher 13.x, Lang 10.x, Attributes 1.x, HTTP Statuses 2.x | ![Not Supported][badge_not_supported] |
12-
| 7.x, 8.x, 9.x | 7.3, 7.4, 8.0, 8.1 | `^1.0` | Publisher 12.x, Lang 10.x, Attributes 1.x, HTTP Statuses 2.x | ![Not Supported][badge_not_supported] |
7+
| Laravel, Lumen | PHP | Package Version | What packages will be installed | Status |
8+
|----------------|--------------------|-----------------|------------------------------------------------------------------------------|---------------------------------------|
9+
| 10.x, 11.x | 8.1, 8.2 | `^5.0` | Publisher 15.x, Lang 13.3+, Attributes 2.5+, HTTP Statuses 3.5+, Locales 1.x | ![Supported][badge_supported] |
10+
| 10.x, 11.x | 8.1, 8.2 | `^4.0` | Publisher 14.x, Lang 13.x, Attributes 2.x, HTTP Statuses 3.x, Locales 1.x | ![Not Supported][badge_not_supported] |
11+
| 8.x, 9.x, 10.x | 8.1, 8.2 | `^3.0` | Publisher 14.x, Lang 12.x, Attributes 2.x, HTTP Statuses 3.x | ![Not Supported][badge_not_supported] |
12+
| 7.x, 8.x, 9.x | 8.0, 8.1 | `^2.0` | Publisher 13.x, Lang 10.x, Attributes 1.x, HTTP Statuses 2.x | ![Not Supported][badge_not_supported] |
13+
| 7.x, 8.x, 9.x | 7.3, 7.4, 8.0, 8.1 | `^1.0` | Publisher 12.x, Lang 10.x, Attributes 1.x, HTTP Statuses 2.x | ![Not Supported][badge_not_supported] |
1314

1415
[badge_not_supported]: https://img.shields.io/badge/not%20supported-lightgrey?style=flat-square
1516

docs/installation/compatibility/http-statuses.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ title: HTTP Statuses
66

77
| Laravel, Lumen | PHP | Publisher | Package Version | Status |
88
|----------------------|--------------------|-----------|-----------------|---------------------------------------|
9+
| 10.x, 11.x | 8.1, 8.2 | 15.x | `^3.5` | ![Supported][badge_supported] |
910
| 8.x, 9.x, 10.x, 11.x | 8.1, 8.2 | 14.x | `^3.0` | ![Supported][badge_supported] |
1011
| 7.x, 8.x, 9.x | 8.0, 8.1 | 13.x | `^2.0` | ![Not Supported][badge_not_supported] |
1112
| 7.x, 8.x | 7.3, 7.4, 8.0, 8.1 | 10.x | `^1.0` | ![Not Supported][badge_not_supported] |

docs/installation/compatibility/publisher.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ title: Publisher
66

77
| Laravel, Lumen | PHP | Package Version | Comment |
88
|------------------------------|-------------------------|-----------------|---------------------------------------|
9-
| 8.x, 9.x, 10.x, 11.x | 8.1, 8.2 | `^14.0` | ![Supported][badge_supported] |
9+
| 10.x, 11.x | 8.1, 8.2 | `^15.0` | ![Supported][badge_supported] |
10+
| 8.x, 9.x, 10.x, 11.x | 8.1, 8.2 | `^14.0` | ![Not Supported][badge_not_supported] |
1011
| 7.x, 8.x, 9.x | 8.0, 8.1 | `^13.0` | ![Not Supported][badge_not_supported] |
1112
| 7.x, 8.x, 9.x | 7.3, 7.4, 8.0, 8.1 | `^12.0` | ![Not Supported][badge_not_supported] |
1213
| 7.x, 8.x, 9.x | 7.3, 7.4, 8.0, 8.1 | `^11.2` | ![Not Supported][badge_not_supported] |
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# From `caouecs/laravel-lang`
2+
3+
If you are using the old version of the `laravel-lang/lang` package when it was called `caouecs/laravel-lang`, then you
4+
need to follow the steps below to upgrade.
5+
6+
You also need to remove all package managers responsible for installing localizations in the project. You can do all
7+
this with one command:
8+
9+
```bash:no-line-numbers
10+
composer remove caouecs/laravel-lang laravel-lang/publisher overtrue/laravel-lang arcanedev/laravel-lang andrey-helldar/laravel-lang-publisher
11+
```
12+
13+
Next, you need to delete the `config/lang-publisher.php` file if it exists:
14+
15+
```bash:no-line-numbers
16+
rm -f config/lang-publisher.php
17+
```
18+
19+
After that, you can install the latest version of `Laravel Lang`:
20+
21+
```bash:no-line-numbers
22+
composer require laravel-lang/common --dev
23+
```
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# To 5 from 4
2+
3+
* [Updating Dependencies](#updating-dependencies)
4+
* [Upgrade publisher](#upgrade-publisher)
5+
6+
## Updating Dependencies
7+
8+
You should update the following dependency in your application's `composer.json` file:
9+
10+
* `laravel-lang/common` to `^5.0`
11+
12+
Rename the configuration file:
13+
14+
```bash
15+
mv config/lang-publisher.php config/localization.php
16+
```
17+
18+
Run the update dependency console command:
19+
20+
```bash
21+
composer update
22+
```
23+
24+
## Upgrade publisher
25+
26+
If you use access to locales or a locale helper in production, then also follow the necessary steps described in
27+
the [publisher upgrade section](../publisher/15.md#new-constants-namespace).
28+
29+
## Using in production
30+
31+
If you use access to facades and locales in production, then you also need to perform the following steps:
32+
33+
```bash
34+
composer require laravel-lang/common --dev --quiet
35+
composer require laravel-lang/locales
36+
```

docs/installation/upgrade-guide/index.md

Lines changed: 0 additions & 51 deletions
This file was deleted.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# From `laravel-lang/*`
2+
3+
::: tip
4+
Check the version of the framework and PHP against the [compatibility](../compatibility/common.md) table.
5+
:::
6+
7+
First remove the old dependencies:
8+
9+
```bash:no-line-numbers
10+
composer remove laravel-lang/publisher laravel-lang/lang laravel-lang/attributes laravel-lang/http-statuses
11+
```
12+
13+
After that, install the `laravel-lang/common` version of the desired version.
14+
15+
```bash:no-line-numbers
16+
composer require laravel-lang/common --dev
17+
```
18+
19+
If you want to use the list of locales in production, then install the dependency separately:
20+
21+
```bash:no-line-numbers
22+
composer require laravel-lang/locales
23+
```
24+
25+
Enjoy! 🙂

0 commit comments

Comments
 (0)