Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
- compatibility with Laravel 11
- note about the lang directory and default language files since Laravel 9
  • Loading branch information
didier-84 committed May 22, 2024
1 parent 50976e8 commit e862786
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
- 8.0
- 8.1
- 8.2
- 8.3
composer_flag:
- --prefer-lowest
-
Expand All @@ -32,6 +33,8 @@ jobs:
composer_flag: --prefer-lowest # /
- php: 8.2 # /
composer_flag: --prefer-lowest # /
- php: 8.3 # /
composer_flag: --prefer-lowest # /
env:
COMPOSER_MEMORY_LIMIT: -1
CC_TEST_REPORTER_ID: 2f4620ac239cc7fdb27b299c24422281b04fd8012820ba173e92c70953385958
Expand Down
14 changes: 11 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# [Translation.io](https://translation.io/laravel) client for Laravel 5.5+ to 10.x
# [Translation.io](https://translation.io/laravel) client for Laravel 5.5+ to 11.x

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

[Technical Demo](https://translation.io/videos/laravel.mp4) (2.5min)

Need help? [[email protected]](mailto:[email protected])

## Table of contents
Expand Down Expand Up @@ -199,6 +197,16 @@ return [
php artisan translation:init
~~~

Note: since **Laravel 9**, the `lang` directory and the default set of language files
used by Laravel are **not** included by default in new projects
(see [official documentation](https://laravel.com/docs/master/localization#publishing-the-language-files)),
so may need to run the `lang:publish` command to generate them:

~~~bash
php artisan lang:publish
~~~


If you need to add or remove languages in the future, please read
[this section](#add-or-remove-language) about that.

Expand Down

0 comments on commit e862786

Please sign in to comment.