Skip to content

Commit e862786

Browse files
committed
Update README.md
- compatibility with Laravel 11 - note about the lang directory and default language files since Laravel 9
1 parent 50976e8 commit e862786

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

.github/workflows/test.yml

+3
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
- 8.0
1717
- 8.1
1818
- 8.2
19+
- 8.3
1920
composer_flag:
2021
- --prefer-lowest
2122
-
@@ -32,6 +33,8 @@ jobs:
3233
composer_flag: --prefer-lowest # /
3334
- php: 8.2 # /
3435
composer_flag: --prefer-lowest # /
36+
- php: 8.3 # /
37+
composer_flag: --prefer-lowest # /
3538
env:
3639
COMPOSER_MEMORY_LIMIT: -1
3740
CC_TEST_REPORTER_ID: 2f4620ac239cc7fdb27b299c24422281b04fd8012820ba173e92c70953385958

README.md

+11-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# [Translation.io](https://translation.io/laravel) client for Laravel 5.5+ to 10.x
1+
# [Translation.io](https://translation.io/laravel) client for Laravel 5.5+ to 11.x
22

33
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE)
44
[![Build Status](https://github.com/translation/laravel/actions/workflows/test.yml/badge.svg?branch=master)](https://github.com/translation/laravel/actions/workflows/test.yml)
@@ -18,8 +18,6 @@ Write only the source text, and keep it synchronized with your translators on [T
1818
<img width="720px" alt="Translation.io interface" src="https://translation.io/gifs/translation.gif">
1919
</a>
2020

21-
[Technical Demo](https://translation.io/videos/laravel.mp4) (2.5min)
22-
2321
2422

2523
## Table of contents
@@ -199,6 +197,16 @@ return [
199197
php artisan translation:init
200198
~~~
201199

200+
Note: since **Laravel 9**, the `lang` directory and the default set of language files
201+
used by Laravel are **not** included by default in new projects
202+
(see [official documentation](https://laravel.com/docs/master/localization#publishing-the-language-files)),
203+
so may need to run the `lang:publish` command to generate them:
204+
205+
~~~bash
206+
php artisan lang:publish
207+
~~~
208+
209+
202210
If you need to add or remove languages in the future, please read
203211
[this section](#add-or-remove-language) about that.
204212

0 commit comments

Comments
 (0)