Skip to content

Commit 8d29070

Browse files
authored
Update README.md for Laravel 11 compatibility + update versions in Github Actions tests (#37)
* Update README.md - compatibility with Laravel 11 * note about the lang directory and default language files since Laravel 9
1 parent 50976e8 commit 8d29070

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

.github/workflows/test.yml

+5-2
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,19 +33,21 @@ 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
3841
steps:
39-
- uses: actions/checkout@v3
42+
- uses: actions/checkout@v4
4043
- name: Install PHP
4144
uses: shivammathur/setup-php@v2
4245
with:
4346
php-version: ${{ matrix.php }}
4447
env:
4548
COMPOSER_TOKEN: ${{ secrets.COMPOSER_TOKEN }}
4649
- name: Cache PHP dependencies
47-
uses: actions/cache@v3
50+
uses: actions/cache@v4
4851
with:
4952
path: vendor
5053
key: ${{ runner.os }}-php-${{ matrix.php }}-composer-${{ matrix.composer_flag }}-${{ hashFiles('**/composer.json') }}

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 you 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)