Compare commits

...
66 Commits
Author SHA1 Message Date
caouecs 7c5f7dd066 Changelog: 8.1.2 2021-04-07 09:45:47 +02:00
GitHub Action 648d77bc6a Updated status of translations 2021-04-06 12:42:48 +00:00
Fred Delrieu d5c00e03a5 Merge pull request #1597 from masterix21/patch-1
Update it.json
2021-04-06 14:42:18 +02:00
Luca Longo ee0667c450 Update it.json 2021-04-06 10:25:42 +02:00
GitHub Action 4eb7bd2400 Updated status of translations 2021-04-06 07:55:09 +00:00
Fred Delrieu d37fb6efb9 [fr] Excludes needed 2021-04-06 09:54:43 +02:00
GitHub Action 7a7dbb46d8 Updated status of translations 2021-04-06 07:53:08 +00:00
Fred Delrieu 16b9ee0d65 Merge pull request #1596 from masterix21/master
Update IT translations
2021-04-06 09:52:38 +02:00
Luca Longo 1bbcf01400 Update IT translations 2021-04-05 22:44:41 +02:00
GitHub Action 708753b286 Updated status of translations 2021-04-04 13:19:37 +00:00
Fred Delrieu a954a88df3 Merge pull request #1595 from andrey-helldar/patch/github-pages
Improved the look of the translation status pages
2021-04-04 15:19:03 +02:00
Andrey Helldar 57f65b9fba Added a little protection against passing negative values 2021-04-04 04:34:03 +03:00
Andrey Helldar c8aae5cffe Minor code optimization 2021-04-04 04:28:28 +03:00
Andrey Helldar cbe1995a37 Improved the look of the translation status pages 2021-04-04 04:14:55 +03:00
Fred Delrieu 2ff1ca0979 Merge pull request #1593 from andrey-helldar/patch/github-pages
Updated links to documentation
2021-04-02 20:47:24 +02:00
Andrey Helldar 7c9184845e Updated links to documentation 2021-04-02 21:12:06 +03:00
Fred Delrieu 0a4213fa34 Merge pull request #1592 from andrey-helldar/patch/github-pages
Minor edits for documentation on GitHub Pages
2021-04-02 19:09:17 +02:00
Andrey Helldar f7252e8eee Set page title in GitHub Pages 2021-04-02 18:44:22 +03:00
Andrey Helldar 41b36ad1bc Updated docs/index.md 2021-04-02 18:44:01 +03:00
Andrey Helldar 105e6c3c01 Removed unnecessary file 2021-04-02 18:43:39 +03:00
Fred Delrieu 297fd2722f Set theme jekyll-theme-cayman 2021-04-02 16:37:41 +02:00
Fred Delrieu ca5e5668cc Merge pull request #1586 from andrey-helldar/patch/2021-04-01/17-08
Optimizing the location of documentation files
2021-04-02 16:11:42 +02:00
Andrey Helldar 407aae3a8e Merge remote-tracking branch 'caouecs/master' into patch/2021-04-01/17-08 2021-04-02 17:00:42 +03:00
GitHub Action b0d2076f84 Updated todo.md file 2021-04-02 13:58:11 +00:00
Fred Delrieu faf48a64ef Merge pull request #1591 from andrey-helldar/patch/2021-04-02/16-47
Fixed Todo Script : problem of comparaison
2021-04-02 15:57:45 +02:00
Fred Delrieu 0bd9b6b79d Merge pull request #1590 from andrey-helldar/patch/2021-04-02/16-33
Fixed the location of the African language exception file
2021-04-02 15:57:28 +02:00
Andrey Helldar bd34c2ec49 Update docs/changelog.md 2021-04-02 16:57:01 +03:00
Andrey Helldar fe3f3ea33f Fixed Todo Script : problem of comparaison 2021-04-02 16:52:32 +03:00
Andrey Helldar 35c4afbbca Fixed the location of the African language exception file 2021-04-02 16:47:05 +03:00
Andrey Helldar cc21f3649b Merge remote-tracking branch 'caouecs/master' into patch/2021-04-01/17-08
# Conflicts:
#	docs/statuses/nl.md
2021-04-02 14:59:39 +03:00
Andrey Helldar a5e4a69431 Merge pull request #13 from andrey-helldar/patch/github-pages
Updated breadcrumbs
2021-04-01 22:13:02 +03:00
Andrey Helldar 1ad6d9e289 Updated breadcrumbs 2021-04-01 22:12:00 +03:00
Andrey Helldar 01b97aef1a Merge pull request #12 from andrey-helldar/patch/github-pages
Fixed page rendering error in GitHub Pages
2021-04-01 21:51:23 +03:00
Andrey Helldar f5344b6d79 Fixed test 2021-04-01 21:50:47 +03:00
Andrey Helldar 00a62b9f87 Fixed page rendering error in GitHub Pages 2021-04-01 21:47:49 +03:00
Andrey Helldar bd8c816687 Fixed merging conflict 2021-04-01 17:11:30 +03:00
Andrey Helldar e0480186a4 Merge remote-tracking branch 'caouecs/master' into patch/2021-04-01/17-08
# Conflicts:
#	docs/status.md
#	docs/statuses/ar.md
#	docs/statuses/fr.md
2021-04-01 17:09:49 +03:00
Andrey Helldar 717cd93c9c Updated templates 2021-04-01 17:07:00 +03:00
Andrey Helldar 70be38c147 Update docs/_config.yml 2021-04-01 16:14:48 +03:00
Andrey Helldar e80d37fef8 Update status 2021-04-01 16:03:32 +03:00
Andrey Helldar 6fe7804811 Update contributing-code.md 2021-04-01 15:57:53 +03:00
Andrey Helldar 1f0ec2be08 Updated docs/_config.yml 2021-04-01 15:56:46 +03:00
Andrey Helldar eac4571b6f Filename changed due to conflict when compiling GitHub Pages 2021-04-01 15:55:40 +03:00
Andrey Helldar a4bc77f540 Revert Contributing filename 2021-04-01 15:53:20 +03:00
Andrey Helldar d7e1083a19 Test 2021-04-01 15:51:59 +03:00
Andrey Helldar d41f8a1d7c Update docs/index.md 2021-04-01 15:48:03 +03:00
Andrey Helldar 9351c29b81 Update docs/_config.yml 2021-04-01 15:45:54 +03:00
Andrey Helldar b2fe53afb0 Update docs/_config.yml 2021-04-01 15:44:59 +03:00
Andrey Helldar 335bd26e10 Update 404.md 2021-04-01 15:35:47 +03:00
Andrey Helldar 7cb325b4da Update 404.md 2021-04-01 15:32:57 +03:00
Andrey Helldar db51774e3f Added 404 page 2021-04-01 15:31:14 +03:00
Andrey Helldar d51bfdc3a7 Regenerated pages 2021-04-01 15:25:42 +03:00
Andrey Helldar 1cb7c1a25f Added African language 2021-04-01 15:17:22 +03:00
Andrey Helldar 65e1819ff5 Removed unnecessary link 2021-04-01 15:16:16 +03:00
Andrey Helldar 4183611d97 Updated docs/status.md 2021-04-01 15:14:49 +03:00
Andrey Helldar c0dd1f6b7d Reduced the number of columns when generating the status.md file 2021-04-01 15:14:23 +03:00
Andrey Helldar 2b159639d3 Added automatic calculation of column width 2021-04-01 15:13:10 +03:00
Andrey Helldar 8028228fa0 Update statuses 2021-04-01 15:08:07 +03:00
Andrey Helldar ea224a40cc Updated docs/index.md 2021-04-01 15:07:16 +03:00
Andrey Helldar b4ecc8e6d0 Updated link.stub 2021-04-01 15:07:08 +03:00
Andrey Helldar a84466daee todo renamed to status 2021-04-01 15:00:52 +03:00
Andrey Helldar 11569d6569 Updated docs 2021-04-01 14:27:16 +03:00
Andrey Helldar 8c159b9cd4 Updated docs 2021-04-01 14:25:25 +03:00
Andrey Helldar 20b43c6d5c Added pages for documentation 2021-04-01 14:13:42 +03:00
Andrey Helldar 3725ac6ef5 Set theme jekyll-theme-cayman 2021-04-01 14:03:19 +03:00
Andrey Helldar 0bc562a9a9 First Initial of the GitHub Pages 2021-04-01 14:03:02 +03:00
210 changed files with 186854 additions and 46387 deletions

No files matched your search

