Skip to content

Commit b9a48e4

Browse files
committed
Updated readme + changelog
1 parent a34a277 commit b9a48e4

File tree

2 files changed

+24
-7
lines changed

2 files changed

+24
-7
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## v1.3 - 2020-08-08
8+
### Added
9+
- Added `larex:export` command (it's an alias of `larex` command)
10+
11+
### Changed
12+
- Deprecated `larex` command (it will be removed in the next release)
13+
14+
### Fixed
15+
- Sentences with line break aren't escaped.
16+
717
## v1.2 - 2020-07-18
818
### Added
919
- Added `larex:import` command

README.md

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
[![License](https://poser.pugx.org/lukasss93/laravel-larex/license)](https://packagist.org/packages/lukasss93/laravel-larex)
99
![GitHub Workflow Status](https://img.shields.io/github/workflow/status/Lukasss93/laravel-larex/run-tests)
1010
[![Coveralls github](https://img.shields.io/coveralls/github/Lukasss93/laravel-larex)](https://coveralls.io/github/Lukasss93/laravel-larex)
11-
[![Chat](https://img.shields.io/badge/chat-on%20telegram-blue)](https://t.me/Lukasss93)
11+
[![Chat](https://img.shields.io/badge/chat%20on-telegram-blue)](https://t.me/Lukasss93)
1212

1313
Translate your Laravel application from a single CSV file!
1414

@@ -39,15 +39,15 @@ This step *can be skipped* if package auto-discovery is enabled.
3939

4040
2. Open the *project-root/resources/lang/localization.csv* file and edit it as you see fit.
4141

42-
3. Finally, you can use `php artisan larex` to translate your entries from the csv file to the laravel php files.
42+
3. Finally, you can use `php artisan larex:export` to translate your entries from the csv file to the laravel php files.
4343

4444
### Tips
4545
* You can import existing laravel php files with `php artisan larex:import`.
4646
* You can use `php artisan larex:init --base` to init the CSV file with default Laravel entries.
4747
* The **key** column inside the CSV file supports the **dot notation** for nested arrays.
4848
* You can watch your CSV file with `php artisan larex --watch`
4949
* You can use `php artisan larex:sort` to sort the CSV file by group and key.
50-
* Be careful when using the `php artisan larex` command! It will overwrite all files named with the group names inside the CSV.
50+
* Be careful when using the `php artisan larex:export` command! It will overwrite all files named with the group names inside the CSV.
5151
* Be careful when using the **dot notation**! Only the **last** entry will override the value.
5252

5353
### Example
@@ -57,9 +57,10 @@ This step *can be skipped* if package auto-discovery is enabled.
5757
| group | key | en | it |
5858
|---|---|---|---|
5959
| app | hello | Hello | Ciao |
60-
| app | developers | Developers | Sviluppatori |
60+
| app | list.developers | Developers | Sviluppatori |
61+
| app | list.teachers | Teachers | Insegnanti |
6162

62-
3. Run `php artisan larex` command
63+
3. Run `php artisan larex:export` command
6364
4. You'll get the following files:
6465
```php
6566
//project-root/resources/lang/en/app.php
@@ -68,7 +69,10 @@ This step *can be skipped* if package auto-discovery is enabled.
6869

6970
return [
7071
'hello' => 'Hello',
71-
'developers' => 'Developers',
72+
'list' => [
73+
'developers' => 'Developers',
74+
'teachers' => 'Teachers',
75+
]
7276
];
7377

7478
//project-root/resources/lang/it/app.php
@@ -77,7 +81,10 @@ This step *can be skipped* if package auto-discovery is enabled.
7781

7882
return [
7983
'hello' => 'Ciao',
80-
'developers' => 'Sviluppatori',
84+
'list' => [
85+
'developers' => 'Sviluppatori',
86+
'teachers' => 'Insegnanti',
87+
]
8188
];
8289
```
8390

0 commit comments

Comments
 (0)