+1 -9
View File
@@ -4,17 +4,9 @@
tests/ export-ignore
app/ export-ignore
docs/ export-ignore
excludes/ export-ignore
todo/ export-ignore
TODO.md export-ignore
CHANGELOG.md export-ignore
CODE_OF_CONDUCT.md export-ignore
CONTRIBUTING.md export-ignore
REFERENTS.md export-ignore
.editorconfig export-ignore
.gitattributes export-ignore
.gitignore export-ignore
@@ -1,4 +1,4 @@
name: make-todo
name: update-status
on:
push:
branches:
@@ -8,7 +8,7 @@ jobs:
build:
runs-on: ubuntu-latest
name: Keys actualization and generate todo.md
name: Keys actualization and update status of translations
steps:
- name: Checkout code
@@ -44,22 +44,22 @@ jobs:
echo ::set-output name=is_dirty::${IS_DIRTY}
- name: Generate todo.md
- name: Status update
if: success()
run: php app/todo.php
run: php app/status.php
- name: Commit file
id: commit_todo
id: commit_status
if: success()
run: |
IS_DIRTY=1
{ git add . && git commit -a -m "Updated todo.md file"; } || IS_DIRTY=0
{ git add . && git commit -a -m "Updated status of translations"; } || IS_DIRTY=0
echo ::set-output name=is_dirty::${IS_DIRTY}
- name: Push changes
uses: ad-m/github-push-action@master
if: success() && (steps.commit_keys.outputs.is_dirty == 1 || steps.commit_todo.outputs.is_dirty == 1)
if: success() && (steps.commit_keys.outputs.is_dirty == 1 || steps.commit_status.outputs.is_dirty == 1)
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
-294
View File
@@ -1,294 +0,0 @@
# Changelog
All notable changes to this project will be documented in this file, since v7.0.0.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [8.1.1] - 2021-04-02
## Added
* #1565 Add prohibited validation rule
* #1510 [af] Added Afrikaans language support
### Changed
* feature: [ar] #1584 validation.php validation-inline.php json file
* feature: [es] #1566 #1579 #1585 validation.php validation-inline.php json file
* feature: [fr] #1580 json file
* feature: [hy] #1572 #1573 #1574 auth.php validation.php
* feature: [it] #1568 json file
* feature: [nl] #1587 json file
* feature: [pt] #1575 auth.php
* feature: [pt_BR] #1564 #1575 auth.php json file
* feature: [ru] #1576 #1582 validation.php validation-inline.php json file
* feature: [tr] #1565 validation.php validation-inline.php
### Todo script
* New version with automatic add needed tags
* One page by language
## [8.1.0] - 2021-01-23
### Added
* Laravel Cashier
* Laravel Nova
* Script to update translation files
### Changed
* feature: [ar] #1538 #1553 json file
* feature: [de] #1532 json file
* feature: [es] #1534 #1545 #1550 #1556 json file
* feature: [fa] #1527 #1531 validation.php json file
* feature: [fr] #1528 #1539 json file
* feature: [it] #1535 #1548 #1552 json file
* feature: [ja] #1558 json file
* feature: [ko] #1524 json file
* feature: [mk] #1536 #1549 json file
* feature: [nl] #1529 json file
* feature: [pl] #1530 auth, json file
* feature: [ru] #1537 #1546 #1551 #1554 json file
* feature: [sk] json file
* feature: [vi] #1530 #1543 #1557 validation.php validation-inline.php json file
* feature: [zh_*] #1544 #1559 json file
## [8.0.3] - 2021-01-29
### Changed
* feature: [fr] json file
* feature: [zh_CN] #1523 auth.php validation.php validation-inline.php exclude.php json file
* feature: [zh_HK] #1523 auth.php validation.php validation-inline.php exclude.php json file
* feature: [zh_TW] #1523 auth.php validation.php validation-inline.php exclude.php json file
## [8.0.2] - 2021-01-25
### Added
* feature: #1481 Added new Jetstream 2.0 translation keys
* feature: #1485 Add missing tags and translate new tags for Jetstream 2.0
* feature: #1488 Add missing tags related to button's labels for mail - team
* feature: #1494 Translate subject of Team Invitation email
* feature: #1506 Translate cancel button of team invitation
### Changed
* feature: [ar] #1483 #1486 #1489 #1504 #1508 json file
* feature: [bs] #1500 #1505 auth.php passwords.php validation.php
* feature: [de] #1493 #1507 auth.php validation.php json file
* feature: [el] #1509 json file
* feature: [es] #1485 #1487 #1488 #1494 #1506 #1518 validation.php json file
* feature: [fr] #1501 json file
* feature: [it] #1491 #1502 #1511 json file
* feature: [ka] #1497 #1498 #1499 #1503 auth.php passwords.php validation.php
* feature: [lt] #1521 json file
* feature: [mk] #1521 #1522 auth.php passwords.php validation.php validation-inline.php json file
* feature: [nl] #1482 auth.php
* feature: [ro] #1517 auth.php
* feature: [ru] #1481 #1490 #1515 #1516 validation.php json file
* feature: [sl] #1480 excluse file and json file
* feature: [sr_Cyrl] #1521 validation-inline.php
* feature: [sr_Latn] #1521 validation-inline.php
* feature: [sv] #1492 json file
* feature: [uk] #1484 auth.php validation.php validation-inline.php json file
## [8.0.1] - 2021-01-03
### Added
* new: [oc] #1466
### Changed
* feature: [ar] #1476 json file
* feature: [de] #1471 #1472 json file
* feature: [fa] #1467 #1468 #1470 #1477 auth.php validation.php validation-inline.php json file
* feature: [fr] #1469 auth.php
* feature: [ja] #1461 exclude file and json file
* feature: [ru] #1465 #1475 json file
* feature: [sl] #1479 auth.php passwords.php validation.php validation-inline.php
* feature: [sr_Latn_ME] #1463 auth.php pagination.php passwords.php validation.php
## [8.0.0] - 2020-11-30
### Changed
* feature: [sr, uz, me] #1453 Rename \*\_Cyrillic to \*\_Cyrl and \*\_Latin to \*\_Latn (php Intl)]
## [7.0.9] - 2020-11-30
### Changed
* feature: [ar] #1419 #1431 #1447 #1462 validation-inline.php validation.php auth.php json file
* feature: [es] #1414 #1416 #1417 #1422 #1442 #1450 #1452 validation.php validation-inline.php passwords.php json file
* feature: [fr] #1441 json file
* feature: [id] #1439 auth.php
* feature: [it] #1435 #1459 validation-inline.php validation.php auth.php json file
* feature: [km] #1418 auth.php validation.php passwords.php
* feature: [ko] #1444 validation-inline.php validation.php auth.php json file
* feature: [lt] #1434 #1436 #1449 validation-inline.php validation.php auth.php json file
* feature: [nl] #1424 #1425 #1428 #1457 auth.php validation.php validation-inline.php json file
* feature: [pl] #1420 validation-inline.php validation.php
* feature: [de_CH] #1458 validation-inline.php validation.php
* feature: [pt_Br] #1415 json file
* feature: [ru] #1426 #1427 #1445 #1454 validation-inline.php validation.php auth.php json file
* feature: [sv] #1430 json file
* feature: [tr] #1448 #1456 json file
* feature: [uk] #1446 json file
* feature: [fa] #1451 json file
* feature: [vi] #1433 #1443 validation-inline.php validation.php passwords.php auth.php json file
## [7.0.8] - 2020-10-11
### Changed
* feature: #1383 #1411 [fr] json file
* feature: #1385 [el] json file
* feature: #1387 #1388 #1392 [ms] validation.php validation-inline.php passwords.php
* feature: #1390 #1398 [ar] json file
* feature: #1393 #1397 [ru] json file
* feature: #1393 #1394 [en] add tags
* feature: #1394 [es] json file
* feature: #1395 [pl] json file
* feature: #1400 [lt] json file
* feature: #1402 #1413 [it] validation-inline.php auth.php passwords.php json file
* feature: #1404 [pt] json file
* feature: #1412 [de] json file
### Documentation
* feature: #1386 Contributing
### Todo script
* fix: #1406 ignores the additional informations
### Workflow
* feature: #1401 #1403 Make todo
* feature: #1405 template bug report
## [7.0.7] - 2020-10-02
### Changed
* feature: #1375 [pt_BR] json file
* feature: #1379 [hr] passwords.php
* feature: #1380 [ms] validation.php
* feature: #1381 [id] json file
* feature: #1382 [tr] json file
### Todo script
* feature: #1378 exclude translation
## [7.0.6] - 2020-09-30
### Changed
* feature: #1339 #1369 [ar] json file
* feature: #1352 [uz_*] validation auth password
* feature: #1356 #1362 #1368 [ru] json file
* feature: #1358 #1374 [pt] json file
* feature: #1360 #1367 #1373 [pl] json file
* feature: #1361 #1371 [es] json file
* feature: #1361 #1368 [en] json file
* feature: #1363 [sr_*] json file
* feature: #1370 [de] json file
* feature: [fr] json file
## [7.0.5] - 2020-09-23
### Changed
* feature: #1327 #1328 [tr] validation.php
* feature: #1330 [nl] json file
* feature: #1331 [nl] validation-inline.php
* feature: #1332 [hu] validation.php
* feature: #1333 Laravel 8 support
* feature: #1335 #1354 Add support for Laravel JetStream
* feature: #1341 [es] json files
* feature: #1341 #1346 [en] json files
* feature: #1342 [pt] json files
* feature: #1345 [it] json files
* feature: #1346 [ru] json files
* feature: #1351 [pl] json files
## [7.0.4] - 2020-09-11
### Changed
* feature: new organization
* feature: #1316 [sr_*] validation-inline file
* feature: #1317 [es] json file
* feature: #1318 [fa] validation.password
* feature: #1320 [lt] validation-inline and validation
* feature: #1323 #1324 [id] json and validation-inline
* feature: #1326 [ko] validation-inline
## [7.0.3] - 2020-08-23
### Changed
* feature: #1302 #1306 #1307 [Ne] Translated to Nepali Language (Validation-inline and json)
* feature: #1310 [da] passwords.throttlled
* feature: #1312 [es] validation and validation-inline
* feature: #1313 [sq] validation-inline and validation translations
## [7.0.2] - 2020-08-05
### Added
* Changelog file
* #1293 [da] Add json
### Changed
* feature: #1290 [pl] Translate validation-inline; tweak some validation translations
* feature: #1291 [pt_BR] Update validation-inline
* feature: #1292 [es] Update json
* feature: #1294 Update readme
* feature: #1295 [pt] Update json, validation-inline, validation and passwords
* feature: #1297 [sq] Update auth, passwords and validation
* feature: #1298 [si] Update passwords
* feature: #1299 [zh_*] Update json and validation-inline
* feature: #1300 [uk] validation-inline
* feature: #1301 [uk] json
## [7.0.1] - 2020-07-14
### Added
* json files for uz_Cyrillic and uz_Latin
### Changed
* fix: #1269 json file names to follow ISO-15897
## [7.0.0] - 2020-07-13
### Changed
* feature: #1269 Rename locale folders following ISO 15897 format
[Unreleased]: https://github.com/caouecs/Laravel-lang/compare/8.1.1...master
[8.1.1]: https://github.com/caouecs/Laravel-lang/compare/8.1.0...8.1.1
[8.1.0]: https://github.com/caouecs/Laravel-lang/compare/8.0.3...8.1.0
[8.0.3]: https://github.com/caouecs/Laravel-lang/compare/8.0.2...8.0.3
[8.0.2]: https://github.com/caouecs/Laravel-lang/compare/8.0.1...8.0.2
[8.0.1]: https://github.com/caouecs/Laravel-lang/compare/8.0.0...8.0.1
[8.0.0]: https://github.com/caouecs/Laravel-lang/compare/7.0.9...8.0.0
[7.0.9]: https://github.com/caouecs/Laravel-lang/compare/7.0.8...7.0.9
[7.0.8]: https://github.com/caouecs/Laravel-lang/compare/7.0.7...7.0.8
[7.0.7]: https://github.com/caouecs/Laravel-lang/compare/7.0.6...7.0.7
[7.0.6]: https://github.com/caouecs/Laravel-lang/compare/7.0.5...7.0.6
[7.0.5]: https://github.com/caouecs/Laravel-lang/compare/7.0.4...7.0.5
[7.0.4]: https://github.com/caouecs/Laravel-lang/compare/7.0.3...7.0.4
[7.0.3]: https://github.com/caouecs/Laravel-lang/compare/7.0.2...7.0.3
[7.0.2]: https://github.com/caouecs/Laravel-lang/compare/7.0.1...7.0.2
[7.0.1]: https://github.com/caouecs/Laravel-lang/compare/7.0.0...7.0.1
[7.0.0]: https://github.com/caouecs/Laravel-lang/compare/6.1.4...7.0.0
+13 -63
View File
@@ -1,6 +1,14 @@
# Laravel-lang
# Laravel Lang
In this repository, you can find the lang files for the [Laravel Framework 4/5/6/7/8](https://laravel.com), [Laravel Jetstream](https://jetstream.laravel.com), [Laravel Fortify](https://github.com/laravel/fortify), [Laravel Cashier](https://laravel.com/docs/8.x/billing) and [Laravel Nova](https://nova.laravel.com).
In this repository, you can find the lang files for the [Laravel Framework 4/5/6/7/8](https://laravel.com), [Laravel Jetstream](https://jetstream.laravel.com)
, [Laravel Fortify](https://github.com/laravel/fortify), [Laravel Cashier](https://laravel.com/docs/8.x/billing) and [Laravel Nova](https://nova.laravel.com).
<p align="center">
[
<a href="https://laravel-lang.github.io/lang">Documentation</a> |
<a href="https://laravel-lang.github.io/lang/status.html">Completion Status</a>
]
</p>
## News
@@ -8,72 +16,14 @@ In this repository, you can find the lang files for the [Laravel Framework 4/5/6
* in version 7, we propose new directory names to follow ISO-15897 ( see #1269 )
* in version 8, we propose new directory names to follow Php Intl ( see #1453 )
## Install
### Via Composer
Install the Laravel-lang package to your Laravel project with composer using command from the table below based on the version of Laravel you are using:
| Laravel version | Composer command |
|-------------------------------------|---------------------------------------------------|
| Laravel 7-8 with Php Intl | `composer require laravel-lang/lang:~8.0` |
| Laravel 8.x | `composer require laravel-lang/lang:~7.0` |
| Laravel 7.x and new directory names | `composer require laravel-lang/lang:~7.0` |
| Laravel 7.x | `composer require laravel-lang/lang:~6.1` |
| Laravel 6.x | `composer require laravel-lang/lang:~5.0` |
| Laravel 5.8 | `composer require laravel-lang/lang:~4.0` |
| Laravel 5.1-5.7 | `composer require laravel-lang/lang:~3.0` |
| Laravel 5 | `composer require laravel-lang/lang:~2.0` |
| Laravel 4 | `composer require laravel-lang/lang:~1.0` |
#### Copy files
After adding the dependency using composer (as described above) to your application you can find the language files under the directory `vendor/laravel-lang/lang`.
Copy the folders (and JSON files) of languages that you want to use, into the directory `resources/lang` of your Laravel application (or `app/lang` in Laravel 4).
### Via GitHub
* Clone the [GitHub repository](https://github.com/Laravel-Lang/lang/) : *git clone https://github.com/Laravel-Lang/lang.git*
* Or download the [zip file](https://github.com/Laravel-Lang/lang/archive/master.zip)
* Choose the branch:
* `laravel4` for Laravel 4 project
* `master` for Laravel 5, 6, 7, 8 projects
* Copy the folders of languages that you want, in `resources/lang` folder of your Laravel application (or `app/lang` in Laravel 4).
### Via SVN
Run this in your project directory:
```sh
# Laravel 5:
svn export https://github.com/Laravel-Lang/lang/trunk/src/[language-code] resources/lang/[language-code]
# Laravel 4:
svn export https://github.com/Laravel-Lang/lang/branches/laravel4/[language-code] app/lang/[language-code]
```
Replace `[language-code]` by any of the languages listed [here](src).
## Usage [Laravel only]
In the file *config/app.php*, change the value of *locale* by the short name of your language (*app/config/app.php* in Laravel 4).
## Contributing
Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
## Status of files
* Check the [TODO.md](TODO.md) file to see the missing translations.
## Projects based on this package
* [LaravelLang](https://github.com/ARCANEDEV/LaravelLang) by [*@arcanedev-maroc*](https://github.com/ARCANEDEV) - Translations manager and checker for Laravel.
* [Laravel-lang](https://github.com/overtrue/laravel-lang) by [*@overtrue*](https://github.com/overtrue) - Command to add languages in your project.
* [Lang Publisher](https://github.com/andrey-helldar/laravel-lang-publisher) by [*@andrey-helldar*](https://github.com/andrey-helldar) - Easy installation and update of translation files for your project.
* [Lang Publisher](https://github.com/andrey-helldar/laravel-lang-publisher) by [*@andrey-helldar*](https://github.com/andrey-helldar) - Easy installation and
update of translation files for your project.
## Credits
- [Referents by language](REFERENTS.md)
- [Referents by language](docs/referents.md)
- [All Contributors](https://github.com/Laravel-Lang/lang/graphs/contributors)
-426
View File
@@ -1,426 +0,0 @@
# Todo List
<table width="100%">
<tr><td align="center" width="8%">
[af&nbsp;❗](todo/af.md)
</td>
<td align="center" width="8%">
[ar&nbsp;✔](todo/ar.md)
</td>
<td align="center" width="8%">
[az&nbsp;❗](todo/az.md)
</td>
<td align="center" width="8%">
[be&nbsp;❗](todo/be.md)
</td>
<td align="center" width="8%">
[bg&nbsp;❗](todo/bg.md)
</td>
<td align="center" width="8%">
[bn&nbsp;❗](todo/bn.md)
</td>
<td align="center" width="8%">
[bs&nbsp;❗](todo/bs.md)
</td>
<td align="center" width="8%">
[ca&nbsp;❗](todo/ca.md)
</td>
<td align="center" width="8%">
[cs&nbsp;❗](todo/cs.md)
</td>
<td align="center" width="8%">
[cy&nbsp;❗](todo/cy.md)
</td>
<td align="center" width="8%">
[da&nbsp;❗](todo/da.md)
</td>
<td align="center" width="8%">
[de&nbsp;❗](todo/de.md)
</td>
</tr>
<tr><td align="center" width="8%">
[de_CH&nbsp;❗](todo/de-ch.md)
</td>
<td align="center" width="8%">
[el&nbsp;❗](todo/el.md)
</td>
<td align="center" width="8%">
[es&nbsp;✔](todo/es.md)
</td>
<td align="center" width="8%">
[et&nbsp;❗](todo/et.md)
</td>
<td align="center" width="8%">
[eu&nbsp;❗](todo/eu.md)
</td>
<td align="center" width="8%">
[fa&nbsp;❗](todo/fa.md)
</td>
<td align="center" width="8%">
[fi&nbsp;❗](todo/fi.md)
</td>
<td align="center" width="8%">
[fil&nbsp;❗](todo/fil.md)
</td>
<td align="center" width="8%">
[fr&nbsp;❗](todo/fr.md)
</td>
<td align="center" width="8%">
[gl&nbsp;❗](todo/gl.md)
</td>
<td align="center" width="8%">
[he&nbsp;❗](todo/he.md)
</td>
<td align="center" width="8%">
[hi&nbsp;❗](todo/hi.md)
</td>
</tr>
<tr><td align="center" width="8%">
[hr&nbsp;❗](todo/hr.md)
</td>
<td align="center" width="8%">
[hu&nbsp;❗](todo/hu.md)
</td>
<td align="center" width="8%">
[hy&nbsp;❗](todo/hy.md)
</td>
<td align="center" width="8%">
[id&nbsp;❗](todo/id.md)
</td>
<td align="center" width="8%">
[is&nbsp;❗](todo/is.md)
</td>
<td align="center" width="8%">
[it&nbsp;❗](todo/it.md)
</td>
<td align="center" width="8%">
[ja&nbsp;❗](todo/ja.md)
</td>
<td align="center" width="8%">
[ka&nbsp;❗](todo/ka.md)
</td>
<td align="center" width="8%">
[kk&nbsp;❗](todo/kk.md)
</td>
<td align="center" width="8%">
[km&nbsp;❗](todo/km.md)
</td>
<td align="center" width="8%">
[kn&nbsp;❗](todo/kn.md)
</td>
<td align="center" width="8%">
[ko&nbsp;❗](todo/ko.md)
</td>
</tr>
<tr><td align="center" width="8%">
[lt&nbsp;❗](todo/lt.md)
</td>
<td align="center" width="8%">
[lv&nbsp;❗](todo/lv.md)
</td>
<td align="center" width="8%">
[mk&nbsp;❗](todo/mk.md)
</td>
<td align="center" width="8%">
[mn&nbsp;❗](todo/mn.md)
</td>
<td align="center" width="8%">
[mr&nbsp;❗](todo/mr.md)
</td>
<td align="center" width="8%">
[ms&nbsp;❗](todo/ms.md)
</td>
<td align="center" width="8%">
[nb&nbsp;❗](todo/nb.md)
</td>
<td align="center" width="8%">
[ne&nbsp;❗](todo/ne.md)
</td>
<td align="center" width="8%">
[nl&nbsp;❗](todo/nl.md)
</td>
<td align="center" width="8%">
[nn&nbsp;❗](todo/nn.md)
</td>
<td align="center" width="8%">
[oc&nbsp;❗](todo/oc.md)
</td>
<td align="center" width="8%">
[pl&nbsp;❗](todo/pl.md)
</td>
</tr>
<tr><td align="center" width="8%">
[ps&nbsp;❗](todo/ps.md)
</td>
<td align="center" width="8%">
[pt&nbsp;❗](todo/pt.md)
</td>
<td align="center" width="8%">
[pt_BR&nbsp;❗](todo/pt-br.md)
</td>
<td align="center" width="8%">
[ro&nbsp;❗](todo/ro.md)
</td>
<td align="center" width="8%">
[ru&nbsp;✔](todo/ru.md)
</td>
<td align="center" width="8%">
[sc&nbsp;❗](todo/sc.md)
</td>
<td align="center" width="8%">
[si&nbsp;❗](todo/si.md)
</td>
<td align="center" width="8%">
[sk&nbsp;❗](todo/sk.md)
</td>
<td align="center" width="8%">
[sl&nbsp;❗](todo/sl.md)
</td>
<td align="center" width="8%">
[sq&nbsp;❗](todo/sq.md)
</td>
<td align="center" width="8%">
[sr_Cyrl&nbsp;❗](todo/sr-cyrl.md)
</td>
<td align="center" width="8%">
[sr_Latn&nbsp;❗](todo/sr-latn.md)
</td>
</tr>
<tr><td align="center" width="8%">
[sr_Latn_ME&nbsp;❗](todo/sr-latn-me.md)
</td>
<td align="center" width="8%">
[sv&nbsp;❗](todo/sv.md)
</td>
<td align="center" width="8%">
[sw&nbsp;❗](todo/sw.md)
</td>
<td align="center" width="8%">
[tg&nbsp;❗](todo/tg.md)
</td>
<td align="center" width="8%">
[th&nbsp;❗](todo/th.md)
</td>
<td align="center" width="8%">
[tk&nbsp;❗](todo/tk.md)
</td>
<td align="center" width="8%">
[tl&nbsp;❗](todo/tl.md)
</td>
<td align="center" width="8%">
[tr&nbsp;❗](todo/tr.md)
</td>
<td align="center" width="8%">
[ug&nbsp;❗](todo/ug.md)
</td>
<td align="center" width="8%">
[uk&nbsp;❗](todo/uk.md)
</td>
<td align="center" width="8%">
[ur&nbsp;❗](todo/ur.md)
</td>
<td align="center" width="8%">
[uz_Cyrl&nbsp;❗](todo/uz-cyrl.md)
</td>
</tr>
<tr><td align="center" width="8%">
[uz_Latn&nbsp;❗](todo/uz-latn.md)
</td>
<td align="center" width="8%">
[vi&nbsp;❗](todo/vi.md)
</td>
<td align="center" width="8%">
[zh_CN&nbsp;❗](todo/zh-cn.md)
</td>
<td align="center" width="8%">
[zh_HK&nbsp;❗](todo/zh-hk.md)
</td>
<td align="center" width="8%">
[zh_TW&nbsp;❗](todo/zh-tw.md)
</td>
<td align="center" width="8%">
</td>
<td align="center" width="8%">
</td>
<td align="center" width="8%">
</td>
<td align="center" width="8%">
</td>
<td align="center" width="8%">
</td>
<td align="center" width="8%">
</td>
<td align="center" width="8%">
</td>
</tr>
</table>
+3 -2
View File
@@ -3,10 +3,11 @@
namespace LaravelLang\Lang;
use Helldar\Support\Concerns\Makeable;
use LaravelLang\Lang\Contracts\Application as ApplicationContract;
use LaravelLang\Lang\Contracts\Filesystem;
use LaravelLang\Lang\Contracts\Processable;
final class Application
final class Application implements ApplicationContract
{
use Makeable;
@@ -55,7 +56,7 @@ final class Application
return null;
}
public function filesystem(Filesystem $filesystem): self
public function filesystem(Filesystem $filesystem): ApplicationContract
{
$this->filesystem = $filesystem->application($this);
@@ -6,13 +6,13 @@ use Helldar\PrettyArray\Services\File as PrettyFile;
use Helldar\Support\Facades\Helpers\Filesystem\File;
/** @mixin \LaravelLang\Lang\Processors\Processor */
trait Excludeable
trait Excludes
{
protected array $excludes = [];
protected static array $excludes = [];
protected function hasExclude(string $key, string $locale): bool
{
return in_array($key, $this->getExcludes($locale)) || in_array($key, $this->getExcludes());
return in_array($key, $this->getExcludes($locale), true) || in_array($key, $this->getExcludes(), true);
}
protected function getExcludes(string $locale = null): array
@@ -21,10 +21,10 @@ trait Excludeable
$path = $this->app->excludePath($locale);
if ($this->excludes[$locale] ?? false) {
return $this->excludes[$locale];
if (static::$excludes[$locale] ?? false) {
return static::$excludes[$locale];
}
return $this->excludes[$locale] = File::exists($path) ? PrettyFile::make()->load($path) : [];
return static::$excludes[$locale] = File::exists($path) ? PrettyFile::make()->load($path) : [];
}
}
+20 -57
View File
@@ -3,76 +3,39 @@
namespace LaravelLang\Lang\Concerns;
use Helldar\PrettyArray\Services\File;
use LaravelLang\Lang\Constants\Resource;
use Helldar\Support\Facades\Helpers\Str;
/** @mixin \LaravelLang\Lang\Processors\Todo\Processor */
trait Template
{
protected array $templates = [];
protected static array $templates = [];
protected function getTemplate(string $filename): string
protected function template(string $filename, array $values = [], bool $trim = false, bool $return_empty = false): string
{
if ($this->templates[$filename] ?? false) {
return $this->templates[$filename];
$template = $this->getTemplate($filename, $trim);
return $this->replace($template, $values, $return_empty);
}
protected function replace(string $template, array $values, bool $return_empty = false): string
{
return $return_empty ? '' : Str::replace($template, $values, '{{%s}}');
}
protected function getTemplate(string $filename, bool $trim = false): string
{
if (static::$templates[$filename] ?? false) {
return static::$templates[$filename];
}
return $this->templates[$filename] = File::make()->loadRaw(
$template = File::make()->loadRaw(
$this->templatePath($filename)
);
return static::$templates[$filename] = $trim ? trim($template) : $template;
}
protected function templatePath(string $filename): string
{
return $this->app->resourcePath($filename);
}
protected function templateTable(): string
{
return $this->getTemplate(Resource::COMPONENT_TABLE);
}
protected function templateTableRow(): string
{
return $this->getTemplate(Resource::COMPONENT_TABLE_ROW);
}
protected function templateTabletColumn(): string
{
return $this->getTemplate(Resource::COMPONENT_TABLE_COLUMN);
}
protected function templateLink(): string
{
return $this->getTemplate(Resource::COMPONENT_LINK);
}
protected function templateTodo(): string
{
return $this->getTemplate(Resource::TODO);
}
protected function templateLocales(): string
{
return $this->getTemplate(Resource::LOCALE);
}
protected function templateList(): string
{
return $this->getTemplate(Resource::COMPONENT_LIST);
}
protected function templateListItem(): string
{
return $this->getTemplate(Resource::COMPONENT_LIST_ITEM);
}
protected function templateListItemJson(): string
{
return $this->getTemplate(Resource::COMPONENT_LIST_ITEM_JSON);
}
protected function templateAllTranslated(): string
{
return $this->getTemplate(Resource::COMPONENT_ALL_TRANSLATED);
}
}
+13 -13
View File
@@ -4,23 +4,23 @@ namespace LaravelLang\Lang\Constants;
final class Resource
{
public const TODO = 'todo.stub';
public const STATUS = 'status.stub';
public const LOCALE = 'locale.stub';
public const COMPONENT_LIST = 'components/list/index.stub';
public const COMPONENT_LIST_ITEM = 'components/list/item.stub';
public const COMPONENT_LIST_ITEM_JSON = 'components/list/item-json.stub';
public const COMPONENT_TABLE = 'components/table/index.stub';
public const COMPONENT_TABLE_ROW = 'components/table/row.stub';
public const COMPONENT_TABLE_COLUMN = 'components/table/column.stub';
public const COMPONENT_ALL_TRANSLATED = 'components/translated.stub';
public const COMPONENT_LINK = 'components/link.stub';
public const COMPONENT_ALL_TRANSLATED = 'components/translated.stub';
public const COMPONENT_LOCALE = 'components/locale.stub';
public const COMPONENT_TABLE = 'components/table/index.stub';
public const COMPONENT_TABLE_COLUMN = 'components/table/column.stub';
public const COMPONENT_TABLE_ROW = 'components/table/row.stub';
public const COMPONENT_TABLE_ATTRIBUTE_ALIGN = 'components/table/attributes/align.stub';
public const COMPONENT_TABLE_ATTRIBUTE_WIDTH = 'components/table/attributes/width.stub';
}
+26
View File
@@ -0,0 +1,26 @@
<?php
namespace LaravelLang\Lang\Contracts;
interface Application
{
public function __construct(string $base_path);
public function basePath(): string;
public function sourcePath(string $filename = null): string;
public function path(string $path = null): string;
public function excludePath(string $locale): string;
public function resourcePath(string $filename): string;
public function cleanPath(string $path = null): ?string;
public function filesystem(Filesystem $filesystem): self;
public function getFilesystem(): Filesystem;
public function processor(Processable $processor, Filesystem $filesystem): void;
}
+8
View File
@@ -0,0 +1,8 @@
<?php
namespace LaravelLang\Lang\Contracts;
interface Stringable
{
public function toString(): string;
}
+53
View File
@@ -0,0 +1,53 @@
<?php
namespace LaravelLang\Lang\Processors\Statuses;
use Helldar\Support\Facades\Helpers\Filesystem\Directory;
use Helldar\Support\Facades\Helpers\Str;
use LaravelLang\Lang\Constants\Resource;
use LaravelLang\Lang\Contracts\Stringable;
use LaravelLang\Lang\Services\Compilers\Collection;
use LaravelLang\Lang\Services\Compilers\Locale;
final class Locales extends Processor
{
protected function saving(): void
{
foreach ($this->locales as $locale => $items) {
$count = $this->countMissing($locale);
$content = $this->compileList($items);
$result = $this->compileContent($content, $locale, $count);
$filename = Str::slug($locale);
$this->save($this->pathStatus($filename . '.md'), $result);
}
}
protected function compileContent(string $content, string $locale, int $count): Stringable
{
return Locale::make($this->app)->items(compact('locale', 'count', 'content'));
}
protected function compileList(array $items): string
{
$content = Collection::make($this->app)->items($items)->toString();
return $content ?: $this->template(Resource::COMPONENT_ALL_TRANSLATED);
}
protected function ensureDirectory(): void
{
if (Directory::exists($this->pathStatus())) {
Directory::delete($this->pathStatus());
}
Directory::make($this->pathStatus());
}
protected function pathStatus(string $filename = null): string
{
return $this->app->path('docs/statuses/' . $filename);
}
}
+21
View File
@@ -0,0 +1,21 @@
<?php
namespace LaravelLang\Lang\Processors\Statuses;
use LaravelLang\Lang\Contracts\Stringable;
use LaravelLang\Lang\Services\Compilers\Status;
class Main extends Processor
{
protected function saving(): void
{
$result = $this->compileContent($this->locales);
$this->save('docs/status.md', $result);
}
protected function compileContent(array $items): Stringable
{
return Status::make($this->app)->items($items);
}
}
@@ -1,15 +1,16 @@
<?php
namespace LaravelLang\Lang\Processors\Todo;
namespace LaravelLang\Lang\Processors\Statuses;
use Helldar\Support\Facades\Helpers\Arr;
use Helldar\Support\Facades\Helpers\Filesystem\Directory;
use Helldar\Support\Facades\Helpers\Filesystem\File;
use Helldar\Support\Facades\Helpers\Str;
use Helldar\Support\Facades\Tools\Sorter;
use LaravelLang\Lang\Concerns\Excludeable;
use LaravelLang\Lang\Concerns\Excludes;
use LaravelLang\Lang\Concerns\Template;
use LaravelLang\Lang\Contracts\Filesystem;
use LaravelLang\Lang\Contracts\Stringable;
use LaravelLang\Lang\Processors\Processor as BaseProcessor;
use LaravelLang\Lang\Services\Filesystem\Base;
use LaravelLang\Lang\Services\Filesystem\Json as JsonFilesystem;
@@ -17,12 +18,12 @@ use LaravelLang\Lang\Services\Filesystem\Php as PhpFilesystem;
abstract class Processor extends BaseProcessor
{
use Excludeable;
use Excludes;
use Template;
protected string $extension = '.md';
protected string $target_path = 'todo';
protected string $target_path = 'statuses';
/** @var \LaravelLang\Lang\Contracts\Filesystem[]|array */
protected array $filesystems = [];
@@ -69,11 +70,9 @@ abstract class Processor extends BaseProcessor
}
}
protected function save(string $path, array|string $content): void
protected function save(string $path, Stringable $content): void
{
$content = is_string($content) ? $content : implode(PHP_EOL, $content);
File::store($path, $content);
File::store($path, $content->toString());
}
protected function compare(array $source, array $target, string $locale, bool $is_validation): array
@@ -86,7 +85,7 @@ abstract class Processor extends BaseProcessor
protected function hasEquals($value, $key, array $source, string $locale, bool $is_validation): bool
{
if ($is_validation && in_array($key, ['custom', 'attributes'])) {
if ($is_validation && in_array($key, ['custom', 'attributes'], true)) {
return false;
}
@@ -191,16 +190,6 @@ abstract class Processor extends BaseProcessor
return Str::endsWith($filename, '.json');
}
protected function link(?string $value): string
{
return empty($value) ? '' : sprintf('todo/%s.md', Str::slug($value));
}
protected function replace(string $template, array $values, bool $return_empty = false): string
{
return $return_empty ? '' : Str::replace($template, $values, '{{%s}}');
}
protected function ensureDirectory(): void
{
//
-65
View File
@@ -1,65 +0,0 @@
<?php
namespace LaravelLang\Lang\Processors\Todo;
use Helldar\Support\Facades\Helpers\Filesystem\Directory;
use Helldar\Support\Facades\Helpers\Str;
final class Locales extends Processor
{
protected function saving(): void
{
foreach ($this->locales as $locale => $items) {
$count = $this->countMissing($locale);
$content = $this->compileList($items);
$result = $this->replace($this->templateLocales(), compact('locale', 'count', 'content'));
$filename = Str::slug($locale);
$this->save('todo/' . $filename . '.md', $result);
}
}
protected function compileList(array $items): string
{
$list = '';
foreach ($items as $filename => $values) {
$content = $this->compileItems($values);
$count = count($values);
$list .= $this->replace($this->templateList(), compact('filename', 'count', 'content'));
}
return $list ?: $this->templateAllTranslated();
}
protected function compileItems(array $items): string
{
$content = '';
foreach ($items as $key => $item) {
$template = $key === $item ? $this->templateListItemJson() : $this->templateListItem();
$content .= $this->replace($template, compact('key', 'item'));
}
return $content;
}
protected function ensureDirectory(): void
{
if (Directory::exists($this->pathTodo())) {
Directory::delete($this->pathTodo());
}
Directory::make($this->pathTodo());
}
protected function pathTodo(): string
{
return $this->app->path('todo');
}
}
-91
View File
@@ -1,91 +0,0 @@
<?php
namespace LaravelLang\Lang\Processors\Todo;
use LaravelLang\Lang\Models\Locale;
class Main extends Processor
{
protected int $columns = 12;
protected function saving(): void
{
$rows = '';
foreach ($this->grouped() as $items) {
$rows .= $this->compileRow($items);
}
$content = $this->compileTable($rows);
$result = $this->replace($this->templateTodo(), compact('content'));
$this->save('TODO.md', $result);
}
protected function grouped(): array
{
$locales = [];
foreach (array_keys($this->locales) as $locale) {
$missing = $this->countMissing($locale);
$locales[] = Locale::make($locale, $missing);
}
return $this->group($locales);
}
protected function group(array $items): array
{
return array_map(function (array $items) {
if (count($items) < $this->columns) {
$need = $this->columns - count($items);
$filled = array_fill(0, $need, Locale::make());
return array_merge($items, $filled);
}
return $items;
}, array_chunk($items, $this->columns));
}
protected function compileTable(string $content): string
{
return $this->replace($this->templateTable(), compact('content'));
}
/**
* @param \LaravelLang\Lang\Models\Locale[]|array $items
*
* @return string
*/
protected function compileRow(array $items): string
{
$row = $this->compileColumns($items);
return $this->replace($this->templateTableRow(), compact('row'));
}
/**
* @param \LaravelLang\Lang\Models\Locale[]|array $items
*
* @return string
*/
protected function compileColumns(array $items): string
{
$row = '';
foreach ($items as $item) {
$column = $this->replace($this->templateLink(), [
'title' => $item->getTitle(),
'link' => $this->link($item->getLocale()),
], $item->isEmpty());
$row .= $this->replace($this->templateTabletColumn(), compact('column'));
}
return $row;
}
}
@@ -0,0 +1,44 @@
<?php
namespace LaravelLang\Lang\Services\Compilers;
use LaravelLang\Lang\Constants\Resource;
class Collection extends Compiler
{
public function toString(): string
{
$result = '';
foreach ($this->items as $filename => $values) {
$is_json = $this->isJson($filename);
$content = $this->compileItems($values, $is_json);
$count = count($values);
$result .= $this->compileLocale($content, $count, $filename);
}
return $result;
}
protected function compileLocale(string $content, int $count, string $filename): string
{
return $this->template(Resource::COMPONENT_LOCALE, compact('count', 'filename', 'content'));
}
protected function compileItems(array $items, bool $is_json = false): string
{
$rows = $this->split($items, $is_json);
return Table::make($this->app)->items($rows)->toString();
}
protected function split(array $items, bool $is_json = false): array
{
return $is_json
? array_values(array_map(static fn ($key) => [$key], array_keys($items)))
: array_values(array_map(static fn ($key, $value) => [$key, $value], array_keys($items), array_values($items)));
}
}
+34
View File
@@ -0,0 +1,34 @@
<?php
namespace LaravelLang\Lang\Services\Compilers;
use Helldar\Support\Concerns\Makeable;
use Helldar\Support\Facades\Helpers\Str;
use LaravelLang\Lang\Concerns\Template;
use LaravelLang\Lang\Contracts\Application;
use LaravelLang\Lang\Contracts\Stringable;
abstract class Compiler implements Stringable
{
use Makeable;
use Template;
protected array $items;
public function __construct(
protected Application $app
) {
}
public function items(array $items): self
{
$this->items = $items;
return $this;
}
protected function isJson(string $filename): bool
{
return Str::contains($filename, 'json');
}
}
+13
View File
@@ -0,0 +1,13 @@
<?php
namespace LaravelLang\Lang\Services\Compilers;
use LaravelLang\Lang\Constants\Resource;
class Locale extends Compiler
{
public function toString(): string
{
return $this->template(Resource::LOCALE, $this->items);
}
}
+86
View File
@@ -0,0 +1,86 @@
<?php
namespace LaravelLang\Lang\Services\Compilers;
use Helldar\Support\Facades\Helpers\Str;
use LaravelLang\Lang\Constants\Resource;
use LaravelLang\Lang\Models\Locale;
class Status extends Compiler
{
protected int $columns = 8;
public function toString(): string
{
$content = $this->compileContent();
return $this->template(Resource::STATUS, compact('content'));
}
protected function grouped(): array
{
$locales = [];
foreach ($this->items as $locale => $values) {
$missing = count($values);
$locales[] = Locale::make($locale, $missing);
}
return $this->group($locales);
}
protected function group(array $items): array
{
return array_map(function (array $items) {
if (count($items) < $this->columns) {
$need = $this->columns - count($items);
$filled = array_fill(0, $need, Locale::make());
return array_merge($items, $filled);
}
return $items;
}, array_chunk($items, $this->columns));
}
protected function compileContent(): string
{
$rows = [];
foreach ($this->grouped() as $items) {
$rows[] = $this->mapRow($items);
}
return Table::make($this->app)
->items($rows)
->align('center')
->columns($this->columns)
->toString();
}
/**
* @param \LaravelLang\Lang\Models\Locale[]|array $items
*
* @return array
*/
protected function mapRow(array $items): array
{
$row = [];
foreach ($items as $item) {
$row[] = $this->template(Resource::COMPONENT_LINK, [
'title' => $item->getTitle(),
'link' => $this->link($item->getLocale()),
], return_empty: $item->isEmpty());
}
return $row;
}
protected function link(?string $value): string
{
return empty($value) ? '' : sprintf('statuses/%s.md', Str::slug($value));
}
}
+101
View File
@@ -0,0 +1,101 @@
<?php
namespace LaravelLang\Lang\Services\Compilers;
use LaravelLang\Lang\Constants\Resource;
class Table extends Compiler
{
protected string $align = 'left';
protected int $columns = 1;
public function align(string $align): self
{
$this->align = $align;
return $this;
}
public function columns(int $columns): self
{
$this->columns = $columns;
return $this;
}
public function toString(): string
{
$width = $this->getWidth($this->getTableWidth());
$content = $this->compileRows();
return $this->template(Resource::COMPONENT_TABLE, compact('width', 'content'));
}
protected function compileRows(): string
{
$result = '';
foreach ($this->items as $row) {
$columns = '';
foreach ($row as $value) {
$columns .= $this->compileColumn($value);
}
$result .= $this->compileRow($columns);
}
return $result;
}
protected function compileRow(string $row): string
{
return $this->template(Resource::COMPONENT_TABLE_ROW, compact('row'));
}
protected function compileColumn(string $column): string
{
$align = $this->getAlign();
$width = $this->getWidth($this->getColumnWidth());
return $this->template(Resource::COMPONENT_TABLE_COLUMN, compact('align', 'width', 'column'));
}
protected function getAlign(): string
{
$align = $this->align;
return $this->template(Resource::COMPONENT_TABLE_ATTRIBUTE_ALIGN, compact('align'), true);
}
protected function getWidth(?int $width): ?string
{
if (! $width) {
return null;
}
return $this->template(Resource::COMPONENT_TABLE_ATTRIBUTE_WIDTH, compact('width'), true);
}
protected function getTableWidth(): ?int
{
return $this->hasColumns() ? 100 : null;
}
protected function getColumnWidth(): ?int
{
return $this->hasColumns() ? round(100 / $this->getColumns()) : null;
}
protected function hasColumns(): bool
{
return $this->getColumns() > 1;
}
protected function getColumns(): int
{
return abs($this->columns);
}
}
+1
View File
@@ -1 +1,2 @@
[{{title}}]({{link}})
-8
View File
@@ -1,8 +0,0 @@
### {{filename}}
###### Missing: {{count}}
{{content}}
[ [go back](../TODO.md) | [to top](#) ]
@@ -1 +0,0 @@
* {{item}}
-1
View File
@@ -1 +0,0 @@
* {{key}} : {{item}}
+8
View File
@@ -0,0 +1,8 @@
### {{filename}}
##### Missing: {{count}}
{{content}}
[ [go back](../status.md) | [to top](#) ]
@@ -0,0 +1 @@
align="{{align}}"
@@ -0,0 +1 @@
width="{{width}}%"
+1 -2
View File
@@ -1,4 +1,3 @@
<td align="center" width="8%">
<td {{align}} {{width}}>
{{column}}
</td>
+1 -1
View File
@@ -1,3 +1,3 @@
<table width="100%">
<table {{width}}>
{{content}}
</table>
-2
View File
@@ -1,3 +1 @@
All lines are translated 😊
[ [go back](../TODO.md) ]
+3 -1
View File
@@ -1,5 +1,7 @@
[Laravel Lang](https://github.com/Laravel-Lang/lang) / [Main Page](../index.md) / [Completion Status](../status.md) / {{locale}}
# {{locale}}
###### All missed: {{count}}
##### All missed: {{count}}
{{content}}
+5
View File
@@ -0,0 +1,5 @@
[Laravel Lang](https://github.com/Laravel-Lang/lang) / [Main Page](index.md) / Completion Status
# Completion status
{{content}}
-3
View File
@@ -1,3 +0,0 @@
# Todo List
{{content}}
+2 -2
View File
@@ -1,7 +1,7 @@
<?php
use LaravelLang\Lang\Processors\Todo\Locales;
use LaravelLang\Lang\Processors\Todo\Main;
use LaravelLang\Lang\Processors\Statuses\Locales;
use LaravelLang\Lang\Processors\Statuses\Main;
use LaravelLang\Lang\Services\Filesystem\Markdown;
require __DIR__ . '/../vendor/autoload.php';
@@ -5,11 +5,11 @@ namespace Tests;
use Helldar\Support\Facades\Helpers\Filesystem\Directory;
use Helldar\Support\Facades\Helpers\Str;
class TodoLocalesTest extends TestCase
class StatusLocalesTest extends TestCase
{
protected string $source_path = __DIR__ . '/../../src';
protected string $target_path = __DIR__ . '/../../todo';
protected string $target_path = __DIR__ . '/../../docs/statuses';
public function testSee(): void
{
@@ -19,7 +19,7 @@ class TodoLocalesTest extends TestCase
$this->assertFileExists($path);
$this->assertSee($path, '# ' . Str::before($locale, '.'));
$this->assertSee($path, '###### All missed:');
$this->assertSee($path, '##### All missed:');
$this->assertDoesntSee($path, '## foo');
$this->assertDoesntSee($path, '## bar');
+43
View File
@@ -0,0 +1,43 @@
<?php
namespace Tests;
use Helldar\Support\Facades\Helpers\Filesystem\Directory;
use Helldar\Support\Facades\Helpers\Str;
final class StatusTest extends TestCase
{
protected string $target_path = __DIR__ . '/../../src';
protected string $status = __DIR__ . '/../../docs/status.md';
public function testSee(): void
{
foreach ($this->locales() as $locale) {
$slug = Str::slug($locale);
$this->assertSee($this->status, "{$locale}&nbsp;");
$this->assertSee($this->status, "(statuses/{$slug}.md)");
}
}
public function testDoesntSee(): void
{
$this->assertDoesntSee($this->status, '## foo');
$this->assertDoesntSee($this->status, '## bar');
$this->assertDoesntSee($this->status, '## baz');
$this->assertDoesntSee($this->status, '(statuses/foo.md)');
$this->assertDoesntSee($this->status, '(statuses/bar.md)');
$this->assertDoesntSee($this->status, '(statuses/baz.md)');
$this->assertDoesntSee($this->status, '(todo/foo.md)');
$this->assertDoesntSee($this->status, '(todo/bar.md)');
$this->assertDoesntSee($this->status, '(todo/baz.md)');
}
protected function locales(): array
{
return Directory::names($this->target_path);
}
}
-39
View File
@@ -1,39 +0,0 @@
<?php
namespace Tests;
use Helldar\Support\Facades\Helpers\Filesystem\Directory;
use Helldar\Support\Facades\Helpers\Str;
final class TodoTest extends TestCase
{
protected string $target_path = __DIR__ . '/../../src';
protected string $todo = __DIR__ . '/../../TODO.md';
public function testSee(): void
{
foreach ($this->locales() as $locale) {
$slug = Str::slug($locale);
$this->assertSee($this->todo, "{$locale}&nbsp;");
$this->assertSee($this->todo, "(todo/{$slug}.md)");
}
}
public function testDoesntSee(): void
{
$this->assertDoesntSee($this->todo, '## foo');
$this->assertDoesntSee($this->todo, '## bar');
$this->assertDoesntSee($this->todo, '## baz');
$this->assertDoesntSee($this->todo, '(todo/foo.md)');
$this->assertDoesntSee($this->todo, '(todo/bar.md)');
$this->assertDoesntSee($this->todo, '(todo/baz.md)');
}
protected function locales(): array
{
return Directory::names($this->target_path);
}
}
+9
View File
@@ -0,0 +1,9 @@
[Laravel Lang](https://github.com/Laravel-Lang/lang) / [Main Page](index.md) / Page Not Found
<h2 align="center">
Page Not Found
</h2>
<p align="center">
Go back to the <a href="/Laravel-lang/">main page</a>.
</p>
+4
View File
@@ -0,0 +1,4 @@
name: Laravel Lang
title: Laravel Lang
theme: jekyll-theme-cayman
markdown: gfm
+304
View File
@@ -0,0 +1,304 @@
[Laravel Lang](https://github.com/Laravel-Lang/lang) / [Main Page](index.md) / Changelog
# Changelog
All notable changes to this project will be documented in this file, since v7.0.0.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres
to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [8.1.2] - 2021-04-07
### Changed
* feature: [it] #1596 #1597 validation.php validation-inline.php json file
* feature: [fr]
## [8.1.1] - 2021-04-02
## Added
* #1565 Add prohibited validation rule
* #1510 [af] Added Afrikaans language support
### Changed
* feature: [ar] #1584 validation.php validation-inline.php json file
* feature: [es] #1566 #1579 #1585 validation.php validation-inline.php json file
* feature: [fr] #1580 json file
* feature: [hy] #1572 #1573 #1574 auth.php validation.php
* feature: [it] #1568 json file
* feature: [nl] #1587 json file
* feature: [pt] #1575 auth.php
* feature: [pt_BR] #1564 #1575 auth.php json file
* feature: [ru] #1576 #1582 validation.php validation-inline.php json file
* feature: [tr] #1565 validation.php validation-inline.php
### Todo script
* New version with automatic add needed tags
* One page by language
## [8.1.0] - 2021-01-23
### Added
* Laravel Cashier
* Laravel Nova
* Script to update translation files
### Changed
* feature: [ar] #1538 #1553 json file
* feature: [de] #1532 json file
* feature: [es] #1534 #1545 #1550 #1556 json file
* feature: [fa] #1527 #1531 validation.php json file
* feature: [fr] #1528 #1539 json file
* feature: [it] #1535 #1548 #1552 json file
* feature: [ja] #1558 json file
* feature: [ko] #1524 json file
* feature: [mk] #1536 #1549 json file
* feature: [nl] #1529 json file
* feature: [pl] #1530 auth, json file
* feature: [ru] #1537 #1546 #1551 #1554 json file
* feature: [sk] json file
* feature: [vi] #1530 #1543 #1557 validation.php validation-inline.php json file
* feature: [zh_*] #1544 #1559 json file
## [8.0.3] - 2021-01-29
### Changed
* feature: [fr] json file
* feature: [zh_CN] #1523 auth.php validation.php validation-inline.php exclude.php json file
* feature: [zh_HK] #1523 auth.php validation.php validation-inline.php exclude.php json file
* feature: [zh_TW] #1523 auth.php validation.php validation-inline.php exclude.php json file
## [8.0.2] - 2021-01-25
### Added
* feature: #1481 Added new Jetstream 2.0 translation keys
* feature: #1485 Add missing tags and translate new tags for Jetstream 2.0
* feature: #1488 Add missing tags related to button's labels for mail - team
* feature: #1494 Translate subject of Team Invitation email
* feature: #1506 Translate cancel button of team invitation
### Changed
* feature: [ar] #1483 #1486 #1489 #1504 #1508 json file
* feature: [bs] #1500 #1505 auth.php passwords.php validation.php
* feature: [de] #1493 #1507 auth.php validation.php json file
* feature: [el] #1509 json file
* feature: [es] #1485 #1487 #1488 #1494 #1506 #1518 validation.php json file
* feature: [fr] #1501 json file
* feature: [it] #1491 #1502 #1511 json file
* feature: [ka] #1497 #1498 #1499 #1503 auth.php passwords.php validation.php
* feature: [lt] #1521 json file
* feature: [mk] #1521 #1522 auth.php passwords.php validation.php validation-inline.php json file
* feature: [nl] #1482 auth.php
* feature: [ro] #1517 auth.php
* feature: [ru] #1481 #1490 #1515 #1516 validation.php json file
* feature: [sl] #1480 excluse file and json file
* feature: [sr_Cyrl] #1521 validation-inline.php
* feature: [sr_Latn] #1521 validation-inline.php
* feature: [sv] #1492 json file
* feature: [uk] #1484 auth.php validation.php validation-inline.php json file
## [8.0.1] - 2021-01-03
### Added
* new: [oc] #1466
### Changed
* feature: [ar] #1476 json file
* feature: [de] #1471 #1472 json file
* feature: [fa] #1467 #1468 #1470 #1477 auth.php validation.php validation-inline.php json file
* feature: [fr] #1469 auth.php
* feature: [ja] #1461 exclude file and json file
* feature: [ru] #1465 #1475 json file
* feature: [sl] #1479 auth.php passwords.php validation.php validation-inline.php
* feature: [sr_Latn_ME] #1463 auth.php pagination.php passwords.php validation.php
## [8.0.0] - 2020-11-30
### Changed
* feature: [sr, uz, me] #1453 Rename \*\_Cyrillic to \*\_Cyrl and \*\_Latin to \*\_Latn (php Intl)]
## [7.0.9] - 2020-11-30
### Changed
* feature: [ar] #1419 #1431 #1447 #1462 validation-inline.php validation.php auth.php json file
* feature: [es] #1414 #1416 #1417 #1422 #1442 #1450 #1452 validation.php validation-inline.php passwords.php json file
* feature: [fr] #1441 json file
* feature: [id] #1439 auth.php
* feature: [it] #1435 #1459 validation-inline.php validation.php auth.php json file
* feature: [km] #1418 auth.php validation.php passwords.php
* feature: [ko] #1444 validation-inline.php validation.php auth.php json file
* feature: [lt] #1434 #1436 #1449 validation-inline.php validation.php auth.php json file
* feature: [nl] #1424 #1425 #1428 #1457 auth.php validation.php validation-inline.php json file
* feature: [pl] #1420 validation-inline.php validation.php
* feature: [de_CH] #1458 validation-inline.php validation.php
* feature: [pt_Br] #1415 json file
* feature: [ru] #1426 #1427 #1445 #1454 validation-inline.php validation.php auth.php json file
* feature: [sv] #1430 json file
* feature: [tr] #1448 #1456 json file
* feature: [uk] #1446 json file
* feature: [fa] #1451 json file
* feature: [vi] #1433 #1443 validation-inline.php validation.php passwords.php auth.php json file
## [7.0.8] - 2020-10-11
### Changed
* feature: #1383 #1411 [fr] json file
* feature: #1385 [el] json file
* feature: #1387 #1388 #1392 [ms] validation.php validation-inline.php passwords.php
* feature: #1390 #1398 [ar] json file
* feature: #1393 #1397 [ru] json file
* feature: #1393 #1394 [en] add tags
* feature: #1394 [es] json file
* feature: #1395 [pl] json file
* feature: #1400 [lt] json file
* feature: #1402 #1413 [it] validation-inline.php auth.php passwords.php json file
* feature: #1404 [pt] json file
* feature: #1412 [de] json file
### Documentation
* feature: #1386 Contributing
### Status script
* fix: #1406 ignores the additional informations
### Workflow
* feature: #1401 #1403 Make todo
* feature: #1405 template bug report
## [7.0.7] - 2020-10-02
### Changed
* feature: #1375 [pt_BR] json file
* feature: #1379 [hr] passwords.php
* feature: #1380 [ms] validation.php
* feature: #1381 [id] json file
* feature: #1382 [tr] json file
### Todo script
* feature: #1378 exclude translation
## [7.0.6] - 2020-09-30
### Changed
* feature: #1339 #1369 [ar] json file
* feature: #1352 [uz_*] validation auth password
* feature: #1356 #1362 #1368 [ru] json file
* feature: #1358 #1374 [pt] json file
* feature: #1360 #1367 #1373 [pl] json file
* feature: #1361 #1371 [es] json file
* feature: #1361 #1368 [en] json file
* feature: #1363 [sr_*] json file
* feature: #1370 [de] json file
* feature: [fr] json file
## [7.0.5] - 2020-09-23
### Changed
* feature: #1327 #1328 [tr] validation.php
* feature: #1330 [nl] json file
* feature: #1331 [nl] validation-inline.php
* feature: #1332 [hu] validation.php
* feature: #1333 Laravel 8 support
* feature: #1335 #1354 Add support for Laravel JetStream
* feature: #1341 [es] json files
* feature: #1341 #1346 [en] json files
* feature: #1342 [pt] json files
* feature: #1345 [it] json files
* feature: #1346 [ru] json files
* feature: #1351 [pl] json files
## [7.0.4] - 2020-09-11
### Changed
* feature: new organization
* feature: #1316 [sr_*] validation-inline file
* feature: #1317 [es] json file
* feature: #1318 [fa] validation.password
* feature: #1320 [lt] validation-inline and validation
* feature: #1323 #1324 [id] json and validation-inline
* feature: #1326 [ko] validation-inline
## [7.0.3] - 2020-08-23
### Changed
* feature: #1302 #1306 #1307 [Ne] Translated to Nepali Language (Validation-inline and json)
* feature: #1310 [da] passwords.throttlled
* feature: #1312 [es] validation and validation-inline
* feature: #1313 [sq] validation-inline and validation translations
## [7.0.2] - 2020-08-05
### Added
* Changelog file
* # 1293 [da] Add json
### Changed
* feature: #1290 [pl] Translate validation-inline; tweak some validation translations
* feature: #1291 [pt_BR] Update validation-inline
* feature: #1292 [es] Update json
* feature: #1294 Update readme
* feature: #1295 [pt] Update json, validation-inline, validation and passwords
* feature: #1297 [sq] Update auth, passwords and validation
* feature: #1298 [si] Update passwords
* feature: #1299 [zh_*] Update json and validation-inline
* feature: #1300 [uk] validation-inline
* feature: #1301 [uk] json
## [7.0.1] - 2020-07-14
### Added
* json files for uz_Cyrillic and uz_Latin
### Changed
* fix: #1269 json file names to follow ISO-15897
## [7.0.0] - 2020-07-13
### Changed
* feature: #1269 Rename locale folders following ISO 15897 format
[Unreleased]: https://github.com/caouecs/Laravel-lang/compare/8.1.2...master
[8.1.2]: https://github.com/caouecs/Laravel-lang/compare/8.1.1...8.1.2
[8.1.1]: https://github.com/caouecs/Laravel-lang/compare/8.1.0...8.1.1
[8.1.0]: https://github.com/caouecs/Laravel-lang/compare/8.0.3...8.1.0
[8.0.3]: https://github.com/caouecs/Laravel-lang/compare/8.0.2...8.0.3
[8.0.2]: https://github.com/caouecs/Laravel-lang/compare/8.0.1...8.0.2
[8.0.1]: https://github.com/caouecs/Laravel-lang/compare/8.0.0...8.0.1
[8.0.0]: https://github.com/caouecs/Laravel-lang/compare/7.0.9...8.0.0
[7.0.9]: https://github.com/caouecs/Laravel-lang/compare/7.0.8...7.0.9
[7.0.8]: https://github.com/caouecs/Laravel-lang/compare/7.0.7...7.0.8
[7.0.7]: https://github.com/caouecs/Laravel-lang/compare/7.0.6...7.0.7
[7.0.6]: https://github.com/caouecs/Laravel-lang/compare/7.0.5...7.0.6
[7.0.5]: https://github.com/caouecs/Laravel-lang/compare/7.0.4...7.0.5
[7.0.4]: https://github.com/caouecs/Laravel-lang/compare/7.0.3...7.0.4
[7.0.3]: https://github.com/caouecs/Laravel-lang/compare/7.0.2...7.0.3
[7.0.2]: https://github.com/caouecs/Laravel-lang/compare/7.0.1...7.0.2
[7.0.1]: https://github.com/caouecs/Laravel-lang/compare/7.0.0...7.0.1
[7.0.0]: https://github.com/caouecs/Laravel-lang/compare/6.1.4...7.0.0
@@ -1,3 +1,5 @@
[Laravel Lang](https://github.com/Laravel-Lang/lang) / [Main Page](index.md) / Contributor Covenant Code of Conduct
# Contributor Covenant Code of Conduct
## Our Pledge
@@ -1,3 +1,5 @@
[Laravel Lang](https://github.com/Laravel-Lang/lang) / [Main Page](index.md) / Contributing
# Contributing
Contributions are **welcome** and will be fully **credited**.
@@ -22,17 +24,17 @@ We accept contributions via Pull Requests on [Github](https://github.com/Laravel
## What should I do if there is a tag whose translation is the same as in English?
In some languages ​​there are some strings whose translation is the same as in English. In this case, the script that generates the `todo.md` adds them by
default to the list of pending translations. This affects the *completion status* for this language which would never be marked in *todo list* with (✔) but
with (❗) even if all other strings were translated.
In some languages ​​there are some strings whose translation is the same as in English. In this case, the script that generates the [status](status.md) adds
them by default to the list of pending translations. This affects the *completion status* for this language which would never be marked in *status list* with (
✔) but with (❗) even if all other strings were translated.
We can avoid this situation in the following way:
* fork this repository if you haven't already
* add a PHP file named with the short name of the language (ex: `es.php` for Spanish) inside the directory `script/excludes`
* add a PHP file named with the short name of the language (ex: `es.php` for Spanish) inside the directory `excludes`
* this php file must return an array of strings with each of the tags that we must exclude.
* for example suppose that the strings `'Email'` and `'API Token'` in `es.json` (ex: for Spanish) do not need translation in this language and therefore
want to exclude them. The PHP file `es.php` (for example) in `script/excludes/` should have this structure which you can copy for other languages.
want to exclude them. The PHP file `es.php` (for example) in `excludes` should have this structure which you can copy for other languages.
```php
<?php
@@ -54,7 +56,3 @@ return [
```
* add these changes to the pull request you will send
## Status of files
* [TODO.md](TODO.md)
+43
View File
@@ -0,0 +1,43 @@
[Laravel Lang](https://github.com/Laravel-Lang/lang) / Main Page
# Laravel Lang
In this repository, you can find the lang files for the [Laravel Framework 4/5/6/7/8](https://laravel.com), [Laravel Jetstream](https://jetstream.laravel.com)
, [Laravel Fortify](https://github.com/laravel/fortify), [Laravel Cashier](https://laravel.com/docs/8.x/billing) and [Laravel Nova](https://nova.laravel.com).
## Translation status
The current status of the translated keys is available at [STATUS](status.md) page.
## Changelog
* See [changelog](changelog.md)
## Installation
* [Via Composer](installation/composer.md)
* [Via GitHub](installation/github.md)
* [Via SVN](installation/github.md)
* [Copy files](installation/files.md)
## Usage
> Laravel only
In the file *config/app.php*, change the value of *locale* by the short name of your language (*app/config/app.php* in Laravel 4).
## Contributing
Please see [contributing](contributing-to-dev.md) page for details.
## Projects based on this package
* [LaravelLang](https://github.com/ARCANEDEV/LaravelLang) by [*@arcanedev-maroc*](https://github.com/ARCANEDEV) - Translations manager and checker for Laravel.
* [Laravel-lang](https://github.com/overtrue/laravel-lang) by [*@overtrue*](https://github.com/overtrue) - Command to add languages in your project.
* [Lang Publisher](https://github.com/andrey-helldar/laravel-lang-publisher) by [*@andrey-helldar*](https://github.com/andrey-helldar) - Easy installation and
update of translation files for your project.
## Credits
- [Referents by language](referents.md)
- [All Contributors](https://github.com/Laravel-Lang/lang/graphs/contributors)
+17
View File
@@ -0,0 +1,17 @@
[Laravel Lang](https://github.com/Laravel-Lang/lang) / [Main Page](../index.md) / [Installation](../index.md#installation) / Via Composer
# Via Composer
Install the Laravel-lang package to your Laravel project with composer using command from the table below based on the version of Laravel you are using:
| Laravel version | Composer command |
|-------------------------------------|---------------------------------------------------|
| Laravel 7-8 with Php Intl | `composer require laravel-lang/lang:~8.0` |
| Laravel 8.x | `composer require laravel-lang/lang:~7.0` |
| Laravel 7.x and new directory names | `composer require laravel-lang/lang:~7.0` |
| Laravel 7.x | `composer require laravel-lang/lang:~6.1` |
| Laravel 6.x | `composer require laravel-lang/lang:~5.0` |
| Laravel 5.8 | `composer require laravel-lang/lang:~4.0` |
| Laravel 5.1-5.7 | `composer require laravel-lang/lang:~3.0` |
| Laravel 5 | `composer require laravel-lang/lang:~2.0` |
| Laravel 4 | `composer require laravel-lang/lang:~1.0` |
+9
View File
@@ -0,0 +1,9 @@
[Laravel Lang](https://github.com/Laravel-Lang/lang) / [Main Page](../index.md) / [Installation](../index.md#installation) / Copy files
# Copy files
After adding the dependency using composer (as described above) to your application you can find the language files under the
directory `vendor/laravel-lang/lang`.
Copy the folders (and JSON files) of languages that you want to use, into the directory `resources/lang` of your Laravel application (or `app/lang` in Laravel
4).
+8
View File
@@ -0,0 +1,8 @@
[Laravel Lang](https://github.com/Laravel-Lang/lang) / [Main Page](../index.md) / [Installation](../index.md#installation) / Via GitHub
* Clone the [GitHub repository](https://github.com/Laravel-Lang/lang/) : *git clone https://github.com/Laravel-Lang/lang.git*
* Or download the [zip file](https://github.com/Laravel-Lang/lang/archive/master.zip)
* Choose the branch:
* `laravel4` for Laravel 4 project
* `master` for Laravel 5, 6, 7, 8 projects
* Copy the folders of languages that you want, in `resources/lang` folder of your Laravel application (or `app/lang` in Laravel 4).
+13
View File
@@ -0,0 +1,13 @@
[Laravel Lang](https://github.com/Laravel-Lang/lang) / [Main Page](../index.md) / [Installation](../index.md#installation) / Via SVN
Run this in your project directory:
```sh
# Laravel 5:
svn export https://github.com/Laravel-Lang/lang/trunk/src/[language-code] resources/lang/[language-code]
# Laravel 4:
svn export https://github.com/Laravel-Lang/lang/branches/laravel4/[language-code] app/lang/[language-code]
```
Replace `[language-code]` by any of the languages listedw.
+3
View File
@@ -1,7 +1,10 @@
[Laravel Lang](https://github.com/Laravel-Lang/lang) / [Main Page](index.md) / Referents
# Referents by language
| Lang | Assignee |
| --- |:--|
| af | |
| ar | [@mohamedsabil83](https://github.com/mohamedsabil83), [@Khuthaily](https://github.com/Khuthaily) |
| az | |
| be | |
+412
View File
@@ -0,0 +1,412 @@
[Laravel Lang](https://github.com/Laravel-Lang/lang) / [Main Page](index.md) / Completion Status
# Completion status
<table width="100%">
<tr><td align="center" width="13%">
[af&nbsp;❗](statuses/af.md)
</td>
<td align="center" width="13%">
[ar&nbsp;✔](statuses/ar.md)
</td>
<td align="center" width="13%">
[az&nbsp;❗](statuses/az.md)
</td>
<td align="center" width="13%">
[be&nbsp;❗](statuses/be.md)
</td>
<td align="center" width="13%">
[bg&nbsp;❗](statuses/bg.md)
</td>
<td align="center" width="13%">
[bn&nbsp;❗](statuses/bn.md)
</td>
<td align="center" width="13%">
[bs&nbsp;❗](statuses/bs.md)
</td>
<td align="center" width="13%">
[ca&nbsp;❗](statuses/ca.md)
</td>
</tr>
<tr><td align="center" width="13%">
[cs&nbsp;❗](statuses/cs.md)
</td>
<td align="center" width="13%">
[cy&nbsp;❗](statuses/cy.md)
</td>
<td align="center" width="13%">
[da&nbsp;❗](statuses/da.md)
</td>
<td align="center" width="13%">
[de&nbsp;❗](statuses/de.md)
</td>
<td align="center" width="13%">
[de_CH&nbsp;❗](statuses/de-ch.md)
</td>
<td align="center" width="13%">
[el&nbsp;❗](statuses/el.md)
</td>
<td align="center" width="13%">
[es&nbsp;✔](statuses/es.md)
</td>
<td align="center" width="13%">
[et&nbsp;❗](statuses/et.md)
</td>
</tr>
<tr><td align="center" width="13%">
[eu&nbsp;❗](statuses/eu.md)
</td>
<td align="center" width="13%">
[fa&nbsp;❗](statuses/fa.md)
</td>
<td align="center" width="13%">
[fi&nbsp;❗](statuses/fi.md)
</td>
<td align="center" width="13%">
[fil&nbsp;❗](statuses/fil.md)
</td>
<td align="center" width="13%">
[fr&nbsp;✔](statuses/fr.md)
</td>
<td align="center" width="13%">
[gl&nbsp;❗](statuses/gl.md)
</td>
<td align="center" width="13%">
[he&nbsp;❗](statuses/he.md)
</td>
<td align="center" width="13%">
[hi&nbsp;❗](statuses/hi.md)
</td>
</tr>
<tr><td align="center" width="13%">
[hr&nbsp;❗](statuses/hr.md)
</td>
<td align="center" width="13%">
[hu&nbsp;❗](statuses/hu.md)
</td>
<td align="center" width="13%">
[hy&nbsp;❗](statuses/hy.md)
</td>
<td align="center" width="13%">
[id&nbsp;❗](statuses/id.md)
</td>
<td align="center" width="13%">
[is&nbsp;❗](statuses/is.md)
</td>
<td align="center" width="13%">
[it&nbsp;✔](statuses/it.md)
</td>
<td align="center" width="13%">
[ja&nbsp;❗](statuses/ja.md)
</td>
<td align="center" width="13%">
[ka&nbsp;❗](statuses/ka.md)
</td>
</tr>
<tr><td align="center" width="13%">
[kk&nbsp;❗](statuses/kk.md)
</td>
<td align="center" width="13%">
[km&nbsp;❗](statuses/km.md)
</td>
<td align="center" width="13%">
[kn&nbsp;❗](statuses/kn.md)
</td>
<td align="center" width="13%">
[ko&nbsp;❗](statuses/ko.md)
</td>
<td align="center" width="13%">
[lt&nbsp;❗](statuses/lt.md)
</td>
<td align="center" width="13%">
[lv&nbsp;❗](statuses/lv.md)
</td>
<td align="center" width="13%">
[mk&nbsp;❗](statuses/mk.md)
</td>
<td align="center" width="13%">
[mn&nbsp;❗](statuses/mn.md)
</td>
</tr>
<tr><td align="center" width="13%">
[mr&nbsp;❗](statuses/mr.md)
</td>
<td align="center" width="13%">
[ms&nbsp;❗](statuses/ms.md)
</td>
<td align="center" width="13%">
[nb&nbsp;❗](statuses/nb.md)
</td>
<td align="center" width="13%">
[ne&nbsp;❗](statuses/ne.md)
</td>
<td align="center" width="13%">
[nl&nbsp;❗](statuses/nl.md)
</td>
<td align="center" width="13%">
[nn&nbsp;❗](statuses/nn.md)
</td>
<td align="center" width="13%">
[oc&nbsp;❗](statuses/oc.md)
</td>
<td align="center" width="13%">
[pl&nbsp;❗](statuses/pl.md)
</td>
</tr>
<tr><td align="center" width="13%">
[ps&nbsp;❗](statuses/ps.md)
</td>
<td align="center" width="13%">
[pt&nbsp;❗](statuses/pt.md)
</td>
<td align="center" width="13%">
[pt_BR&nbsp;❗](statuses/pt-br.md)
</td>
<td align="center" width="13%">
[ro&nbsp;❗](statuses/ro.md)
</td>
<td align="center" width="13%">
[ru&nbsp;✔](statuses/ru.md)
</td>
<td align="center" width="13%">
[sc&nbsp;❗](statuses/sc.md)
</td>
<td align="center" width="13%">
[si&nbsp;❗](statuses/si.md)
</td>
<td align="center" width="13%">
[sk&nbsp;❗](statuses/sk.md)
</td>
</tr>
<tr><td align="center" width="13%">
[sl&nbsp;❗](statuses/sl.md)
</td>
<td align="center" width="13%">
[sq&nbsp;❗](statuses/sq.md)
</td>
<td align="center" width="13%">
[sr_Cyrl&nbsp;❗](statuses/sr-cyrl.md)
</td>
<td align="center" width="13%">
[sr_Latn&nbsp;❗](statuses/sr-latn.md)
</td>
<td align="center" width="13%">
[sr_Latn_ME&nbsp;❗](statuses/sr-latn-me.md)
</td>
<td align="center" width="13%">
[sv&nbsp;❗](statuses/sv.md)
</td>
<td align="center" width="13%">
[sw&nbsp;❗](statuses/sw.md)
</td>
<td align="center" width="13%">
[tg&nbsp;❗](statuses/tg.md)
</td>
</tr>
<tr><td align="center" width="13%">
[th&nbsp;❗](statuses/th.md)
</td>
<td align="center" width="13%">
[tk&nbsp;❗](statuses/tk.md)
</td>
<td align="center" width="13%">
[tl&nbsp;❗](statuses/tl.md)
</td>
<td align="center" width="13%">
[tr&nbsp;❗](statuses/tr.md)
</td>
<td align="center" width="13%">
[ug&nbsp;❗](statuses/ug.md)
</td>
<td align="center" width="13%">
[uk&nbsp;❗](statuses/uk.md)
</td>
<td align="center" width="13%">
[ur&nbsp;❗](statuses/ur.md)
</td>
<td align="center" width="13%">
[uz_Cyrl&nbsp;❗](statuses/uz-cyrl.md)
</td>
</tr>
<tr><td align="center" width="13%">
[uz_Latn&nbsp;❗](statuses/uz-latn.md)
</td>
<td align="center" width="13%">
[vi&nbsp;❗](statuses/vi.md)
</td>
<td align="center" width="13%">
[zh_CN&nbsp;❗](statuses/zh-cn.md)
</td>
<td align="center" width="13%">
[zh_HK&nbsp;❗](statuses/zh-hk.md)
</td>
<td align="center" width="13%">
[zh_TW&nbsp;❗](statuses/zh-tw.md)
</td>
<td align="center" width="13%">
</td>
<td align="center" width="13%">
</td>
<td align="center" width="13%">
</td>
</tr>
</table>
+1817
View File
File diff suppressed because it is too large. Load diff
+8
View File
@@ -0,0 +1,8 @@
[Laravel Lang](https://github.com/Laravel-Lang/lang) / [Main Page](../index.md) / [Completion Status](../status.md) / ar
# ar
##### All missed: 0
All lines are translated 😊
+3021
View File
File diff suppressed because it is too large. Load diff
+3091
View File
File diff suppressed because it is too large. Load diff
+2968
View File
File diff suppressed because it is too large. Load diff
+3021
View File
File diff suppressed because it is too large. Load diff
+2954
View File
File diff suppressed because it is too large. Load diff
+2791
View File
File diff suppressed because it is too large. Load diff
+2799
View File
File diff suppressed because it is too large. Load diff
+3112
View File
File diff suppressed because it is too large. Load diff
+2802
View File
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
+1802
View File
File diff suppressed because it is too large. Load diff
+2742
View File
File diff suppressed because it is too large. Load diff
+8
View File
@@ -0,0 +1,8 @@
[Laravel Lang](https://github.com/Laravel-Lang/lang) / [Main Page](../index.md) / [Completion Status](../status.md) / es
# es
##### All missed: 0
All lines are translated 😊
+2993
View File
File diff suppressed because it is too large. Load diff
+2852
View File
File diff suppressed because it is too large. Load diff
+1858
View File
File diff suppressed because it is too large. Load diff
+2942
View File
File diff suppressed because it is too large. Load diff
+3078
View File
File diff suppressed because it is too large. Load diff
+8
View File
@@ -0,0 +1,8 @@
[Laravel Lang](https://github.com/Laravel-Lang/lang) / [Main Page](../index.md) / [Completion Status](../status.md) / fr
# fr
##### All missed: 0
All lines are translated 😊
+2841
View File
File diff suppressed because it is too large. Load diff
+2799
View File
File diff suppressed because it is too large. Load diff
+2993
View File
File diff suppressed because it is too large. Load diff
+2919
View File
File diff suppressed because it is too large. Load diff
+2784
View File
File diff suppressed because it is too large. Load diff
+2291
View File
File diff suppressed because it is too large. Load diff
+2316
View File
File diff suppressed because it is too large. Load diff
+2993
View File
File diff suppressed because it is too large. Load diff
+8
View File
@@ -0,0 +1,8 @@
[Laravel Lang](https://github.com/Laravel-Lang/lang) / [Main Page](../index.md) / [Completion Status](../status.md) / it
# it
##### All missed: 0
All lines are translated 😊
+2372
View File
File diff suppressed because it is too large. Load diff
+2898
View File
File diff suppressed because it is too large. Load diff
+2802
View File
File diff suppressed because it is too large. Load diff
+2954
View File
File diff suppressed because it is too large. Load diff
+2848
View File
File diff suppressed because it is too large. Load diff
+1794
View File
File diff suppressed because it is too large. Load diff
+1862
View File
File diff suppressed because it is too large. Load diff
+2993
View File
File diff suppressed because it is too large. Load diff
+1706
View File
File diff suppressed because it is too large. Load diff
+3056
View File
File diff suppressed because it is too large. Load diff
+2852
View File
File diff suppressed because it is too large. Load diff
+2432
View File
File diff suppressed because it is too large. Load diff
+2792
View File
File diff suppressed because it is too large. Load diff
+2384
View File
File diff suppressed because it is too large. Load diff
+1694
View File
File diff suppressed because it is too large. Load diff
+2817
View File
File diff suppressed because it is too large. Load diff
+2573
View File
File diff suppressed because it is too large. Load diff
+1794
View File
File diff suppressed because it is too large. Load diff
+2852
View File
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
Loaded 100 of 210 files, more files were not shown because too many files have changed in this diff. Show more