Compare commits

...
724 Commits
Author SHA1 Message Date
caouecs c280e9060b doc for 10.0.2 2021-05-30 14:50:19 +02:00
caouecs 90ef4238a8 doc 2021-05-30 14:49:10 +02:00
GitHub Action 47ec332943 Updated status of translations 2021-05-30 10:33:25 +00:00
Fred Delrieu ce28a1dfb6 Merge pull request #1771 from hoiast/master
Complete missing translations [pt_BR]
2021-05-30 12:32:54 +02:00
Fred Delrieu 01d2ec337a Merge pull request #1770 from mertasan/patch-1
[tr] Completed missing translation
2021-05-30 12:32:22 +02:00
hoiast 05aeb2ee68 Merge branch 'master' of https://github.com/hoiast/lang 2021-05-29 17:25:28 -03:00
hoiast 97cafe68ab Update spark-stripe.json 2021-05-29 17:25:11 -03:00
Mert Aşan e571ffff05 Update tr.php 2021-05-29 22:23:28 +03:00
caouecs 19bf25ae29 doc 2021-05-29 21:15:04 +02:00
GitHub Action d33cdee14d Updated status of translations 2021-05-29 19:13:21 +00:00
Fred Delrieu 86504ab8a6 Merge pull request #1769 from hoiast/master
Missing translations [pt_BR]
2021-05-29 21:12:57 +02:00
GitHub Action df0e2c6d12 Updated status of translations 2021-05-29 19:12:22 +00:00
Fred Delrieu 29f4632bea Merge pull request #1768 from mertasan/completed
[tr] Completed missing translations
2021-05-29 21:11:55 +02:00
hoiast 59e22e9e48 Missing translations [pt_BR] 2021-05-29 15:30:46 -03:00
Murilo Hoias Teixeira 4846d89fa0 Merge pull request #2 from Laravel-Lang/master
update fork
2021-05-29 15:24:18 -03:00
hoiast 3cfb3fbb5c Revert "fixing key changes and adding translation for Jane Doe"
This reverts commit 4282d3a8ec.
2021-05-29 15:22:57 -03:00
Mert Aşan 5663231245 turkish: jane doe 2021-05-29 20:03:53 +03:00
hoiast 4282d3a8ec fixing key changes and adding translation for Jane Doe 2021-05-29 13:48:31 -03:00
Mert Aşan bd2cf57585 completed 2021-05-29 19:34:10 +03:00
caouecs 3b45a9f5ad doc 2021-05-29 17:28:40 +02:00
GitHub Action cb37c58d75 Updated status of translations 2021-05-29 15:25:09 +00:00
GitHub Action 70ed69f049 Updating translations keys 2021-05-29 15:25:05 +00:00
Fred Delrieu 6931227644 Merge pull request #1767 from hoiast/master
Update and minor fixes for pt_BR
2021-05-29 17:24:19 +02:00
caouecs 16dc89d8e8 [tr] nova and exclude 2021-05-29 17:23:50 +02:00
GitHub Action cb8737d1ea Updated status of translations 2021-05-29 15:11:19 +00:00
Fred Delrieu 6cb6246759 Merge pull request #1766 from mertasan/missing-translations
[tr] Added missing translations and some fixes
2021-05-29 17:10:47 +02:00
hoiast 326c371b90 typo jetstream.json 2021-05-28 23:55:45 -03:00
hoiast cb32448677 Delete spark-stripe.json.new 2021-05-28 23:53:27 -03:00
hoiast 701173c100 Update and minor fixes pt_BR
Completion of missing terms.
Fixing of spelling and grammar errors.
Standarization of translations choices.
2021-05-28 23:51:02 -03:00
Mert Aşan aaa3ab62ec missing translations (and fixes) 2021-05-29 03:31:47 +03:00
Mert Aşan 27f358e79c Merge pull request #1 from Laravel-Lang/master
updates
2021-05-29 02:21:15 +03:00
GitHub Action ff2a5f6ab8 Updating the file 2021-05-28 06:19:13 +00:00
Fred Delrieu 7bc8cc3e43 Merge pull request #1765 from andrey-helldar/patch/2021-05-28/00-24
@sotten became a referent
2021-05-28 08:18:39 +02:00
Andrey Helldar b9ef3f1007 @sotten became a referent 2021-05-28 00:27:58 +03:00
GitHub Action 2b6eaaabc2 Updated status of translations 2021-05-26 20:34:54 +00:00
Fred Delrieu 14e1193520 Merge pull request #1759 from sotten/master
[de] translate
2021-05-26 22:34:25 +02:00
Fred Delrieu 3713c0b3a7 doc 2021-05-25 19:30:22 +02:00
GitHub Action d6a39221db Updated status of translations 2021-05-25 07:15:00 +00:00
Fred Delrieu 7006600820 Merge pull request #1760 from luisprmat/master
[es] Update new nova translation
2021-05-25 09:14:08 +02:00
Luis Antonio Parrado 6eb4c20336 [es] Update new nova translation 2021-05-24 18:12:14 -05:00
Luis Antonio Parrado 8c15c83da9 [es] Update new nova translation 2021-05-24 18:09:00 -05:00
sotten f608b6c0fd Edit 2021-05-24 23:40:56 +02:00
sotten c1f1edff23 Update 2021-05-24 23:37:34 +02:00
sotten 338d1d0c12 Edit 2021-05-24 23:28:04 +02:00
sotten 8990f162b3 Merge branch 'Laravel-Lang:master' into master 2021-05-24 23:26:17 +02:00
Fred Delrieu ccd1483a11 doc for v10.0.1 2021-05-24 20:25:22 +02:00
GitHub Action 21845385d1 Updated status of translations 2021-05-24 18:24:34 +00:00
Fred Delrieu 407af6ce3b doc 2021-05-24 20:23:59 +02:00
Fred Delrieu ceb3db6d2e [fr] nova 2021-05-24 20:23:55 +02:00
GitHub Action 440e7bbe90 Updated status of translations 2021-05-24 18:21:29 +00:00
GitHub Action abb98dec1d Updating translations keys 2021-05-24 18:21:25 +00:00
Fred Delrieu 53567d102e Merge pull request #1755 from medvinator/master
Add new translation for Nova
2021-05-24 20:21:01 +02:00
Fred Delrieu 5b21db9753 doc 2021-05-24 20:20:24 +02:00
Fred Delrieu 20fc83527e [fi] no machine 2021-05-24 20:20:18 +02:00
GitHub Action 87bd659002 Updated status of translations 2021-05-24 18:18:34 +00:00
GitHub Action f23fe6252e Updating excludes files 2021-05-24 18:18:32 +00:00
GitHub Action cc48376dec Updating translations keys 2021-05-24 18:18:31 +00:00
Fred Delrieu f909acc9e5 Merge pull request #1758 from KJ-L/fi-update
[fi] Update translations for Finnish
2021-05-24 20:18:03 +02:00
sotten 5b5ea9a9ea Update nova.json 2021-05-24 16:54:40 +02:00
sotten a97a8ee996 Update spark-stripe.json 2021-05-24 15:54:27 +02:00
sotten 9938f79e99 Update jetstream.json 2021-05-24 15:42:20 +02:00
Kimmo Johansson 1de02ec1e9 Fix "changes" translation 2021-05-24 10:46:56 +00:00
Kimmo Johansson de0b3b9a4c [fi] update translation for Finnish 2021-05-24 10:32:04 +00:00
Fred Delrieu a71da48504 doc 2021-05-23 20:13:48 +02:00
GitHub Action 0710a9b871 Updated status of translations 2021-05-23 17:42:54 +00:00
Fred Delrieu 3e4f24b939 Merge pull request #1756 from xcaro/patch-1
[vi] update translation for Vietnamese
2021-05-23 19:42:18 +02:00
Fred Delrieu b7014d9b86 Merge pull request #1754 from hms5232/hms5232-patch-1
[zh_TW] Update terms
2021-05-23 19:41:49 +02:00
GitHub Action 87017a2571 Updated status of translations 2021-05-23 08:51:35 +00:00
Fred Delrieu 3bca1690f4 Merge pull request #1757 from mohamedsabil83/patch/2021-05-23-06-14
[ar] Translated new keys for cashier, jetstream, and spark
2021-05-23 10:51:03 +02:00
MohamedSabil83 d969de0206 [ar] fix typo 2021-05-23 06:38:57 +03:00
MohamedSabil83 749b0cf1fa [ar] Translated new keys for cashier, jetstream, and spark 2021-05-23 06:35:32 +03:00
Nhan Vo 36606d34ac [vi] update translation for Vietnamese 2021-05-23 02:58:03 +07:00
Aleksandr Medvedev aef3749670 Add new translation for Nova 2021-05-22 22:22:46 +03:00
Fred Delrieu 5ba5fe59ed doc 2021-05-21 18:27:11 +02:00
GitHub Action bb727c2640 Updated status of translations 2021-05-21 16:26:43 +00:00
Fred Delrieu 5283751175 [fr] json files 2021-05-21 18:23:03 +02:00
GitHub Action 44656c5509 Updated status of translations 2021-05-21 16:13:59 +00:00
Fred Delrieu 1b3769cb2b Merge pull request #1753 from luisprmat/master
[es] Update spanish language
2021-05-21 18:13:33 +02:00
GitHub Action a19a54de02 Updated status of translations 2021-05-21 16:11:00 +00:00
Fred Delrieu 39f02b39df Merge pull request #1752 from andrey-helldar/patch/2021-05-21/00-14
Added dock block to structure splitter file
2021-05-21 18:10:26 +02:00
Fred Delrieu d26e45cf01 Merge pull request #1751 from andrey-helldar/patch/2021-05-20/22-16
[ru] Cashier, Jetstream and Spark missed keys translated + fixed bug
2021-05-21 18:09:45 +02:00
hms5232 ac4c2534fd [zh_TW] Update terms 2021-05-21 12:31:18 +08:00
hms5232 83c58ddf34 [zh_TW] convert Simplified to Traditional Chinese
Convert Simplified Chinese to Traditional Chinese.
2021-05-21 12:27:39 +08:00
Luis Antonio Parrado 3d23870a15 [es] Update spanish language 2021-05-20 20:33:24 -05:00
Andrey Helldar 9f0e7b8504 Added dock block to structure upgrade file 2021-05-21 00:27:46 +03:00
Andrey Helldar e8eeac1655 [ru] Spark Stripe: Missed keys translated 2021-05-21 00:03:11 +03:00
Andrey Helldar 25decb0107 Fixed bug with saving translation statuses 2021-05-21 00:02:56 +03:00
Andrey Helldar c4c21701c0 [ru] Spark Paddle/Stripe: Missed keys translated 2021-05-20 23:55:06 +03:00
Andrey Helldar 7a0cf43404 [ru] Spark Paddle: Missed keys translated 2021-05-20 23:33:24 +03:00
Andrey Helldar c54c68b502 [ru] Jetstream: Missed keys translated 2021-05-20 23:22:50 +03:00
Andrey Helldar 9d74c83059 [ru] Cashier: Missed keys translated 2021-05-20 23:22:37 +03:00
Fred Delrieu 9318ef2dc0 doc 2021-05-20 19:46:49 +02:00
Fred Delrieu 8d819380fb Merge pull request #1748 from andrey-helldar/patch/2021-05-13/20-09
Splitting projects
2021-05-20 19:44:51 +02:00
Andrey Helldar 7dfe19cdc4 Updated docs/index.md 2021-05-20 11:14:32 +03:00
Andrey Helldar baa494f301 Fixed test validation bug 2021-05-19 22:45:21 +03:00
Andrey Helldar 138003032b Merge branch 'patch/2021-05-19/21-00' into patch/2021-05-13/20-09 2021-05-19 21:20:07 +03:00
Andrey Helldar 6a6a1c10a4 Conflict fixed 2021-05-19 21:19:55 +03:00
Andrey Helldar 72ca6a40d5 Conflict fixed 2021-05-19 21:18:21 +03:00
Andrey Helldar 9d17e7cbb0 Conflict fixed 2021-05-19 21:18:18 +03:00
Andrey Helldar 9eecc45bd6 Conflict fixed 2021-05-19 21:17:53 +03:00
Andrey Helldar 36326d756f Update changelog.md 2021-05-19 21:17:33 +03:00
Andrey Helldar a55f5b3c68 Update README.md 2021-05-19 21:17:33 +03:00
Andrey Helldar 2ff7abb784 Update contributing-to-dev.md 2021-05-19 21:17:33 +03:00
Andrey Helldar 0ffeac9b36 Reorder strings 2021-05-19 21:17:33 +03:00
Andrey Helldar a7c1feed87 Key parsing bug fixed 2021-05-19 21:17:30 +03:00
Andrey Helldar 662be8947e Revert locales 2021-05-19 21:16:52 +03:00
Andrey Helldar 402ecaba85 Fixed Parser.php 2021-05-19 21:16:37 +03:00
Andrey Helldar 991cdf0af7 Update regex 2021-05-19 21:16:37 +03:00
Andrey Helldar 470bc8e7dc RC 2021-05-19 21:16:28 +03:00
Andrey Helldar 0b216a9842 Updated tests 2021-05-19 21:15:18 +03:00
Andrey Helldar a64dfde999 Refactoring app 2021-05-19 21:15:18 +03:00
Andrey Helldar 39faf12d71 Direct links to repository files have been added to the documentation generation 2021-05-19 21:15:18 +03:00
Andrey Helldar 0e6406ed52 Update Parser 2021-05-19 21:15:18 +03:00
Andrey Helldar dd97e1fc19 Argument matches the parameter's default value 2021-05-19 21:15:18 +03:00
Andrey Helldar 3ea2a9b6a3 Fixed Parser 2021-05-19 21:15:17 +03:00
Andrey Helldar 02c98c9d2b Regular expression for searching translations changed 2021-05-19 21:15:16 +03:00
Andrey Helldar f9ff3aeaaf Revert file structure 2021-05-19 21:15:16 +03:00
Andrey Helldar 2907e919aa Added a call to search for translation keys when pushing to the main branch 2021-05-19 21:15:16 +03:00
Andrey Helldar cbf4132f92 Updated tests 2021-05-19 21:15:16 +03:00
Andrey Helldar 948842cdf0 Updated English localization files 2021-05-19 21:15:16 +03:00
Andrey Helldar 67c40e3af6 Added file splitting 2021-05-19 21:15:16 +03:00
Andrey Helldar 2f56a3216a Added search for Laravel Fortify and Jetstream keys 2021-05-19 21:15:14 +03:00
Andrey Helldar 02c810b246 Added Laravel Jetstream and Fortify installation in dev dependencies 2021-05-19 21:15:14 +03:00
Andrey Helldar ce9e91a8ef Renamed source files 2021-05-19 21:15:14 +03:00
Andrey Helldar b681c98d7a Laravel Cashier Stripe translation keys added to project 2021-05-19 21:15:14 +03:00
Andrey Helldar 7d8bd5a049 Laravel Cashier Paddle project does not contain translation keys 2021-05-19 21:15:14 +03:00
Andrey Helldar 2c2c2f812b Removed Cashier dependencies 2021-05-19 21:15:14 +03:00
Andrey Helldar 5322b0f4b5 Added Laravel Cashier installation in dev dependencies 2021-05-19 21:15:14 +03:00
Andrey Helldar ba414e1efc File location changed 2021-05-19 21:15:14 +03:00
Andrey Helldar 532a1365cc Conflict fixed 2021-05-19 21:14:16 +03:00
Andrey Helldar f920b23e00 Resolved conflict docs/changelog.md 2021-05-19 21:12:45 +03:00
Andrey Helldar e16106a208 Conflict fixed 2021-05-19 21:08:02 +03:00
Andrey Helldar 37ad2697c8 Merge branch 'patch/2021-05-13/20-09' into patch/2021-05-19/21-00
# Conflicts:
#	docs/status.md
#	docs/statuses/de.md
#	docs/statuses/nb.md
#	locales/de/de.json
2021-05-19 21:02:12 +03:00
Andrey Helldar ba19191670 Conflict fixed 2021-05-19 20:59:35 +03:00
Fred Delrieu ffee21f665 doc 2021-05-19 19:55:04 +02:00
Fred Delrieu 157c9dc4ed fix: [de] json file 2021-05-19 19:55:04 +02:00
GitHub Action 671ea33760 Updated status of translations 2021-05-19 17:51:39 +00:00
Fred Delrieu 05641eec32 Merge pull request #1750 from sotten/master
[de] translation
2021-05-19 19:51:04 +02:00
sotten b267574353 Update de.json 2021-05-19 15:46:31 +02:00
sotten 5a7f7c55d8 Update de.json 2021-05-19 15:20:22 +02:00
sotten 34f1acb3e0 Update de.json 2021-05-19 15:16:21 +02:00
sotten 81896cdfb8 Update de.json 2021-05-19 15:06:19 +02:00
sotten f3fba5e002 Update de.php 2021-05-19 15:05:28 +02:00
Andrey Helldar 35bf34850c Update changelog.md 2021-05-18 12:02:58 +03:00
Andrey Helldar c93140346c Update README.md 2021-05-18 12:02:52 +03:00
Andrey Helldar 7439f1733e Update contributing-to-dev.md 2021-05-18 12:02:41 +03:00
Andrey Helldar 1f0c0b2ff4 Reorder strings 2021-05-18 11:58:26 +03:00
Andrey Helldar 329a0b0af3 Key parsing bug fixed 2021-05-17 22:29:07 +03:00
Andrey Helldar 36ea68d6fc Revert locales 2021-05-17 21:34:24 +03:00
Andrey Helldar e5be5413ef Fixed Parser.php 2021-05-17 19:13:28 +03:00
Andrey Helldar 323f995cd5 Update regex 2021-05-17 18:43:17 +03:00
Andrey Helldar 8b39ba634a RC 2021-05-16 13:31:14 +03:00
Andrey Helldar a87a874b8e Merge remote-tracking branch 'caouecs/master' into patch/2021-05-13/20-09 2021-05-16 13:28:57 +03:00
Fred Delrieu 7e0247cf23 feature: exclude for nb 2021-05-16 10:52:48 +02:00
GitHub Action 6d6bc75331 Updating translations keys 2021-05-15 16:13:22 +00:00
Fred Delrieu 3bbe7e53f7 doc 2021-05-15 18:12:52 +02:00
Fred Delrieu 07ebd852cb feature: sorted nb json 2021-05-15 18:11:18 +02:00
GitHub Action 18debfc7c4 Updated status of translations 2021-05-15 16:06:27 +00:00
GitHub Action 03481485d2 Updating translations keys 2021-05-15 16:06:24 +00:00
Fred Delrieu e03c05ada0 Merge pull request #1747 from DanielRTRD/update-norwegian
Norwegian: Completed!
2021-05-15 18:05:50 +02:00
Daniel S. Billing 3d2f265b9e Removed :attribute 2021-05-15 12:29:16 +02:00
Daniel S. Billing ffc987c661 Sorted by alphanum 2021-05-15 12:24:51 +02:00
Fred Delrieu 8c5cc7a493 doc 2021-05-14 23:25:59 +02:00
Andrey Helldar e108045888 Updated tests 2021-05-14 17:17:41 +03:00
Andrey Helldar 43ebedfc7e Refactoring app 2021-05-14 15:49:20 +03:00
Andrey Helldar 8f6aa5c645 Direct links to repository files have been added to the documentation generation 2021-05-14 15:49:10 +03:00
GitHub Action 1107eb67bc Updating excludes files 2021-05-14 10:33:59 +00:00
Fred Delrieu 534071ad5e Merge pull request #1749 from dinhquochan/vietnamese/patch-1
Vietnamese: Update for Laravel Spark
2021-05-14 12:33:24 +02:00
Andrey Helldar 9d66bed6d7 Update Parser 2021-05-14 11:14:51 +03:00
Andrey Helldar 0b983c92ec Argument matches the parameter's default value 2021-05-14 11:14:15 +03:00
Andrey Helldar b252890b09 Fixed Parser 2021-05-14 11:13:11 +03:00
Andrey Helldar b82ea14f3a Regular expression for searching translations changed 2021-05-14 11:11:51 +03:00
Andrey Helldar 3a8b84b172 Revert file structure 2021-05-14 11:06:41 +03:00
Dinh Quoc Han 2f391c0faf Updated Vietnamese Translations 2021-05-14 14:30:20 +07:00
Andrey Helldar 36fd7b6e43 Added a call to search for translation keys when pushing to the main branch 2021-05-13 23:57:09 +03:00
Andrey Helldar a777a76945 Updated tests 2021-05-13 23:52:08 +03:00
Andrey Helldar 587186e4f9 Updated English localization files 2021-05-13 23:42:42 +03:00
Andrey Helldar 58530d0ab0 Added file splitting 2021-05-13 23:42:20 +03:00
Andrey Helldar 7cfab95390 Added search for Laravel Fortify and Jetstream keys 2021-05-13 23:41:55 +03:00
Andrey Helldar 2d61d0da61 Added Laravel Jetstream and Fortify installation in dev dependencies 2021-05-13 22:50:35 +03:00
Andrey Helldar 54b8215832 Renamed source files 2021-05-13 22:50:08 +03:00
Andrey Helldar 9fbea9e9f6 Laravel Cashier Stripe translation keys added to project 2021-05-13 20:41:42 +03:00
Andrey Helldar ba6e95028a Laravel Cashier Paddle project does not contain translation keys 2021-05-13 20:41:14 +03:00
Andrey Helldar e50de9d79b Removed Cashier dependencies 2021-05-13 20:40:57 +03:00
Andrey Helldar 92976ff137 Added Laravel Cashier installation in dev dependencies 2021-05-13 20:27:29 +03:00
Andrey Helldar 0aaad586f0 File location changed 2021-05-13 20:26:33 +03:00
Fred Delrieu b3ec64623f doc 2021-05-13 18:12:10 +02:00
GitHub Action ca0172565c Updated status of translations 2021-05-11 20:35:52 +00:00
Fred Delrieu e2b6bd35a5 Merge pull request #1746 from VerasNp/master
[pt_BR] Update locales/pt_BR/pt_BR.json
2021-05-11 22:35:17 +02:00
Daniel S. Billing 0fac9fba44 Merge branch 'master' into update-norwegian 2021-05-11 21:34:18 +02:00
Daniel S. Billing d9d3dc9ed8 Full comparison with english file, updated accordingly. Including countries 2021-05-11 21:32:18 +02:00
Veras 929d4cf87a Solving confict in "Press \/ to search"
Solved conflict with "Press \/ to search".
2021-05-11 14:21:28 -05:00
Daniel S. Billing d8a60499dd Full comparison with english file, updated accordingly 2021-05-11 20:43:53 +02:00
Veras 6ded912cb4 Merge branch 'master' into master 2021-05-11 09:27:33 -05:00
Vitor Veras 6ad0942367 [pt_BR]Update locales/pt_BR/pt_BR.json translation
Address
City
Country
2021-05-11 09:11:54 -05:00
Fred Delrieu 5850a07831 Merge pull request #1745 from masterix21/patch-1
Update it.json
2021-05-11 13:38:09 +02:00
Luca Longo 329096de98 Update it.json
Misspelled word
2021-05-11 13:13:02 +02:00
GitHub Action ae7fe11613 Updated status of translations 2021-05-09 14:47:34 +00:00
GitHub Action 46fae9cb6e Updating translations keys 2021-05-09 14:47:32 +00:00
Fred Delrieu 2bac16dd12 Merge pull request #1744 from DanielRTRD/update-norwegian
Completed Norwegian translation
2021-05-09 16:47:06 +02:00
Daniel S. Billing d1fc1a050e A few missing pieces to Norwegian translation 2021-05-09 16:35:18 +02:00
Daniel S. Billing 74a5793d57 Merge branch 'master' into update-norwegian 2021-05-09 15:54:14 +02:00
Daniel S. Billing a6546037aa Completed Norwegian translation 2021-05-09 15:51:53 +02:00
Fred Delrieu 0cddf27948 doc 2021-05-07 18:00:18 +02:00
GitHub Action 22b58810c1 Updated status of translations 2021-05-07 15:55:56 +00:00
Fred Delrieu 6137158e48 [bn] json file 2021-05-07 17:55:15 +02:00
GitHub Action 9a50636a56 Updated status of translations 2021-05-07 15:50:53 +00:00
GitHub Action 05ea0c4e78 Updating translations keys 2021-05-07 15:50:50 +00:00
Fred Delrieu 73833e83c4 Merge pull request #1743 from DanielRTRD/update-norwegian
Update Norwegian
2021-05-07 17:50:27 +02:00
GitHub Action f87cb625eb Updated status of translations 2021-05-07 15:15:58 +00:00
GitHub Action e6672c3d53 Updating translations keys 2021-05-07 15:15:55 +00:00
Fred Delrieu a5df3caf9b Merge pull request #1741 from RakibDevs/patch-2
Translate Bangla
2021-05-07 17:15:23 +02:00
Daniel S. Billing 185f7b173c Update nb.json part 1 2021-05-07 17:04:36 +02:00
Md. Rakibul Islam 8a331a4ab8 Update bn.json 2021-05-07 14:39:13 +06:00
Md. Rakibul Islam 5f4e1000a8 Translate Bangla 2021-05-07 14:33:27 +06:00
Fred Delrieu ccdf81fbc0 Merge pull request #1739 from RakibDevs/patch-1
Added Bangla translation for auth
2021-05-07 10:13:44 +02:00
Md. Rakibul Islam a29fa2e956 Added Bangla translation for auth 2021-05-07 03:21:07 +06:00
GitHub Action 4981761a4f Updated status of translations 2021-05-06 08:45:50 +00:00
Fred Delrieu f17c6732a0 Machine list 2021-05-06 10:45:15 +02:00
GitHub Action 130e3edc05 Updated status of translations 2021-05-05 17:17:03 +00:00
Fred Delrieu e344290006 Merge pull request #1738 from andrey-helldar/patch/2021-05-05/17-34
Added comparison of sub-elements of arrays
2021-05-05 19:16:37 +02:00
Andrey Helldar 0b2b018845 Added comparison of sub-elements of arrays 2021-05-05 19:44:58 +03:00
GitHub Action 1e706c033e Updated status of translations 2021-05-05 16:31:11 +00:00
Fred Delrieu 2dbe7cf0c9 Merge pull request #1733 from SuperDJ/master
Added NL translations
2021-05-05 18:30:45 +02:00
SuperDJ 26f0926779 Fixed translations 2021-05-05 17:18:41 +02:00
GitHub Action 4431b39220 Updated status of translations 2021-05-03 11:38:56 +00:00
Fred Delrieu b93d1c4e0c Merge pull request #1737 from Eixix/de-add-translations-password-validation
[de] Add translations for new Password Validation Rule
2021-05-03 13:38:25 +02:00
Eixix a89bc97a76 Update de.json
[de] Add translations for new Password Validation Rule
2021-05-03 12:06:07 +02:00
caouecs c39f67621a doc 2021-05-02 20:29:25 +02:00
GitHub Action 46cd86eea9 Updated status of translations 2021-05-01 14:56:28 +00:00
Fred Delrieu 7165e1eda6 Merge pull request #1736 from mkismy/master
[ja] Update Japanese translation
2021-05-01 16:55:54 +02:00
Yuta Amakawa 34fa86dcf9 [ja] Fix 2021-05-01 23:45:21 +09:00
GitHub Action 2b99e07aad Updated status of translations 2021-05-01 13:33:37 +00:00
Fred Delrieu 26325e853e Merge pull request #1726 from mateusjunges/patch-2
Add pt-br translations for new password rule
2021-05-01 15:33:02 +02:00
Yuta Amakawa 3e124f3a30 [ja] Update Japanese translation 2021-05-01 17:22:25 +09:00
caouecs f3950ba45f doc 2021-04-29 23:12:46 +02:00
SuperDJ a01f3e924d Added nl translations 2021-04-29 20:40:48 +02:00
SuperDJ 9d2af5a62e Added nl translations 2021-04-29 20:36:17 +02:00
GitHub Action 111c73f3f9 Updated status of translations 2021-04-29 08:37:25 +00:00
Fred Delrieu f8990cff6a Merge pull request #1732 from mohamedsabil83/patch/2021-04-28-17-23-27
[ar] Add missing keys
2021-04-29 10:36:54 +02:00
Fred Delrieu 867fe21bc8 Merge pull request #1731 from luisprmat/master
[es] Translate missing tags
2021-04-29 10:36:29 +02:00
MohamedSabil83 1be3c13787 Add missing keys 2021-04-29 05:12:50 +03:00
Luis Antonio Parrado e78fbf87e2 [es] Translate missing tags 2021-04-28 17:45:52 -05:00
GitHub Action f39ff73753 Updated status of translations 2021-04-28 17:34:55 +00:00
Fred Delrieu 34787b91d7 Merge pull request #1730 from mohamedsabil83/patch/2021-04-28-17-23-27
[ar] Add translations for spark and new password rules
2021-04-28 19:34:26 +02:00
GitHub Action 79c4b8e731 Updated status of translations 2021-04-28 17:34:02 +00:00
GitHub Action c3de730ddf Updating translations keys 2021-04-28 17:34:00 +00:00
Fred Delrieu 8e9afc8cce Merge pull request #1727 from luisprmat/master
[es] Add translations for Laravel Spark
2021-04-28 19:33:40 +02:00
GitHub Action c9e66c9e0a Updated status of translations 2021-04-28 17:32:35 +00:00
GitHub Action cc9f274921 Updating excludes files 2021-04-28 17:32:33 +00:00
Fred Delrieu e0e6f15643 Merge pull request #1729 from masterix21/patch-210428
[it] Spark additions
2021-04-28 19:32:05 +02:00
MohamedSabil83 1e7e2c85e7 Add translations for spark and new password rules 2021-04-28 17:24:59 +03:00
Luca Longo 031876b68d Update it.json 2021-04-28 16:17:20 +02:00
caouecs dcda1a5cd0 fix: duplication of lines in en.json 2021-04-28 07:14:02 +02:00
Luis Antonio Parrado db96e4ea9f [es] Add translation for Laravel Spark 2021-04-27 12:52:19 -05:00
GitHub Action a6a2d020ba Updated status of translations 2021-04-27 07:19:46 +00:00
GitHub Action 54b10c6955 Updating excludes files 2021-04-27 07:19:44 +00:00
caouecs 99b4a6acf2 [fr] exclude 2021-04-27 09:19:06 +02:00
caouecs d9aa0f36f7 [af][az] copy of country names 2021-04-27 09:18:31 +02:00
GitHub Action 1ae124737f Updated status of translations 2021-04-27 07:06:53 +00:00
GitHub Action 3615c36b48 Updating excludes files 2021-04-27 07:06:51 +00:00
caouecs d764077ab4 doc 2021-04-27 09:06:19 +02:00
caouecs a55977b16b [fr] Laravel Spark 2021-04-27 09:06:14 +02:00
GitHub Action 2ad7f2cdbf Updated status of translations 2021-04-27 06:39:08 +00:00
GitHub Action 1fe7eadf68 Updating translations keys 2021-04-27 06:39:06 +00:00
Fred Delrieu 14fd8fdb59 Merge pull request #1715 from Laravel-Lang/LaravelSpark
Start of add of Laravel Spark tags
2021-04-27 08:38:39 +02:00
GitHub Action 09f819654e Updated status of translations 2021-04-26 20:14:40 +00:00
Fred Delrieu f53a7394a3 Merge pull request #1723 from vanthao03596/vanthao03596-patch-1
[vi] Complete missing password validation
2021-04-26 22:14:10 +02:00
Mateus Junges 1112c89ad3 Update pt_BR.json 2021-04-26 14:29:24 -03:00
GitHub Action c359c442c5 Updated status of translations 2021-04-26 13:20:27 +00:00
Fred Delrieu 0f5f63bf2c Merge pull request #1725 from andrey-helldar/patch/2021-04-26/12-02
[ru] New passwords keys
2021-04-26 15:20:00 +02:00
GitHub Action 6258adb546 Updated status of translations 2021-04-26 13:19:25 +00:00
Fred Delrieu 1d8e7a2e7f Merge pull request #1724 from andrey-helldar/patch/2021-04-26/11-43
Reduced the number of displayed columns
2021-04-26 15:18:52 +02:00
Andrey Helldar 717bcbcf3f [ru] New passwords keys 2021-04-26 12:14:25 +03:00
Andrey Helldar 3344bcf1d2 Reduced the number of displayed columns 2021-04-26 11:46:02 +03:00
Pham Thao 4de7937ac4 Complete missing password validation 2021-04-26 14:12:33 +07:00
GitHub Action b945f19882 Updated status of translations 2021-04-26 06:28:46 +00:00
Fred Delrieu c02fc70b7a Merge pull request #1721 from medvinator/master
[ru] fix Nova translations
2021-04-26 08:28:13 +02:00
Fred Delrieu 501e307fc3 Merge pull request #1722 from lakuapik/patch-lang-id
[id] Add translations for new Password Validation Rule
2021-04-26 08:27:18 +02:00
David Adi Nugroho ecf706dadd [id] Add translations for new Password Validation Rule 2021-04-26 13:18:08 +07:00
Luis Antonio Parrado 7edb3e8f63 [es] Add spanish translations to Laravel Spark 2021-04-25 13:38:57 -05:00
Aleksandr Medvedev cc61afec5f [ru] fix Nova translations 2021-04-25 20:23:26 +03:00
caouecs 891f13be60 doc 2021-04-25 09:54:50 +02:00
GitHub Action aeec49dfb8 Updated status of translations 2021-04-25 07:49:45 +00:00
caouecs 9d91ffde84 [fr] Add translations for new Password Validation Rule 2021-04-25 09:49:12 +02:00
GitHub Action 4ba2f8e6b4 Updated status of translations 2021-04-25 07:35:56 +00:00
Fred Delrieu f6d048923c Merge pull request #1718 from luisprmat/patch-2
[es] Add translations for new Password Validation Rule
2021-04-25 09:35:31 +02:00
Fred Delrieu 1078420366 Merge branch 'master' into patch-2 2021-04-25 09:35:25 +02:00
GitHub Action e33da1fe10 Updated status of translations 2021-04-25 07:34:17 +00:00
GitHub Action 0dcdf52af2 Updating translations keys 2021-04-25 07:34:14 +00:00
Fred Delrieu f7c0d1054d Merge pull request #1717 from luisprmat/patch-1
[en] Add translations for new Password Validation Rule
2021-04-25 09:33:53 +02:00
Fred Delrieu 2f8ff7c74b Merge pull request #1720 from kamaroolkarim/codespace-efe5
[ms]: update validation for auto machine translation
2021-04-25 09:32:32 +02:00
Kamarool Karim e809c372fa [ms]: update validation for auto machine translation 2021-04-25 06:42:20 +00:00
Luis Parrado bdabf182a1 [es] Add tranlations for new Password Validation Rule
This PR [https://github.com/laravel/framework/pull/36960](https://github.com/laravel/framework/pull/36960) was merged yesterday
2021-04-24 21:48:54 -05:00
Luis Parrado 2acff7c53f [en] Add translations for new Password Validation Rule
This PR [https://github.com/laravel/framework/pull/36960](https://github.com/laravel/framework/pull/36960) was merged yesterday. I'm sure that it will be available in the next release of Laravel (**8.39.0 ?**)
2021-04-24 21:43:57 -05:00
caouecs 10f402f2fc start of inclusion of Laravel Spark tags 2021-04-24 19:40:14 +02:00
GitHub Action da529c3dac Updated status of translations 2021-04-24 12:55:54 +00:00
GitHub Action 34f11e00ae Updating excludes files 2021-04-24 12:55:52 +00:00
caouecs b1cfa55d16 [pt][pt_BR] excludes and fix on country names 2021-04-24 14:55:17 +02:00
caouecs e24ca609e7 doc 2021-04-24 14:47:17 +02:00
GitHub Action b2cb86954f Updated status of translations 2021-04-24 12:34:44 +00:00
Fred Delrieu 19b2db6ce4 Merge pull request #1631 from andrey-helldar/patch/2021-04-17/ja
[ja] Machine translation of missing keys
2021-04-24 14:34:17 +02:00
Fred Delrieu 0df29b6e6b Merge pull request #1632 from andrey-helldar/patch/2021-04-17/ka
[ka] Machine translation of missing keys
2021-04-24 14:34:09 +02:00
Fred Delrieu e9822bdbec Merge pull request #1633 from andrey-helldar/patch/2021-04-17/kk
[kk] Machine translation of missing keys
2021-04-24 14:34:01 +02:00
Fred Delrieu 7aeeef8dd2 Merge pull request #1635 from andrey-helldar/patch/2021-04-17/kn
[kn] Machine translation of missing keys
2021-04-24 14:33:53 +02:00
Fred Delrieu 8597c95b7e Merge pull request #1642 from andrey-helldar/patch/2021-04-17/ms
[ms] Machine translation of missing keys
2021-04-24 14:33:45 +02:00
Fred Delrieu 7a3059e163 Merge pull request #1651 from andrey-helldar/patch/2021-04-17/sl
[sl] Machine translation of missing keys
2021-04-24 14:33:37 +02:00
Fred Delrieu 69c3d7046b Merge pull request #1653 from andrey-helldar/patch/2021-04-17/sr_Latn
[sr_Latn] Machine translation of missing keys
2021-04-24 14:33:16 +02:00
Fred Delrieu eb0b725069 Merge pull request #1654 from andrey-helldar/patch/2021-04-17/sr_Cyrl
[sr_Cyrl] Machine translation of missing keys
2021-04-24 14:33:06 +02:00
Fred Delrieu 6d4e4db84a Merge pull request #1655 from andrey-helldar/patch/2021-04-17/sr_Latn_ME
[sr_Latn_ME] Machine translation of missing keys
2021-04-24 14:32:57 +02:00
Fred Delrieu 9e79a32e7a Merge pull request #1662 from andrey-helldar/patch/2021-04-17/uk
[uk] Machine translation of missing keys
2021-04-24 14:32:49 +02:00
Fred Delrieu a7773e4873 Merge pull request #1672 from andrey-helldar/patch/2021-04-17/ca
[ca] Machine translation of missing keys
2021-04-24 14:32:38 +02:00
Fred Delrieu 2f6077c276 Merge pull request #1675 from andrey-helldar/patch/2021-04-17/da
[da] Machine translation of missing keys
2021-04-24 14:32:29 +02:00
Fred Delrieu d03c7e9220 Merge pull request #1683 from andrey-helldar/patch/2021-04-17/gl
[gl] Machine translation of missing keys
2021-04-24 14:32:17 +02:00
GitHub Action 3df3e76ea7 Updated status of translations 2021-04-24 12:31:14 +00:00
GitHub Action 0f2d22e49a Updating excludes files 2021-04-24 12:31:13 +00:00
caouecs 8b0e9d5d87 multi-fixes and excludes 2021-04-24 14:30:35 +02:00
GitHub Action 2d4bda681d Updated status of translations 2021-04-24 09:43:50 +00:00
caouecs e7dbde19a8 [bs][be][bg][bn] fixes 2021-04-24 11:43:13 +02:00
GitHub Action 6952fc2c14 Updated status of translations 2021-04-24 09:33:08 +00:00
caouecs b819143ed8 doc 2021-04-24 11:32:39 +02:00
caouecs 075a4367be [az][eu][fi] WIP - Some fixes 2021-04-24 11:32:39 +02:00
GitHub Action 51431def38 Updated status of translations 2021-04-24 08:52:40 +00:00
caouecs c6c171aee4 [az] fixed country names 2021-04-24 10:52:12 +02:00
GitHub Action 96ae9bb803 Updated status of translations 2021-04-24 08:45:24 +00:00
Fred Delrieu dbbb9ca155 Merge pull request #1628 from andrey-helldar/patch/2021-04-17/be
[be] Machine translation of missing keys
2021-04-24 10:44:59 +02:00
GitHub Action f3c391cd40 Updated status of translations 2021-04-24 08:44:54 +00:00
Fred Delrieu 0abbea4210 Merge pull request #1638 from andrey-helldar/patch/2021-04-17/lv
[lv] Machine translation of missing keys
2021-04-24 10:44:29 +02:00
Fred Delrieu b3e5ba1358 Merge pull request #1640 from andrey-helldar/patch/2021-04-17/mn
[mn] Machine translation of missing keys
2021-04-24 10:44:15 +02:00
Fred Delrieu 1362a04c4d Merge pull request #1641 from andrey-helldar/patch/2021-04-17/mr
[mr] Machine translation of missing keys
2021-04-24 10:44:01 +02:00
Fred Delrieu 73551dd24e Merge pull request #1650 from andrey-helldar/patch/2021-04-17/sk
[sk] Machine translation of missing keys
2021-04-24 10:43:50 +02:00
Fred Delrieu 1d2106a654 Merge pull request #1652 from andrey-helldar/patch/2021-04-17/sq
[sq] Machine translation of missing keys
2021-04-24 10:43:40 +02:00
Fred Delrieu f07cafcff1 Merge pull request #1657 from andrey-helldar/patch/2021-04-17/sw
[sw] Machine translation of missing keys
2021-04-24 10:43:28 +02:00
GitHub Action 45f3408944 Updated status of translations 2021-04-24 08:43:13 +00:00
Fred Delrieu 5afba60e48 Merge pull request #1658 from andrey-helldar/patch/2021-04-17/tg
[tg] Machine translation of missing keys
2021-04-24 10:42:48 +02:00
Fred Delrieu 914642ba67 Merge pull request #1659 from andrey-helldar/patch/2021-04-17/th
[th] Machine translation of missing keys
2021-04-24 10:42:41 +02:00
Fred Delrieu e1e4be0a32 Merge pull request #1660 from andrey-helldar/patch/2021-04-17/tl
[tl] Machine translation of missing keys
2021-04-24 10:42:32 +02:00
Fred Delrieu 2fce7ae0cf Merge pull request #1663 from andrey-helldar/patch/2021-04-17/ur
[ur] Machine translation of missing keys
2021-04-24 10:42:24 +02:00
Fred Delrieu cc7e6ac818 Merge pull request #1670 from andrey-helldar/patch/2021-04-17/bn
[bn] Machine translation of missing keys
2021-04-24 10:42:15 +02:00
GitHub Action ceda6cfa74 Updated status of translations 2021-04-24 08:41:00 +00:00
Fred Delrieu dfb9f7b4b3 Merge pull request #1671 from andrey-helldar/patch/2021-04-17/bs
[bs] Machine translation of missing keys
2021-04-24 10:40:37 +02:00
GitHub Action 213c933476 Updated status of translations 2021-04-24 08:39:35 +00:00
Fred Delrieu 43cef9d57f Merge pull request #1673 from andrey-helldar/patch/2021-04-17/cs
[cs] Machine translation of missing keys
2021-04-24 10:39:12 +02:00
Fred Delrieu 03c7d30fe6 Merge pull request #1674 from andrey-helldar/patch/2021-04-17/cy
[cy] Machine translation of missing keys
2021-04-24 10:38:42 +02:00
Fred Delrieu 68e739b3ab Merge pull request #1679 from andrey-helldar/patch/2021-04-17/et
[et] Machine translation of missing keys
2021-04-24 10:38:16 +02:00
Fred Delrieu 0191263147 Merge pull request #1680 from andrey-helldar/patch/2021-04-17/eu
[eu] Machine translation of missing keys
2021-04-24 10:38:03 +02:00
Fred Delrieu b2ba5b72f4 Merge pull request #1682 from andrey-helldar/patch/2021-04-17/fi
[fi] Machine translation of missing keys
2021-04-24 10:37:50 +02:00
Fred Delrieu 1bc8d5de97 Merge pull request #1684 from andrey-helldar/patch/2021-04-17/he
[he] Machine translation of missing keys
2021-04-24 10:37:39 +02:00
Fred Delrieu 0ec5422442 Merge pull request #1685 from andrey-helldar/patch/2021-04-17/hi
[hi] Machine translation of missing keys
2021-04-24 10:37:25 +02:00
Fred Delrieu a457cede78 Merge pull request #1690 from andrey-helldar/patch/2021-04-17/is
[is] Machine translation of missing keys
2021-04-24 10:37:12 +02:00
GitHub Action 81a7dd8aa0 Updated status of translations 2021-04-24 08:31:07 +00:00
Fred Delrieu c08715d032 Merge pull request #1627 from andrey-helldar/patch/2021-04-17/az
[az] Machine translation of missing keys
2021-04-24 10:30:47 +02:00
GitHub Action 8e248a6005 Updated status of translations 2021-04-24 08:29:01 +00:00
Fred Delrieu 4a4433efa2 Merge pull request #1713 from andrey-helldar/patch/2021-04-23/23-05
Added the ability to flag machine translation
2021-04-24 10:28:33 +02:00
Andrey Helldar ce9e1d5cfe Added the ability to flag machine translation 2021-04-23 23:26:11 +03:00
caouecs a3637af306 [hu] fixes 2021-04-23 20:49:24 +02:00
caouecs ce2c44bcff doc 2021-04-23 20:34:20 +02:00
caouecs 12d9b1476e [hu] fixes 2021-04-23 20:31:58 +02:00
GitHub Action b5b2ec9640 Updated status of translations 2021-04-23 18:23:41 +00:00
Fred Delrieu 2e8c21ad50 Merge pull request #1687 from andrey-helldar/patch/2021-04-17/hu
[hu] Machine translation of missing keys
2021-04-23 20:23:17 +02:00
Fred Delrieu 2929138573 Merge pull request #1712 from andrey-helldar/patch/2021-04-17/bg
[bg] Fixes for machine translations
2021-04-23 20:21:17 +02:00
Andrey Helldar 47910a11e6 [bg] Fixes for machine translations 2021-04-23 21:15:54 +03:00
GitHub Action 1668069356 Updated status of translations 2021-04-23 17:13:45 +00:00
Fred Delrieu 9b547375cf Merge pull request #1669 from andrey-helldar/patch/2021-04-17/bg
[bg] Machine translation of missing keys
2021-04-23 19:13:14 +02:00
Fred Delrieu 921b56e1ff [nl] exclude 2021-04-23 14:34:25 +02:00
Fred Delrieu 05bcfd02b8 [nl] json file 2021-04-23 14:34:13 +02:00
GitHub Action 23c1858afc Updated status of translations 2021-04-23 12:32:29 +00:00
Fred Delrieu c77ea62158 Merge pull request #1644 from andrey-helldar/patch/2021-04-17/nl
[nl] Machine translation of missing keys
2021-04-23 14:32:07 +02:00
GitHub Action 751e1e6875 Updated status of translations 2021-04-23 12:31:22 +00:00
Fred Delrieu dd866d06f2 Merge pull request #1665 from andrey-helldar/patch/2021-04-17/uz_Latn
[uz_Latn] Machine translation of missing keys
2021-04-23 14:30:57 +02:00
Fred Delrieu 2627908aa6 Merge pull request #1664 from andrey-helldar/patch/2021-04-17/uz_Cyrl
[uz_Cyrl] Machine translation of missing keys
2021-04-23 14:30:49 +02:00
caouecs fab64d9743 doc 2021-04-22 22:00:09 +02:00
Andrey Helldar a9e51c6905 [nl] Missing symbol 2021-04-22 11:45:04 +03:00
Andrey Helldar b2e227edda [nl] Review fixes 2021-04-22 11:44:14 +03:00
Andrey Helldar 105d92def8 [nl] Review fixes 2021-04-22 11:39:02 +03:00
Fred Delrieu 0a3c096a10 Merge pull request #1711 from felixdorn/patch-1
[fr] fix bad wording
2021-04-22 10:37:47 +02:00
Félix Dorn 2d673e1628 [fr] fix bad wording 2021-04-21 21:40:09 +00:00
Fred Delrieu 3ddff83bb4 Merge pull request #1710 from sotten/master
[de] Jetstream key changed
2021-04-21 23:07:30 +02:00
sotten fdb76d69e0 [de] Jetstream key changed 2021-04-21 22:24:10 +02:00
caouecs 517b72ce04 doc 2021-04-21 19:00:48 +02:00
Fred Delrieu 28a0256649 Merge pull request #1709 from kohlerdominik/de_CH/prohibited
[de_CH] change prohibited validation
2021-04-21 18:58:55 +02:00
Fred Delrieu 7607aad01b Merge pull request #1708 from kohlerdominik/de/prohibited
[de] change prohibited validation
2021-04-21 18:58:18 +02:00
Dominik Kohler 280425b74f [de_CH] change prohibited validation 2021-04-21 18:55:16 +02:00
Dominik Kohler 82a605e195 [de] change prohibited validation 2021-04-21 18:50:22 +02:00
caouecs dab4d008b9 doc 2021-04-21 11:13:29 +02:00
GitHub Action 763b436d11 Updated status of translations 2021-04-21 09:11:03 +00:00
Fred Delrieu 34c0185eee Merge pull request #1639 from andrey-helldar/patch/2021-04-17/mk
[mk] Machine translation of missing keys
2021-04-21 11:10:32 +02:00
GitHub Action c7960c8067 Updated status of translations 2021-04-21 09:07:27 +00:00
caouecs 0e74e55161 excludes 2021-04-21 11:06:52 +02:00
caouecs ed6e5cff7a doc 2021-04-21 10:47:09 +02:00
GitHub Action 90dd9c9c83 Updated status of translations 2021-04-21 08:38:46 +00:00
caouecs bf9c7188d8 [tr] exclude file 2021-04-21 10:38:09 +02:00
Fred Delrieu 7b772dc3a5 Merge pull request #1705 from sotten/master
[de] small translation improvements
2021-04-21 10:34:36 +02:00
GitHub Action 84d7afc7f2 Updated status of translations 2021-04-21 06:21:09 +00:00
Fred Delrieu c0b4a34672 Merge pull request #1704 from kohlerdominik/de_CH/sync-with-de
[de_CH] sync changes from de
2021-04-21 08:20:36 +02:00
sotten 84f410b7c3 small translation improvements 2021-04-20 23:14:22 +02:00
Dominik Kohler dc6b8fbd38 [de_CH] sync changes from de 2021-04-20 21:57:37 +02:00
GitHub Action a9212ba917 Updated status of translations 2021-04-20 19:34:24 +00:00
caouecs c411bdc127 [de] exclude 2021-04-20 21:33:46 +02:00
GitHub Action 3aa9255349 Updated status of translations 2021-04-20 19:25:05 +00:00
caouecs c6194663a0 [de_CH] fix exclude 2021-04-20 21:24:29 +02:00
GitHub Action a851a3cad6 Updated status of translations 2021-04-20 19:23:06 +00:00
caouecs 031c48d920 [de_CH] fix exclude 2021-04-20 21:22:30 +02:00
GitHub Action c30c103197 Updated status of translations 2021-04-20 19:19:51 +00:00
GitHub Action db421fb73a Updating excludes files 2021-04-20 19:19:49 +00:00
Fred Delrieu 7188365196 Merge pull request #1703 from kohlerdominik/de_ch/add-excludes
[de_CH] copy excludes from de
2021-04-20 21:19:27 +02:00
GitHub Action 3dda0438e1 Updated status of translations 2021-04-20 19:19:07 +00:00
caouecs 14dfb128fa [de] exclude 2021-04-20 21:18:33 +02:00
caouecs fd0847b7ff [de] exclude, the time to fix the todo script 2021-04-20 21:17:36 +02:00
Dominik Kohler 0118ef8d76 [de_CH] copy excludes from de 2021-04-20 21:17:14 +02:00
GitHub Action 359bbd5749 Updated status of translations 2021-04-20 19:15:17 +00:00
GitHub Action 6bcc49ed59 Updating excludes files 2021-04-20 19:15:15 +00:00
Fred Delrieu 6802ce4def Merge pull request #1700 from kohlerdominik/de/fixes
[de] Fixes and excludes
2021-04-20 21:14:47 +02:00
Dominik Kohler c74f1ab96b [de] fixes 2021-04-20 21:11:52 +02:00
caouecs 2c10dc9b27 doc 2021-04-20 20:06:14 +02:00
GitHub Action a2cbe1e62b Updated status of translations 2021-04-20 18:00:57 +00:00
Fred Delrieu 8582325a6d Merge pull request #1649 from andrey-helldar/patch/2021-04-17/si
[si] Machine translation of missing keys
2021-04-20 20:00:25 +02:00
GitHub Action fc4835168e Updated status of translations 2021-04-20 17:56:13 +00:00
Fred Delrieu 502b1c3261 Merge pull request #1648 from andrey-helldar/patch/2021-04-17/ro
[ro] Machine translation of missing keys
2021-04-20 19:55:47 +02:00
caouecs e0d8c4576f [id] fix 2021-04-20 19:49:27 +02:00
Fred Delrieu 1aad1f779e Merge pull request #1689 from andrey-helldar/patch/2021-04-17/id
[id] Machine translation of missing keys
2021-04-20 19:46:15 +02:00
GitHub Action 35b3ab6fc0 Updated status of translations 2021-04-20 17:44:58 +00:00
Fred Delrieu bfd8ac369c Merge pull request #1678 from andrey-helldar/patch/2021-04-17/el
[el] Machine translation of missing keys
2021-04-20 19:44:28 +02:00
GitHub Action 078b00cc7c Updated status of translations 2021-04-20 14:22:58 +00:00
Fred Delrieu 76c21db53b Merge pull request #1647 from andrey-helldar/patch/2021-04-17/pt_BR
[pt_BR] Machine translation of missing keys
2021-04-20 16:22:11 +02:00
Andrey Helldar cf10b07997 Merge pull request #14 from HabiboIV/patch/2021-04-17/pt_BR
update translations
2021-04-20 16:59:49 +03:00
GitHub Action adf5652757 Updated status of translations 2021-04-20 11:55:35 +00:00
Fred Delrieu d5a9e83f21 Merge pull request #1656 from andrey-helldar/patch/2021-04-17/sv
[sv] Machine translation of missing keys
2021-04-20 13:55:11 +02:00
Fred Delrieu 2b67e76a0e Merge pull request #1699 from andrey-helldar/patch/2021-04-17/hy
[hy] Fixed missing key
2021-04-20 13:53:28 +02:00
GitHub Action 060c2405d4 Updated status of translations 2021-04-20 11:50:52 +00:00
Fred Delrieu 03c254f827 Merge pull request #1686 from andrey-helldar/patch/2021-04-17/hr
[hr] Machine translation of missing keys
2021-04-20 13:50:27 +02:00
Andrey Helldar fad38bb509 [sv] Fixed keys 2021-04-20 14:17:07 +03:00
Andrey Helldar 3e391c7f10 [pt_BR] Fixed keys 2021-04-20 14:11:25 +03:00
Andrey Helldar e4c577be83 [hy] Fix 2021-04-20 13:56:57 +03:00
HabiboIV c257ff01ca update translations 2021-04-20 12:10:23 +02:00
Andrey Helldar fb6e8363e1 [el] Fixes 2021-04-20 12:49:25 +03:00
GitHub Action b9ab4d52c0 Updated status of translations 2021-04-20 08:58:18 +00:00
Fred Delrieu 3f30d59818 Merge pull request #1645 from andrey-helldar/patch/2021-04-17/pl
[pl] Machine translation of missing keys
2021-04-20 10:57:52 +02:00
GitHub Action abbd917c09 Updated status of translations 2021-04-20 07:04:17 +00:00
Fred Delrieu a5444db687 Merge pull request #1697 from mertasan/fix-machine-translation
[tr] fix: Machine translation of missing keys, other fixes.
2021-04-20 09:03:45 +02:00
Fred Delrieu 969f39bcb6 Merge pull request #1698 from seakmengc/master
[km] Update some translations
2021-04-20 07:07:08 +02:00
GitHub Action 586fe5a009 Updated status of translations 2021-04-19 21:21:31 +00:00
GitHub Action b59e1f54c4 Updating translations keys 2021-04-19 21:21:28 +00:00
SeakmengChheang 38e6258b3d [km] Update some translations 2021-04-20 04:20:51 +07:00
GitHub Action ba5d43ca95 Updated status of translations 2021-04-19 21:03:42 +00:00
Fred Delrieu 198e10333a Merge pull request #1634 from andrey-helldar/patch/2021-04-17/km
[km] Machine translation of missing keys
2021-04-19 23:03:13 +02:00
caouecs dc4a253ec3 [hy] json file 2021-04-19 22:56:59 +02:00
GitHub Action e8996e8cec Updated status of translations 2021-04-19 20:54:39 +00:00
Fred Delrieu e49c413377 Merge pull request #1688 from andrey-helldar/patch/2021-04-17/hy
[hy] Machine translation of missing keys
2021-04-19 22:54:09 +02:00
caouecs ce9b12b057 doc 2021-04-19 18:19:53 +02:00
GitHub Action 308b6490bc Updated status of translations 2021-04-19 16:18:29 +00:00
caouecs 3e5cf1d56d [zh_*] Qatar 2021-04-19 18:17:55 +02:00
GitHub Action b83be8a8f6 Updated status of translations 2021-04-19 16:16:06 +00:00
Fred Delrieu cbb584eb0b Merge pull request #1643 from andrey-helldar/patch/2021-04-17/ne
[ne] Machine translation of missing keys
2021-04-19 18:15:35 +02:00
GitHub Action fc6d851a51 Updated status of translations 2021-04-19 13:58:02 +00:00
Fred Delrieu b443f6a3cf [zh_TW] Exclude ID 2021-04-19 15:57:36 +02:00
Fred Delrieu 87330db4b3 [zh_HK] Exclude ID 2021-04-19 15:57:20 +02:00
Fred Delrieu bb72d67b2c [zh_CN] exclude ID 2021-04-19 15:57:04 +02:00
GitHub Action 3ed7046da1 Updated status of translations 2021-04-19 13:53:56 +00:00
Fred Delrieu 6d187368d1 Merge pull request #1637 from andrey-helldar/patch/2021-04-17/lt
[lt] Machine translation of missing keys
2021-04-19 15:53:20 +02:00
Fred Delrieu c39e987326 [af] fix validation-inline.php 2021-04-19 11:16:33 +02:00
GitHub Action 63eefd6335 Updated status of translations 2021-04-19 09:15:47 +00:00
Fred Delrieu fb16c40f63 Merge pull request #1626 from andrey-helldar/patch/2021-04-17/af
[af] Machine translation of missing keys
2021-04-19 11:15:12 +02:00
Mert Aşan 81a6bf9d2f fix in_array 2021-04-19 05:11:35 +03:00
Mert Aşan 4bfc3fe13f fix validation.php 2021-04-19 05:01:15 +03:00
Mert Aşan e358f2c869 fix custom message 2021-04-19 05:01:06 +03:00
Mert Aşan d29cc715ba fix validation-inline 2021-04-19 04:52:33 +03:00
Mert Aşan b8862067f2 fix json 2021-04-19 04:26:55 +03:00
Mert Aşan 11baf67e4c Machine translation of missing keys 2021-04-19 03:55:47 +03:00
caouecs 888cafc81e doc 2021-04-18 20:39:24 +02:00
GitHub Action f9ecb974fe Updated status of translations 2021-04-18 17:08:30 +00:00
Fred Delrieu 336405cf0a Merge pull request #1695 from kohlerdominik/cleanup/de_CH
[de_CH] Machine translation of missing keys | CLEANUP
2021-04-18 19:08:07 +02:00
GitHub Action 1dff849a02 Updated status of translations 2021-04-18 17:07:45 +00:00
Fred Delrieu 5dc56d28da Merge pull request #1696 from kohlerdominik/cleanup/de
[de] Machine translation of missing keys | CLEANUP
2021-04-18 19:07:19 +02:00
Dominik Kohler 29cf77e6d1 [de] fixed incorrect grammar 2021-04-18 18:13:43 +02:00
Dominik Kohler 33f7774aa9 [de] Clean up of machine translation 2021-04-18 18:12:55 +02:00
Dominik Kohler 82c79f4dbb [de_CH] Clean up of machine translation 2021-04-18 17:57:14 +02:00
caouecs b4c56d7d5c [pt] validation-inline.php 2021-04-18 16:45:21 +02:00
GitHub Action dfb2c7089f Updated status of translations 2021-04-18 14:44:15 +00:00
Fred Delrieu a4d9401ce5 Merge pull request #1646 from andrey-helldar/patch/2021-04-17/pt
[pt] Machine translation of missing keys
2021-04-18 16:43:48 +02:00
caouecs 1759a5eb4f [ko] json file 2021-04-18 16:43:08 +02:00
GitHub Action 2ed16e9b84 Updated status of translations 2021-04-18 14:41:50 +00:00
Fred Delrieu ad31f0bdff Merge pull request #1636 from andrey-helldar/patch/2021-04-17/ko
[ko] Machine translation of missing keys
2021-04-18 16:41:25 +02:00
GitHub Action 00f0a3e92a Updated status of translations 2021-04-18 14:40:57 +00:00
Fred Delrieu 4c6d50c64b Merge pull request #1693 from Kamandlou/master
update fa.json
2021-04-18 16:40:28 +02:00
caouecs f44e1c392c [zh_CN][zh_HK][zh_TW] add spaces 2021-04-18 16:39:20 +02:00
GitHub Action 7197c5815b Updated status of translations 2021-04-18 14:29:54 +00:00
Fred Delrieu 6e436494d9 Merge pull request #1668 from andrey-helldar/patch/2021-04-17/zh_TW
[zh_TW] Machine translation of missing keys
2021-04-18 16:29:31 +02:00
Fred Delrieu 03d9b45529 Merge pull request #1667 from andrey-helldar/patch/2021-04-17/zh_HK
[zh_HK] Machine translation of missing keys
2021-04-18 16:29:27 +02:00
caouecs fc2425dcd8 [zh_CN] add spaces 2021-04-18 16:29:05 +02:00
GitHub Action 972281d9ca Updated status of translations 2021-04-18 14:23:30 +00:00
Fred Delrieu 60345e6462 Merge pull request #1666 from andrey-helldar/patch/2021-04-17/zh_CN
[zh_CN] Machine translation of missing keys
2021-04-18 16:23:01 +02:00
GitHub Action e29978235a Updating translations keys 2021-04-18 14:20:51 +00:00
Fred Delrieu 5781af14e2 Merge pull request #1694 from ab192130/patch-1
Added AZ attributes.
2021-04-18 16:20:22 +02:00
ab192130 7fc5425e45 Added attributes. 2021-04-18 12:26:06 +04:00
amirhossein kamandloo 7147ccbae0 update fa.json 2021-04-18 12:15:25 +04:30
Fred Delrieu 4e87f33ade Merge pull request #1629 from andrey-helldar/patch/2021-04-17/14-24
[script] Removed duplicate call line
2021-04-17 21:33:49 +02:00
Fred Delrieu 08cae73d4f Merge pull request #1691 from andrey-helldar/patch/2021-04-17/15-27
[script] Added a script for creating commits separated by localizations
2021-04-17 21:19:35 +02:00
Andrey Helldar dabbf7ac99 Added list of exceptions with matching words 2021-04-17 15:57:42 +03:00
Andrey Helldar ab2418a01a [script] Added a script for creating commits separated by localizations 2021-04-17 15:28:13 +03:00
Andrey Helldar 9fd292346a [zh_TW] Machine translation of missing keys 2021-04-17 15:15:53 +03:00
Andrey Helldar 6bfad32d5a [zh_HK] Machine translation of missing keys 2021-04-17 15:15:49 +03:00
Andrey Helldar 95d3e60db5 [zh_CN] Machine translation of missing keys 2021-04-17 15:15:45 +03:00
Andrey Helldar 9406f965e3 [uz_Latn] Machine translation of missing keys 2021-04-17 15:15:37 +03:00
Andrey Helldar f85776dce9 [uz_Cyrl] Machine translation of missing keys 2021-04-17 15:15:34 +03:00
Andrey Helldar 06bed0f8b1 [ur] Machine translation of missing keys 2021-04-17 15:15:30 +03:00
Andrey Helldar 1e73b6e710 [uk] Machine translation of missing keys 2021-04-17 15:15:26 +03:00
Andrey Helldar b365b48687 [tl] Machine translation of missing keys 2021-04-17 15:15:15 +03:00
Andrey Helldar f644887e9d [th] Machine translation of missing keys 2021-04-17 15:15:07 +03:00
Andrey Helldar 8dc6720d05 [tg] Machine translation of missing keys 2021-04-17 15:15:01 +03:00
Andrey Helldar 51ffe5d8b5 [sw] Machine translation of missing keys 2021-04-17 15:14:57 +03:00
Andrey Helldar 0f7b377f61 [sv] Machine translation of missing keys 2021-04-17 15:14:53 +03:00
Andrey Helldar 40f9c9289d [sr_Latn_ME] Machine translation of missing keys 2021-04-17 15:14:49 +03:00
Andrey Helldar 63ad3a6643 [sr_Latn] Machine translation of missing keys 2021-04-17 15:14:45 +03:00
Andrey Helldar f95a97738c [sr_Cyrl] Machine translation of missing keys 2021-04-17 15:14:41 +03:00
Andrey Helldar f521a7e0c3 [sq] Machine translation of missing keys 2021-04-17 15:14:37 +03:00
Andrey Helldar aaa710deb6 [sl] Machine translation of missing keys 2021-04-17 15:14:33 +03:00
Andrey Helldar fb51732375 [sk] Machine translation of missing keys 2021-04-17 15:14:29 +03:00
Andrey Helldar 76949cebde [si] Machine translation of missing keys 2021-04-17 15:14:25 +03:00
Andrey Helldar 53f00b62f3 [ro] Machine translation of missing keys 2021-04-17 15:14:14 +03:00
Andrey Helldar 9df9831cdc [pt_BR] Machine translation of missing keys 2021-04-17 15:14:10 +03:00
Andrey Helldar 20bf5c1308 [pt] Machine translation of missing keys 2021-04-17 15:14:06 +03:00
Andrey Helldar 51c04fcf77 [pl] Machine translation of missing keys 2021-04-17 15:13:58 +03:00
Andrey Helldar c554eee8eb [nl] Machine translation of missing keys 2021-04-17 15:13:47 +03:00
Andrey Helldar e9e3625e8d [ne] Machine translation of missing keys 2021-04-17 15:13:43 +03:00
Andrey Helldar 9d2d881645 [ms] Machine translation of missing keys 2021-04-17 15:13:36 +03:00
Andrey Helldar d0438381e8 [mr] Machine translation of missing keys 2021-04-17 15:13:32 +03:00
Andrey Helldar 8dfa8be102 [mn] Machine translation of missing keys 2021-04-17 15:13:27 +03:00
Andrey Helldar adf86c45a4 [mk] Machine translation of missing keys 2021-04-17 15:13:23 +03:00
Andrey Helldar cba57cad91 [lv] Machine translation of missing keys 2021-04-17 15:13:19 +03:00
Andrey Helldar b0f220bbcb [lt] Machine translation of missing keys 2021-04-17 15:13:16 +03:00
Andrey Helldar 6bc089c113 [ko] Machine translation of missing keys 2021-04-17 15:13:12 +03:00
Andrey Helldar 3a6f67e22c [kn] Machine translation of missing keys 2021-04-17 15:13:08 +03:00
Andrey Helldar cc440db68a [km] Machine translation of missing keys 2021-04-17 15:13:04 +03:00
Andrey Helldar 0d6d95445c [kk] Machine translation of missing keys 2021-04-17 15:13:00 +03:00
Andrey Helldar 7212418be3 [ka] Machine translation of missing keys 2021-04-17 15:12:56 +03:00
Andrey Helldar cc1fb00881 [ja] Machine translation of missing keys 2021-04-17 15:12:52 +03:00
Andrey Helldar bf15349940 [is] Machine translation of missing keys 2021-04-17 15:12:44 +03:00
Andrey Helldar e803aa984e [id] Machine translation of missing keys 2021-04-17 15:12:40 +03:00
Andrey Helldar b2298331fb [hy] Machine translation of missing keys 2021-04-17 15:12:36 +03:00
Andrey Helldar 09ad935287 [hu] Machine translation of missing keys 2021-04-17 15:12:32 +03:00
Andrey Helldar ab852c3d29 [hr] Machine translation of missing keys 2021-04-17 15:12:28 +03:00
Andrey Helldar 5f31ed9e8e [hi] Machine translation of missing keys 2021-04-17 15:12:24 +03:00
Andrey Helldar 8f6560785e [he] Machine translation of missing keys 2021-04-17 15:12:21 +03:00
Andrey Helldar 92fa2bda8c [gl] Machine translation of missing keys 2021-04-17 15:12:17 +03:00
Andrey Helldar 43b82eca02 [fi] Machine translation of missing keys 2021-04-17 15:12:06 +03:00
Andrey Helldar 755371bccc [eu] Machine translation of missing keys 2021-04-17 15:11:57 +03:00
Andrey Helldar 2df798a535 [et] Machine translation of missing keys 2021-04-17 15:11:53 +03:00
Andrey Helldar dea88ce69c [el] Machine translation of missing keys 2021-04-17 15:11:46 +03:00
Andrey Helldar 64b6576cdd [de_CH] Machine translation of missing keys 2021-04-17 15:11:42 +03:00
Andrey Helldar cbcd849624 [de] Machine translation of missing keys 2021-04-17 15:11:38 +03:00
Andrey Helldar fbca8cc862 [da] Machine translation of missing keys 2021-04-17 15:11:35 +03:00
Andrey Helldar 8d89a21f1e [cy] Machine translation of missing keys 2021-04-17 15:11:31 +03:00
Andrey Helldar a1647c62d5 [cs] Machine translation of missing keys 2021-04-17 15:11:27 +03:00
Andrey Helldar 05ce635f58 [ca] Machine translation of missing keys 2021-04-17 15:11:24 +03:00
Andrey Helldar 50c6329f59 [bs] Machine translation of missing keys 2021-04-17 15:11:20 +03:00
Andrey Helldar b2ca80fb37 [bn] Machine translation of missing keys 2021-04-17 15:10:31 +03:00
Andrey Helldar 9e450472a8 [bg] Machine translation of missing keys 2021-04-17 15:10:27 +03:00
Andrey Helldar 046b098f38 Removed duplicate call line 2021-04-17 14:25:36 +03:00
Andrey Helldar b5d4cdd795 [be] Machine translation of missing keys 2021-04-17 13:53:29 +03:00
Andrey Helldar 048feb0d8a [az] Machine translation of missing keys 2021-04-17 13:52:43 +03:00
Andrey Helldar c7c8226ed2 [af] Machine translation of missing keys 2021-04-17 13:50:34 +03:00
Fred Delrieu c9b5e06a2c Merge pull request #1625 from andrey-helldar/patch/2021-04-16/20-21
Added processors for translating localizations
2021-04-17 10:51:48 +02:00
Andrey Helldar 71ef8f9286 Removed interruption of the handler in case of errors 2021-04-17 03:11:30 +03:00
Andrey Helldar 985d723462 Added output of a message to the console about the current file being processed 2021-04-17 02:22:29 +03:00
Andrey Helldar 336a09b8be Replaced text mapping to number due to collision during translation 2021-04-17 02:15:59 +03:00
Andrey Helldar 91907c193f Added processors for translating localizations 2021-04-17 02:12:12 +03:00
GitHub Action 1f758de74f Updated status of translations 2021-04-16 19:04:34 +00:00
GitHub Action 833e292c0d Updating excludes files 2021-04-16 19:04:32 +00:00
Fred Delrieu 14b4e1f305 Merge pull request #1621 from itsfaqih/master
[id] Fixed Missed Translations
2021-04-16 21:04:01 +02:00
Andrey Helldar 4a73c7b181 Finalized classes 2021-04-16 21:19:02 +03:00
caouecs e8d0a62e0b doc 2021-04-16 19:24:44 +02:00
GitHub Action d3f28401e6 Updated status of translations 2021-04-16 16:24:37 +00:00
GitHub Action c1c6108571 Updating excludes files 2021-04-16 16:24:34 +00:00
Fred Delrieu 7f19db2720 Merge pull request #1623 from sotten/master
[de] update translation
2021-04-16 18:24:10 +02:00
GitHub Action 0c03abaddf Updated status of translations 2021-04-16 16:21:59 +00:00
Fred Delrieu 1e1ff85c26 Merge pull request #1624 from dinhquochan/patch-1
[9.x][vi] Update the names of the countries, missing translations
2021-04-16 18:21:33 +02:00
GitHub Action c7e11667b6 Updated status of translations 2021-04-16 16:21:16 +00:00
Fred Delrieu 2c56c5a778 Merge pull request #1620 from andrey-helldar/patch/2021-04-15/12-39
Adding a percentage of translations
2021-04-16 18:20:40 +02:00
Dinh Quoc Han 9a54b05281 remove: status.md 2021-04-16 21:13:49 +07:00
Dinh Quoc Han 08ff7bcb86 vi: update docs 2021-04-16 21:12:06 +07:00
sotten 9525f213ea remove "Lens" from exclusion list
remove "Lens" from exclusion list.
2021-04-16 16:03:58 +02:00
Dinh Quoc Han b4b72510c8 vi: translation missing geography 2021-04-16 20:52:21 +07:00
sotten 3b6510e86e Update de files 2021-04-16 13:02:34 +02:00
Andrey Helldar 6ac6ebeede Improved display of the number of translated lines to the total number 2021-04-16 10:11:18 +03:00
GitHub Action 2301e8a198 Updated status of translations 2021-04-16 06:18:04 +00:00
Fred Delrieu bae13f7791 Merge pull request #1622 from sotten/master
[de] some german translations
2021-04-16 08:17:38 +02:00
Faqih Muntashir 6073c2bd1f Fixed mistakes based on review 2021-04-16 08:33:59 +07:00
Andrey Helldar 883161477a Improved calculation of translation status 2021-04-16 02:18:25 +03:00
Faqih Muntashir 642c935d18 Fix merge conflict 2021-04-16 02:47:50 +07:00
Faqih Muntashir 3d6efbea45 Fixed Indonesian missed translations 2021-04-16 02:44:44 +07:00
GitHub Action 7e77ca8a52 Updated status of translations 2021-04-15 17:55:08 +00:00
GitHub Action b11a6df004 Updating excludes files 2021-04-15 17:55:06 +00:00
Fred Delrieu b2992b77ae Merge pull request #1616 from itsfaqih/master
[id] Complete Indonesian Translations Update
2021-04-15 19:54:13 +02:00
sotten da347eb3a6 some german translations
some german translations
Update locales/de/de.json
2021-04-15 14:17:52 +02:00
Andrey Helldar 43d564081c Added display of the number of translated localizations 2021-04-15 13:01:27 +03:00
Andrey Helldar 7432c2c5e1 Adding a percentage of translations 2021-04-15 12:53:02 +03:00
Faqih Muntashir 1372eb73e5 Fixed writing mistakes in Indonesian validation-inline.php 2021-04-15 16:51:51 +07:00
Faqih Muntashir 44df9991a7 Completed Indonesian translations 2021-04-15 15:18:22 +07:00
Fred Delrieu abce69f071 Merge pull request #1619 from andrey-helldar/patch/2021-04-15/10-02
Added check for ":Attribute" when running tests
2021-04-15 10:02:17 +02:00
Fred Delrieu 6100d71a8a Merge pull request #1618 from andrey-helldar/patch/2021-04-15/09-56
Update README.md
2021-04-15 10:00:50 +02:00
GitHub Action c749236577 Updated status of translations 2021-04-15 08:00:26 +00:00
GitHub Action 1d79ddd183 Updating excludes files 2021-04-15 08:00:24 +00:00
GitHub Action f5431ec78d Updating the file 2021-04-15 08:00:24 +00:00
Fred Delrieu bb110d07d5 Merge pull request #1617 from dinhquochan/patch-1
[9.x][vi] Completed missing translations
2021-04-15 09:59:57 +02:00
GitHub Action 68df6d1b63 Updated status of translations 2021-04-15 07:49:52 +00:00
Fred Delrieu c8a9c01c29 Merge pull request #1608 from SilNex/master
[KO] Translate 'ko.json', 'validation.json', 'validation-inline.json'
2021-04-15 09:49:24 +02:00
Andrey Helldar c878474eb2 Added check for ":Attribute" when running tests 2021-04-15 10:06:08 +03:00
Andrey Helldar 212911b815 Update README.md 2021-04-15 10:00:47 +03:00
Faqih Muntashir a3232fdb21 More Indonesian translation and fixes in id.json 2021-04-15 13:45:38 +07:00
Faqih Muntashir de8b66d3de More Indonesian translation in id.json 2021-04-15 13:40:14 +07:00
Dinh Quoc Han 4a6cb10b8f fix: removed :attribute in validation-inline.php 2021-04-15 13:30:21 +07:00
Dinh Quoc Han 326faa6490 [vi]: completed missing translations 2021-04-15 13:24:47 +07:00
Faqih Muntashir 574ca93dd4 Update ID Lang 2021-04-15 12:46:02 +07:00
silnex 63562e8ff8 Fix typo 2021-04-15 12:40:21 +09:00
silnex a176757428 translated validations 2021-04-15 12:38:08 +09:00
silnex f8502efcc1 translated ko.json 2021-04-15 12:38:08 +09:00
caouecs d58d7a08d6 doc for v9 2021-04-14 19:46:34 +02:00
Fred Delrieu c3e51ee39e Merge pull request #1607 from andrey-helldar/patch/2021-04-12/12-50
[9.x] Improving the project structure
2021-04-14 19:42:53 +02:00
caouecs 54048d1319 doc 2021-04-14 19:41:45 +02:00
Fred Delrieu de25dfcee1 Merge pull request #1614 from andrey-helldar/patch/2021-04-14/20-12
`Projects based on this package` title renamed to `Translation managers`
2021-04-14 19:27:54 +02:00
Andrey Helldar 5731137c7f Projects based on this package title renamed to Translation managers 2021-04-14 20:14:07 +03:00
Andrey Helldar f9214fe5c8 Merge remote-tracking branch 'caouecs/master' into patch/2021-04-12/12-50 2021-04-13 23:48:26 +03:00
GitHub Action a3df3d19ed Updated status of translations 2021-04-13 20:37:28 +00:00
Fred Delrieu c1f0901d40 Merge pull request #1610 from astalpaert/translations/nl/json
[NL] 🗣 Added some missing NL translations for json
2021-04-13 22:37:00 +02:00
Fred Delrieu b350230276 Merge pull request #1609 from faxunil/patch-1
Update auth.php
2021-04-13 22:33:43 +02:00
Arno Stalpaert e7bf14ffd0 [NL] 🗣 Added some missing NL translations for json 2021-04-13 21:04:28 +02:00
Csermely Gergely 90873071cd Update auth.php
Translated to HUN. Br. Gergely
2021-04-13 16:24:09 +02:00
Andrey Helldar eba8e4366e Fixed methods 2021-04-12 21:58:40 +03:00
Andrey Helldar 23836f219c Merge remote-tracking branch 'caouecs/master' into patch/2021-04-12/12-50 2021-04-12 20:51:17 +03:00
Andrey Helldar 5dfc53c44b Custom methods replaced with php functions 2021-04-12 20:49:32 +03:00
Andrey Helldar 74c629d2e4 Fixed character escaping 2021-04-12 20:49:11 +03:00
GitHub Action 104bfc9a53 Updated status of translations 2021-04-12 17:38:11 +00:00
GitHub Action 9436258f91 Updating excludes files 2021-04-12 17:38:08 +00:00
Fred Delrieu 31b4018134 Merge pull request #1603 from astalpaert/translations/nl/validation
[NL] 🗣 Added missing NL translations for validation and validation-inline
2021-04-12 19:37:42 +02:00
Andrey Helldar c59d301486 Str::contains method replaced with str_contains 2021-04-12 15:17:54 +03:00
Andrey Helldar 82d7088c89 Improving the project structure 2021-04-12 13:48:23 +03:00
GitHub Action 8aa6542abb Updating excludes files 2021-04-10 20:12:13 +00:00
GitHub Action 80d63385e8 Updating translations keys 2021-04-10 20:12:13 +00:00
Fred Delrieu eacb8aa80a Merge pull request #1604 from andrey-helldar/patch/2021-04-10/15-07
Added check of exclusion files for keys relevance
2021-04-10 22:11:46 +02:00
Andrey Helldar def0e7f302 Added templates for saving files 2021-04-10 19:23:06 +03:00
Andrey Helldar 26f04e2548 Added check of exclusion files for keys relevance 2021-04-10 19:22:50 +03:00
Arno Stalpaert 646e025be8 [NL] 🗣 Added missing NL translations for validation and validation-inline 2021-04-10 16:27:39 +02:00
Fred Delrieu 16a11227f1 Merge pull request #1602 from andrey-helldar/patch/2021-04-08/21-55
Added auto-update `docs/referents.md` file
2021-04-10 15:16:15 +02:00
Andrey Helldar 8bfd924f1d Merge branch 'patch/2021-04-08/21-55' 2021-04-10 14:35:17 +03:00
Fred Delrieu 593c5ae1a0 Merge pull request #1600 from andrey-helldar/patch/2021-04-08/21-06
Added validation for the `:attribute` string in the `validation-inline.php` files
2021-04-10 11:14:34 +02:00
Fred Delrieu 3cb8ef151c Merge pull request #1601 from andrey-helldar/patch/2021-04-08/21-47
Added missing localization for the referent
2021-04-10 11:12:01 +02:00
Andrey Helldar 6a2ec0b9db An updated link to the referents page in README.md 2021-04-08 22:52:40 +03:00
Andrey Helldar d0fb24c76d Removed hard linking to file names 2021-04-08 22:48:07 +03:00
Andrey Helldar addd6c7371 Merge remote-tracking branch 'origin/patch/2021-04-08/21-06' into patch/2021-04-08/21-55 2021-04-08 22:38:12 +03:00
Andrey Helldar 404e6d14dc Added auto-update docs/referents.md file 2021-04-08 22:37:52 +03:00
Andrey Helldar 89a6e9b452 Added missing localization for the referent 2021-04-08 21:54:18 +03:00
Andrey Helldar 7981c6c99e Added validation for the :attribute string in the validation-inline.php files 2021-04-08 21:42:37 +03:00
Andrey Helldar 42dfefcec5 Added output of extended test error messages 2021-04-08 21:41:45 +03:00
Fred Delrieu 3e984457fd Merge pull request #1599 from luisprmat/master
Update contributing docs. Clarification about validation-online
2021-04-08 18:17:37 +02:00
Luis Antonio Parrado 4f1ac9b1be Fix typo 2021-04-08 11:14:00 -05:00
Luis Antonio Parrado 9cc01fea64 Fix typo 2021-04-08 10:58:17 -05:00
Luis Antonio Parrado 31d1569d8c Update contributing docs. Clarification about validation-online 2021-04-08 10:18:04 -05:00
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
1565 changed files with 192026 additions and 102697 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
-65
View File
@@ -1,65 +0,0 @@
name: make-todo
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
name: Keys actualization and generate todo.md
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.0
extensions: curl, mbstring, zip, pcntl, pdo, pdo_sqlite, iconv, json
coverage: none
- name: Git setup
if: success()
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
- name: Install dependencies
run: composer update --prefer-stable --prefer-dist --no-progress --no-interaction
- name: Keys actualization
if: success()
run: php app/keys.php
- name: Commit files after checking keys
id: commit_keys
if: success()
run: |
IS_DIRTY=1
{ git add . && git commit -a -m "Updating translations keys"; } || IS_DIRTY=0
echo ::set-output name=is_dirty::${IS_DIRTY}
- name: Generate todo.md
if: success()
run: php app/todo.php
- name: Commit file
id: commit_todo
if: success()
run: |
IS_DIRTY=1
{ git add . && git commit -a -m "Updated todo.md file"; } || 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)
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
+97
View File
@@ -0,0 +1,97 @@
name: self-update
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
name: Keys actualization and update status of translations
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.0
extensions: curl, mbstring, zip, pcntl, pdo, pdo_sqlite, iconv, json
coverage: none
- name: Git setup
if: success()
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
- name: Install dependencies
run: composer update --prefer-stable --prefer-dist --no-progress --no-interaction
- name: Scanning packages
id: commit_packages
if: success()
run: |
IS_DIRTY=1
php app/packages.php
{ git add . && git commit -a -m "Updating package files"; } || IS_DIRTY=0
echo ::set-output name=is_dirty::${IS_DIRTY}
- name: Keys actualization
id: commit_keys
if: success()
run: |
IS_DIRTY=1
php app/keys.php
{ git add . && git commit -a -m "Updating translations keys"; } || IS_DIRTY=0
echo ::set-output name=is_dirty::${IS_DIRTY}
- name: Updating referents
id: referents
if: success()
run: |
IS_DIRTY=1
php app/referents.php
{ git add . && git commit -a -m "Updating the `docs/referents.md` file"; } || IS_DIRTY=0
echo ::set-output name=is_dirty::${IS_DIRTY}
- name: Checking for excludes
id: excludes
if: success()
run: |
IS_DIRTY=1
php app/excludes.php
{ git add . && git commit -a -m "Updating excludes files"; } || IS_DIRTY=0
echo ::set-output name=is_dirty::${IS_DIRTY}
- name: Status update
id: commit_status
if: success()
run: |
IS_DIRTY=1
php app/status.php
{ 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_packages.outputs.is_dirty == 1 || steps.commit_keys.outputs.is_dirty == 1 || steps.referents.outputs.is_dirty == 1 || steps.excludes.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
-60
View File
@@ -1,60 +0,0 @@
# Contributing
Contributions are **welcome** and will be fully **credited**.
We accept contributions via Pull Requests on [Github](https://github.com/Laravel-Lang/lang).
## How can I add a language in this project ?
* fork this repository
* create a directory in *src* with the short name of the language (ex: fr for French) from ISO-639-1 (
see [Wikipedia](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) )
* copy these four files of the English version with your translation : from `script/en` directory
* add a pull request with the name of the language
* ex: [fr] New language
## How can I fix a file ?
* fork this repository
* update the file
* add a pull request with the name of the language
* ex: [fr] Update validation for number in validation
## 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.
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`
* 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.
```php
<?php
return [
/*
|--------------------------------------------------------------------------
| Exclusion list
|--------------------------------------------------------------------------
|
| This is a list of exclusions for words or phrases where the original
| form of the word has the same spelling in a given language.
|
*/
'API Token',
'Email',
];
```
* add these changes to the pull request you will send
## Status of files
* [TODO.md](TODO.md)
+17 -66
View File
@@ -1,73 +1,24 @@
# 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), [Laravel Nova](https://nova.laravel.com) and [Laravel Spark](https://spark.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
* in version 6.1, we propose a new file by language: `validation-inline.php` ( see #1268 )
* 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 )
* in version 10, we split translation keys into Laravel packages ([#1748](https://github.com/Laravel-Lang/lang/pull/1748), [discussion](https://github.com/Laravel-Lang/lang/discussions/1702#discussioncomment-703215))
* in version 9.1, we include machine translations, with review by humans for some languages ( see [Discussions](https://github.com/Laravel-Lang/lang/discussions/1692) )
* in version 9, we propose new structure of files ( see [#1606](https://github.com/Laravel-Lang/lang/discussions/1606), [#1607](https://github.com/Laravel-Lang/lang/pull/1607) )
* in version 8, we propose new directory names to follow Php Intl ( see [#1453](https://github.com/Laravel-Lang/lang/pull/1453) )
* in version 7, we propose new directory names to follow ISO-15897 ( see [#1269](https://github.com/Laravel-Lang/lang/issues/1269) )
* in version 6.1, we propose a new file by language: `validation-inline.php` ( see [#1268](https://github.com/Laravel-Lang/lang/issues/1268) )
## 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
## Translation managers
* [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.
@@ -75,5 +26,5 @@ Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
## Credits
- [Referents by language](REFERENTS.md)
- [Referents by language](https://laravel-lang.github.io/lang/referents.html)
- [All Contributors](https://github.com/Laravel-Lang/lang/graphs/contributors)
-79
View File
@@ -1,79 +0,0 @@
# Referents by language
| Lang | Assignee |
| --- |:--|
| ar | [@mohamedsabil83](https://github.com/mohamedsabil83), [@Khuthaily](https://github.com/Khuthaily) |
| az | |
| be | |
| bg | |
| bn | |
| bs | |
| ca | |
| cs | |
| cy | |
| da | [@jensstigaard](https://github.com/jensstigaard) |
| de | [@WhereIsLucas](https://github.com/WhereIsLucas) |
| de_CH | |
| el | |
| es | [@luisprmat](https://github.com/luisprmat) |
| et | |
| eu | |
| fa | |
| fi | |
| fil | |
| fr | [@caouecs](https://github.com/caouecs), [@WhereIsLucas](https://github.com/WhereIsLucas) |
| gl | |
| he | |
| hi | |
| hr | |
| hu | |
| hy | |
| id | |
| is | |
| it | [@masterix21](https://github.com/masterix21) |
| ja | |
| ka | |
| kk | |
| km | |
| kn | |
| ko | |
| lt | |
| lv | |
| mk | [@keljtanoski](https://github.com/keljtanoski) |
| mn | |
| mr | |
| ms | |
| nb | |
| ne | |
| nl | [@WhereIsLucas](https://github.com/WhereIsLucas) |
| nn | |
| pl | |
| ps | |
| pt | [@jorgercosta](https://github.com/jorgercosta) |
| pt_BR | |
| ro | |
| ru | [@andrey-helldar](https://github.com/andrey-helldar) |
| sc | |
| si | |
| sk | |
| sl | |
| sq | |
| sr_Cyrl | [@LukaLatkovic](https://github.com/LukaLatkovic) |
| sr_Latn | [@LukaLatkovic](https://github.com/LukaLatkovic) |
| sr_Latn_ME | [@LukaLatkovic](https://github.com/LukaLatkovic) |
| sv | |
| sw | |
| tg | |
| th | |
| tk | |
| tl | |
| tr | |
| ug | |
| uk | [@MrAlKuz](https://github.com/MrAlKuz) |
| ur | |
| uz_Cyrl | |
| uz_Latn | |
| vi | |
| zh_CN | [@overtrue](https://github.com/overtrue) |
| zh_HK | [@overtrue](https://github.com/overtrue) |
| zh_TW | [@overtrue](https://github.com/overtrue) |
-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>
+7
View File
@@ -0,0 +1,7 @@
YANDEX_API_KEY=
YANDEX_API_FOLDER_ID=
GIT_REPOSITORY=origin
GIT_SOURCE_BRANCH=master
GIT_TARGET_BRANCH=patch
GIT_MESSAGE="[%s] Some message"
+3
View File
@@ -0,0 +1,3 @@
requests/
.env
+1 -3
View File
@@ -2,8 +2,6 @@
use LaravelLang\Lang\Application;
$app = Application::make(
return Application::make(
realpath(__DIR__ . '/../../')
);
return $app;
+10
View File
@@ -0,0 +1,10 @@
<?php
use LaravelLang\Lang\Processors\Excludes;
require __DIR__ . '/../vendor/autoload.php';
/** @var \LaravelLang\Lang\Application $app */
$app = require_once __DIR__ . '/bootstrap/app.php';
$app->processor(Excludes::make());
+2 -6
View File
@@ -1,14 +1,10 @@
<?php
use LaravelLang\Lang\Processors\Json;
use LaravelLang\Lang\Processors\Php;
use LaravelLang\Lang\Services\Filesystem\Json as JsonFilesystem;
use LaravelLang\Lang\Services\Filesystem\Php as PhpFilesystem;
use LaravelLang\Lang\Processors\Process;
require __DIR__ . '/../vendor/autoload.php';
/** @var \LaravelLang\Lang\Application $app */
$app = require_once __DIR__ . '/bootstrap/app.php';
$app->processor(Json::make(), JsonFilesystem::make());
$app->processor(Php::make(), PhpFilesystem::make());
$app->processor(Process::make());
+41 -30
View File
@@ -2,19 +2,20 @@
namespace LaravelLang\Lang;
use Dotenv\Dotenv;
use Helldar\Support\Concerns\Makeable;
use LaravelLang\Lang\Contracts\Filesystem;
use LaravelLang\Lang\Contracts\Application as ApplicationContract;
use LaravelLang\Lang\Contracts\Processable;
use LaravelLang\Lang\Facades\Env;
final class Application
final class Application implements ApplicationContract
{
use Makeable;
protected Filesystem $filesystem;
public function __construct(
protected string $base_path
) {
$this->createDotenv()->safeLoad();
}
public function basePath(): string
@@ -24,7 +25,22 @@ final class Application
public function sourcePath(string $filename = null): string
{
return $this->path('script/en/' . $this->cleanPath($filename));
return $this->path('source/' . $this->cleanPath($filename));
}
public function localePath(string $locale = null): string
{
return $this->path('locales/' . $this->cleanPath($locale));
}
public function excludePath(string $locale): string
{
return $this->path('excludes/' . $this->cleanPath($locale) . '.php');
}
public function resourcePath(string $filename): string
{
return $this->path('app/resources/' . $this->cleanPath($filename));
}
public function path(string $path = null): string
@@ -36,16 +52,6 @@ final class Application
return $this->basePath();
}
public function excludePath(string $locale): string
{
return $this->path('excludes/' . $locale . '.php');
}
public function resourcePath(string $filename): string
{
return $this->path('app/resources/' . $filename);
}
public function cleanPath(string $path = null): ?string
{
if (! empty($path)) {
@@ -55,22 +61,27 @@ final class Application
return null;
}
public function filesystem(Filesystem $filesystem): self
public function processor(Processable $processor): void
{
$this->filesystem = $filesystem->application($this);
return $this;
}
public function getFilesystem(): Filesystem
{
return $this->filesystem;
}
public function processor(Processable $processor, Filesystem $filesystem): void
{
$this->filesystem($filesystem);
$processor->application($this)->run();
}
protected function createDotenv(): Dotenv
{
return Dotenv::create(
Env::getRepository(),
$this->environmentPath(),
$this->environmentFile()
);
}
protected function environmentPath(): string
{
return $this->path('app');
}
protected function environmentFile(): string
{
return '.env';
}
}
+43
View File
@@ -0,0 +1,43 @@
<?php
namespace LaravelLang\Lang\Concerns;
use Helldar\Support\Facades\Helpers\Filesystem\Directory;
use Helldar\Support\Facades\Helpers\Str;
use LaravelLang\Lang\Constants\Locales;
trait Contains
{
protected function isMainJson(string $filename): bool
{
if ($this->isEnglishJson($filename)) {
return true;
}
$locale = Str::before($filename, '.');
$path = $this->app->localePath($locale);
return $this->isJson($filename) && Directory::exists($path);
}
protected function isEnglishJson(string $filename): bool
{
return $this->isJson($filename) && str_starts_with($filename, Locales::ENGLISH);
}
protected function isJson(string $filename): bool
{
return str_ends_with($filename, 'json');
}
protected function isMarkdown(string $filename): bool
{
return str_ends_with($filename, 'md');
}
protected function isValidation(string $filename): bool
{
return str_starts_with($filename, 'validation');
}
}
+105
View File
@@ -0,0 +1,105 @@
<?php
namespace LaravelLang\Lang\Concerns;
use Helldar\Support\Facades\Helpers\Digit;
use Helldar\Support\Facades\Helpers\Str;
use LaravelLang\Lang\Services\Counter;
trait Countable
{
protected array $count = [];
protected string $count_prefix = 'count_';
protected string $count_suffix = '_percents';
protected string $count_suffix_all = 'all';
protected function addCount(array $items, string $key = 'all'): void
{
$key = $this->countKeyPrefix($key);
if (! isset($this->count[$key])) {
$this->count[$key] = 0;
}
$this->count[$key] += $this->calcCount($items);
}
protected function getCount(string $key = 'all'): int
{
$key = $this->countKeyPrefix($key);
return $this->count[$key];
}
protected function setCount(int $count, string $key = 'all'): void
{
$key = $this->countKeyPrefix($key);
$this->count[$key] = $count;
}
protected function getCounts(): array
{
$this->calcPercents();
$this->countToString();
return $this->count;
}
protected function calcPercents(): void
{
$all = $this->getCount();
$all_key = $this->countKeyPrefix($this->count_suffix_all);
$items = $this->count;
foreach ($items as $key => $value) {
if ($key !== $all_key) {
$value = $all - $value;
$percent = $this->calcPercent($all, $value);
$new_key = $this->countKeySuffix($key);
$this->setCount($value, $key);
$this->setCount($percent, $new_key);
}
}
}
protected function calcPercent(int $all, int $count): int
{
return round(($count / $all) * 100);
}
protected function countToString(): void
{
foreach ($this->count as &$value) {
$value = $this->countFormat($value);
}
}
protected function calcCount(int|array $value): int
{
return is_int($value) ? $value : Counter::make()->count($value);
}
protected function countKeyPrefix(string $key): string
{
return Str::start($key, $this->count_prefix);
}
protected function countKeySuffix(string $key): string
{
return Str::finish($key, $this->count_suffix);
}
protected function countFormat(int $count): string
{
return Digit::toShort($count);
}
}
@@ -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) : [];
}
}
+39
View File
@@ -0,0 +1,39 @@
<?php
namespace LaravelLang\Lang\Concerns;
use Helldar\Support\Facades\Helpers\Instance;
use Helldar\Support\Tools\Stub;
use LaravelLang\Lang\Contracts\Stringable;
trait Storable
{
protected ?string $stub = null;
protected function prepareToStore(array|string|Stringable $content): string
{
if (Instance::of($content, Stringable::class)) {
return $content->toString();
}
if (is_array($content)) {
return implode(PHP_EOL, $content);
}
return $content;
}
protected function getStub(string $filename): string
{
return $this->findStub($this->stub ?: $filename);
}
protected function findStub(string $filename): string
{
$basename = pathinfo($filename, PATHINFO_FILENAME);
$path = $this->app->resourcePath('arrays/' . $basename . '.stub');
return file_exists($path) ? $path : Stub::PHP_ARRAY;
}
}
+22 -57
View File
@@ -3,76 +3,41 @@
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);
$values = array_merge($this->extend ?? [], $values);
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);
}
}
+8
View File
@@ -0,0 +1,8 @@
<?php
namespace LaravelLang\Lang\Constants;
final class Locales
{
public const ENGLISH = 'en';
}
+44
View File
@@ -0,0 +1,44 @@
<?php
namespace LaravelLang\Lang\Constants;
class Machines
{
public const LOCALES = [
'az',
'be',
'bn',
'bs',
'ca',
'cs',
'cy',
'da',
'et',
'eu',
'gl',
'he',
'hi',
'hu',
'is',
'ka',
'kk',
'kn',
'lv',
'mn',
'mr',
'sk',
'sl',
'sq',
'sr_Cyrl',
'sr_Latn',
'sr_Latn_ME',
'sw',
'tg',
'th',
'tl',
'uk',
'ur',
'uz_Cyrl',
'uz_Latn'
];
}
+44
View File
@@ -0,0 +1,44 @@
<?php
namespace LaravelLang\Lang\Constants;
final class Referents
{
public const ar = ['mohamedsabil83', 'Khuthaily'];
public const da = ['jensstigaard'];
public const de = ['WhereIsLucas', 'sotten'];
public const de_CH = ['sotten'];
public const es = ['luisprmat'];
public const fr = ['caouecs', 'WhereIsLucas'];
public const it = ['masterix21'];
public const mk = ['keljtanoski'];
public const nl = ['WhereIsLucas'];
public const pt = ['jorgercosta'];
public const ru = ['andrey-helldar'];
public const sr_Cyrl = ['LukaLatkovic'];
public const sr_Latn = ['LukaLatkovic'];
public const sr_Latn_ME = ['LukaLatkovic'];
public const uk = ['MrAlKuz'];
public const vi = ['dinhquochan'];
public const zh_CN = ['overtrue'];
public const zh_HK = ['overtrue'];
public const zh_TW = ['overtrue'];
}
+14 -12
View File
@@ -4,23 +4,25 @@ 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 REFERENTS = 'referents.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';
}
+24
View File
@@ -0,0 +1,24 @@
<?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 localePath(string $locale = null): string;
public function excludePath(string $locale): string;
public function resourcePath(string $filename): string;
public function path(string $path = null): string;
public function cleanPath(string $path = null): ?string;
public function processor(Processable $processor): void;
}
+2 -1
View File
@@ -2,6 +2,7 @@
namespace LaravelLang\Lang\Contracts;
use Helldar\Support\Tools\Stub;
use LaravelLang\Lang\Application;
interface Filesystem
@@ -10,5 +11,5 @@ interface Filesystem
public function load(string $path): array;
public function store(string $path, array|string $content): void;
public function store(string $path, array|string|Stringable $content, bool $is_simple = false, string $stub = Stub::PHP_ARRAY): void;
}
+8
View File
@@ -0,0 +1,8 @@
<?php
namespace LaravelLang\Lang\Contracts;
interface Stringable
{
public function toString(): string;
}
+17
View File
@@ -0,0 +1,17 @@
<?php
namespace LaravelLang\Lang\Facades;
use Helldar\Support\Facades\BaseFacade;
use LaravelLang\Lang\Helpers\Arr as Helper;
/**
* @method static array flatten(array $array)
*/
class Arr extends BaseFacade
{
protected static function getFacadeAccessor()
{
return Helper::class;
}
}
+20
View File
@@ -0,0 +1,20 @@
<?php
namespace LaravelLang\Lang\Facades;
use Dotenv\Repository\AdapterRepository;
use Dotenv\Repository\RepositoryInterface;
use Helldar\Support\Facades\BaseFacade;
use LaravelLang\Lang\Support\Env as Support;
/**
* @method static mixed get(string $key, mixed $default = null)
* @method static AdapterRepository|RepositoryInterface getRepository()
*/
class Env extends BaseFacade
{
protected static function getFacadeAccessor()
{
return Support::class;
}
}
+32
View File
@@ -0,0 +1,32 @@
<?php
namespace LaravelLang\Lang\Facades;
use Helldar\Support\Facades\BaseFacade;
use LaravelLang\Lang\Support\Finder;
use LaravelLang\Lang\Support\Package as Support;
use LaravelLang\Lang\Support\Parser;
use Symfony\Component\Finder\Finder as SymfonyFinder;
/**
* @method static Support some()
*/
class Package extends BaseFacade
{
protected static function getFacadeAccessor(): Support
{
return new Support(self::resolveFinder(), self::resolveParser());
}
protected static function resolveFinder(): Finder
{
$finder = SymfonyFinder::create();
return Finder::make($finder);
}
protected static function resolveParser(): Parser
{
return Parser::make();
}
}
+17
View File
@@ -0,0 +1,17 @@
<?php
namespace LaravelLang\Lang\Facades;
use Helldar\Support\Facades\BaseFacade;
use LaravelLang\Lang\Services\Translate as Service;
/**
* @method static string translate(string $locale, string $text)
*/
final class Translate extends BaseFacade
{
protected static function getFacadeAccessor()
{
return Service::class;
}
}
+29
View File
@@ -0,0 +1,29 @@
<?php
namespace LaravelLang\Lang\Helpers;
use Helldar\Support\Facades\Helpers\Str;
class Arr
{
public function flatten(array $array, string|int $key = null): array
{
$result = [];
foreach ($array as $index => $value) {
if (! is_array($value)) {
$new_key = $key ? "$key.$index" : $index;
$result[$new_key] = $value;
continue;
}
$values = $this->flatten($value, $index);
$result = array_merge($result, $values);
}
return $result;
}
}
+11 -2
View File
@@ -2,6 +2,8 @@
namespace LaravelLang\Lang\Models;
use LaravelLang\Lang\Constants\Machines;
final class Locale extends Model
{
public function __construct(
@@ -18,9 +20,11 @@ final class Locale extends Model
public function getTitle(): ?string
{
if (! $this->isEmpty()) {
$suffix = $this->getMissing() ? '❗' : '✔';
$status = $this->getMissing() ? '❗' : '✔';
return $this->locale . '&nbsp;' . $suffix;
$machine = $this->hasMachine() ? '&nbsp;🤖' : '';
return $this->locale . '&nbsp;' . $status . $machine;
}
return null;
@@ -35,4 +39,9 @@ final class Locale extends Model
{
return empty($this->locale);
}
protected function hasMachine(): bool
{
return in_array($this->locale, Machines::LOCALES, true);
}
}
+75
View File
@@ -0,0 +1,75 @@
<?php
namespace LaravelLang\Lang\Processors;
use Helldar\Support\Facades\Helpers\Arr;
use Helldar\Support\Facades\Helpers\Filesystem\File;
final class Excludes extends Processor
{
protected string $target_path = 'excludes';
protected array $keys = [];
protected ?string $stub = 'exclude.stub';
public function run(): void
{
$this->loadKeys();
$this->handle();
}
protected function handle(): void
{
foreach ($this->targetFiles() as $filename) {
$this->process($this->getTargetPath($filename), $filename);
}
}
protected function process(string $target_path, string $filename, string $locale = null): void
{
$target = $this->load($target_path);
$content = $this->merge($this->keys, $target, $filename);
$this->sort($content);
$this->store($target_path, array_values($content), $this->stub, true);
}
protected function merge(array $source, array $target, string $filename): array
{
return array_intersect($source, $target);
}
protected function sort(array &$array): void
{
$array = Arr::sort(array_unique($array));
}
protected function loadKeys(): void
{
foreach ($this->sourceFiles() as $filename) {
$keys = $this->getSourceKeys($filename);
$this->keys = array_merge($this->keys, $keys);
}
}
protected function sourceFiles(): array
{
return File::names($this->getSourcePath(), recursive: true);
}
protected function targetFiles(): array
{
return File::names($this->getTargetPath());
}
protected function getSourceKeys(string $filename): array
{
$items = $this->load($this->getSourcePath($filename));
return array_keys($items);
}
}
+98
View File
@@ -0,0 +1,98 @@
<?php
namespace LaravelLang\Lang\Processors;
use Helldar\Support\Facades\Helpers\Filesystem\Directory;
class Git extends Processor
{
public function run(): void
{
foreach ($this->locales() as $locale) {
dump($locale . '...');
$this->checkout();
$this->createBranch($locale);
$this->add($locale);
$this->commit($locale);
$this->push($locale);
}
}
protected function locales(): array
{
return Directory::names($this->getLocalesPath());
}
protected function checkout(): void
{
$this->git(sprintf('checkout "%s"', $this->getSourceBranchName()));
}
protected function add(string $locale): void
{
$this->git(sprintf('add locales/%s/*', $locale));
}
protected function commit(string $locale): void
{
$message = $this->getMessage($locale);
$this->git(sprintf('commit -m "%s"', $message));
}
protected function push(string $locale): void
{
$repository = env('GIT_REPOSITORY', 'origin');
$branch = $this->getTargetBranchName($locale);
$this->git(sprintf('push --set-upstream %s %s', $repository, $branch));
}
protected function createBranch(string $locale): void
{
$source_branch = $this->getSourceBranchName();
$target_branch = $this->getTargetBranchName($locale);
$this->git(sprintf('checkout -b "%s" "%s"', $target_branch, $source_branch));
}
protected function git(string $command): void
{
$directory = $this->getGitDirectory();
exec('git -C "' . $directory . '" ' . $command);
}
protected function getLocalesPath(): string
{
return $this->app->localePath();
}
protected function getGitDirectory(): string
{
$directory = $this->app->basePath();
return realpath($directory);
}
protected function getSourceBranchName(): string
{
return env('GIT_SOURCE_BRANCH', 'main');
}
protected function getTargetBranchName(string $locale): string
{
$prefix = env('GIT_TARGET_BRANCH', 'patch');
return sprintf('%s/%s/%s', $prefix, date('Y-m-d'), $locale);
}
protected function getMessage(string $locale): string
{
$message = env('GIT_MESSAGE');
return sprintf($message, $locale);
}
}
-24
View File
@@ -1,24 +0,0 @@
<?php
namespace LaravelLang\Lang\Processors;
use Helldar\Support\Facades\Helpers\Filesystem\File;
final class Json extends Processor
{
protected string $target_path = 'json';
public function run(): void
{
foreach ($this->locales() as $locale) {
$target_path = $this->getTargetPath($locale);
$this->process($target_path, 'en.json', $locale);
}
}
protected function locales(): array
{
return File::names($this->getTargetPath());
}
}
+46
View File
@@ -0,0 +1,46 @@
<?php
namespace LaravelLang\Lang\Processors;
use Helldar\Support\Facades\Helpers\Arr;
use LaravelLang\Lang\Facades\Package;
final class Packages extends Processor
{
protected array $packages = [
'laravel/fortify' => 'packages/fortify.json',
'laravel/jetstream' => 'packages/jetstream.json',
];
public function run(): void
{
foreach ($this->packages as $package => $filename) {
$items = $this->files($package);
$path = $this->getSourcePath($filename);
$content = $this->map($items);
$this->sort($content);
$this->store($path, $content);
}
}
protected function map(array $items): array
{
return Arr::renameKeys($items, static fn ($key, $value) => $value);
}
protected function files(string $package): array
{
$path = $this->vendorPath($package);
return Package::some()->path($path)->content();
}
protected function vendorPath(string $package): string
{
return $this->app->path('vendor/' . $package);
}
}
@@ -2,12 +2,11 @@
namespace LaravelLang\Lang\Processors;
use Helldar\Support\Facades\Helpers\Filesystem\Directory;
use Helldar\Support\Facades\Helpers\Filesystem\File;
final class Php extends Processor
final class Process extends Processor
{
protected string $target_path = 'src';
protected string $target_path = 'locales';
public function run(): void
{
@@ -15,18 +14,15 @@ final class Php extends Processor
foreach ($this->files($locale) as $file) {
$target_path = $this->getTargetPath($locale . '/' . $file);
$this->process($target_path, $file, $locale);
$filename = $this->isMainJson($file) ? 'en.json' : $file;
$this->process($target_path, $filename, $locale);
}
}
}
protected function files(string $locale): array
{
return File::names($this->getTargetPath($locale));
}
protected function locales(): array
{
return Directory::names($this->getTargetPath());
return File::names($this->getTargetPath($locale), recursive: true);
}
}
+67 -9
View File
@@ -4,12 +4,21 @@ namespace LaravelLang\Lang\Processors;
use Helldar\Support\Concerns\Makeable;
use Helldar\Support\Facades\Helpers\Arr;
use Helldar\Support\Facades\Helpers\Str;
use Helldar\Support\Facades\Helpers\Filesystem\Directory;
use Helldar\Support\Tools\Stub;
use LaravelLang\Lang\Application;
use LaravelLang\Lang\Concerns\Contains;
use LaravelLang\Lang\Contracts\Filesystem;
use LaravelLang\Lang\Contracts\Processable;
use LaravelLang\Lang\Contracts\Stringable;
use LaravelLang\Lang\Services\Filesystem\Base;
use LaravelLang\Lang\Services\Filesystem\Json as JsonFilesystem;
use LaravelLang\Lang\Services\Filesystem\Markdown as MarkdownFilesystem;
use LaravelLang\Lang\Services\Filesystem\Php as PhpFilesystem;
abstract class Processor implements Processable
{
use Contains;
use Makeable;
protected Application $app;
@@ -18,6 +27,9 @@ abstract class Processor implements Processable
protected string $target_path;
/** @var \LaravelLang\Lang\Contracts\Filesystem[]|array */
protected array $filesystems = [];
public function application(Application $app): Processable
{
$this->app = $app;
@@ -27,7 +39,7 @@ abstract class Processor implements Processable
protected function merge(array $source, array $target, string $filename): array
{
$target = Arr::only($target, array_keys($source));
$target = $this->filter($target, $source);
$this->sort($source);
$this->sort($target);
@@ -45,14 +57,14 @@ abstract class Processor implements Processable
return array_merge($source, $target);
}
protected function process(string $target_path, string $filename, string $locale): void
protected function process(string $target_path, string $filename, string $locale = null): void
{
$source = $this->source($filename);
$target = $this->load($target_path);
$content = $this->merge($source, $target, $filename);
$this->store($target_path, $content);
$this->store($target_path, $content, $filename);
}
protected function source(string $filename): array
@@ -83,9 +95,11 @@ abstract class Processor implements Processable
return $this->app->sourcePath($filename);
}
protected function isValidation(string $filename): bool
protected function filter(array $first, array $second): array
{
return Str::startsWith($filename, 'validation');
$keys = array_keys($second);
return Arr::only($first, $keys);
}
protected function sort(array &$array): void
@@ -95,11 +109,55 @@ abstract class Processor implements Processable
protected function load(string $path): array
{
return $this->app->getFilesystem()->load($path);
return $this->getFilesystem($path)->load($path);
}
protected function store(string $path, array $content): void
protected function locales(): array
{
$this->app->getFilesystem()->store($path, $content);
return Directory::names($this->getTargetPath());
}
protected function resolveFilename(string $filename, string $locale): string
{
return $this->isMainJson($filename) ? $locale . '.json' : $filename;
}
protected function getFilesystem(string $filename): Filesystem
{
$class = $this->getFilesystemClass($filename);
if ($this->filesystems[$class] ?? false) {
return $this->filesystems[$class];
}
return $this->filesystems[$class] = $this->loadFilesystem($class);
}
protected function getFilesystemClass(string $path): string
{
return match (true) {
$this->isJson($path) => JsonFilesystem::class,
$this->isMarkdown($path) => MarkdownFilesystem::class,
default => PhpFilesystem::class,
};
}
protected function loadFilesystem(Filesystem|Base|string $filesystem): Filesystem
{
return $filesystem::make()->application($this->app);
}
protected function store(string $path, array|string|Stringable $content, string $source_filename = null, bool $is_simple = false): void
{
$stub = $this->getStubPath($source_filename);
$this->getFilesystem($path)->store($path, $content, $is_simple, $stub);
}
protected function getStubPath(?string $filename): ?string
{
return empty($filename) ? Stub::PHP_ARRAY : $filename;
}
}
+51
View File
@@ -0,0 +1,51 @@
<?php
namespace LaravelLang\Lang\Processors;
use Helldar\Support\Facades\Helpers\Filesystem\Directory;
use LaravelLang\Lang\Concerns\Template;
use LaravelLang\Lang\Constants\Referents as Constants;
use LaravelLang\Lang\Contracts\Stringable;
use LaravelLang\Lang\Services\Compilers\Referents as Compilator;
use ReflectionClass;
use ReflectionClassConstant;
final class Referents extends Processor
{
use Template;
protected string $target_path = 'locales';
public function run(): void
{
$map = $this->map();
$result = $this->compileContent($map);
$this->store('docs/referents.md', $result);
}
protected function compileContent(array $items): Stringable
{
return Compilator::make($this->app)->items($items);
}
protected function map(): array
{
$locales = array_flip($this->locales());
return array_merge($locales, $this->assignees());
}
protected function locales(): array
{
return Directory::names($this->getTargetPath());
}
protected function assignees(): array
{
$class = new ReflectionClass(Constants::class);
return $class->getConstants(ReflectionClassConstant::IS_PUBLIC);
}
}
+49
View File
@@ -0,0 +1,49 @@
<?php
namespace LaravelLang\Lang\Processors\Splitters;
use Helldar\Support\Facades\Helpers\Arr;
final class CleanUp extends Processor
{
protected string $target_path = 'locales';
public function run(): void
{
$keys = $this->keys();
foreach ($this->locales() as $locale) {
$path = $this->main($locale);
$items = $this->load($path);
$content = Arr::except($items, $keys);
$this->sort($content);
$this->store($path, $content);
}
}
protected function keys(): array
{
$keys = [];
foreach ($this->files as $file) {
$items = $this->source($file);
$keys = array_merge($keys, $items);
}
return array_keys($keys);
}
protected function locales(): array
{
$locales = parent::locales();
array_push($locales, 'en');
return $locales;
}
}
+29
View File
@@ -0,0 +1,29 @@
<?php
namespace LaravelLang\Lang\Processors\Splitters;
final class Locales extends Processor
{
protected string $target_path = 'locales';
public function run(): void
{
foreach ($this->locales() as $locale) {
$this->handle($locale);
}
}
protected function handle(string $locale)
{
foreach ($this->files as $filename) {
$path = $this->splitTargetPath($locale, $filename);
$this->process($path, $filename, $locale);
}
}
protected function splitTargetPath(string $locale, string $filename): string
{
return $this->getTargetPath($locale . '/' . $filename);
}
}
+13
View File
@@ -0,0 +1,13 @@
<?php
namespace LaravelLang\Lang\Processors\Splitters;
final class Main extends Processor
{
public function run(): void
{
foreach ($this->files as $filename) {
$this->process($this->getSourcePath($filename), $filename);
}
}
}
@@ -0,0 +1,43 @@
<?php
namespace LaravelLang\Lang\Processors\Splitters;
use LaravelLang\Lang\Processors\Processor as BaseProcessor;
abstract class Processor extends BaseProcessor
{
protected array $files = [
'packages/cashier.json',
'packages/fortify.json',
'packages/jetstream.json',
'packages/nova.json',
'packages/spark-paddle.json',
'packages/spark-stripe.json',
];
protected function process(string $target_path, string $filename, string $locale = null): void
{
$main = $this->load($this->main($locale));
$target = $this->load($target_path);
$content = $this->merge($main, $target, $filename);
$this->sort($content);
$this->store($target_path, $content);
}
protected function merge(array $source, array $target, string $filename): array
{
$source = $this->filter($source, $target);
return array_merge($target, $source);
}
protected function main(?string $locale): string
{
return empty($locale) || $locale === 'en'
? $this->getSourcePath('en.json')
: $this->getTargetPath($locale . '/' . $locale . '.json');
}
}
@@ -0,0 +1,44 @@
<?php
namespace LaravelLang\Lang\Processors\Splitters;
use Helldar\Support\Facades\Helpers\Filesystem\Directory;
use Helldar\Support\Facades\Helpers\Filesystem\File;
final class Structure extends Processor
{
protected string $target_path = 'locales';
public function run(): void
{
foreach ($this->locales() as $locale) {
$this->create($locale);
}
}
protected function create(string $locale): void
{
foreach ($this->files as $file) {
$from = $this->getSourcePath($file);
$to = $this->getTargetPath($locale . '/' . $file);
$this->ensureDirectory($to);
if (! $this->fileExists($to)) {
copy($from, $to);
}
}
}
protected function fileExists(string $path): bool
{
return File::exists($path);
}
protected function ensureDirectory(string $path): void
{
$directory = pathinfo($path, PATHINFO_DIRNAME);
Directory::ensureDirectory($directory);
}
}
+52
View File
@@ -0,0 +1,52 @@
<?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($locale, $items);
$result = $this->compileContent($content, $locale, $count);
$filename = Str::slug($locale);
$this->store($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(string $locale, array $items): string
{
$content = Collection::make($this->app)
->extend(compact('locale'))
->items($items)
->toString();
return $content ?: $this->template(Resource::COMPONENT_ALL_TRANSLATED);
}
protected function ensureDirectory(): void
{
Directory::ensureDirectory($this->pathStatus(), can_delete: true);
}
protected function pathStatus(string $filename = null): string
{
return $this->app->path('docs/statuses/' . $filename);
}
}
+23
View File
@@ -0,0 +1,23 @@
<?php
namespace LaravelLang\Lang\Processors\Statuses;
use LaravelLang\Lang\Contracts\Stringable;
use LaravelLang\Lang\Services\Compilers\Status;
final class Main extends Processor
{
protected function saving(): void
{
$result = $this->compileContent($this->locales);
$this->store('docs/status.md', $result);
}
protected function compileContent(array $items): Stringable
{
return Status::make($this->app)
->extend($this->getCounts())
->items($items);
}
}
+164
View File
@@ -0,0 +1,164 @@
<?php
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\Tools\Sorter;
use LaravelLang\Lang\Concerns\Countable;
use LaravelLang\Lang\Concerns\Excludes;
use LaravelLang\Lang\Concerns\Template;
use LaravelLang\Lang\Facades\Arr as ArrHelper;
use LaravelLang\Lang\Processors\Processor as BaseProcessor;
abstract class Processor extends BaseProcessor
{
use Countable;
use Excludes;
use Template;
protected string $extension = '.md';
protected string $target_path = 'statuses';
protected array $source_files = [];
protected array $locales = [];
abstract protected function saving(): void;
public function run(): void
{
$this->ensureDirectory();
$this->handle();
$this->saving();
}
protected function handle(): void
{
foreach ($this->locales() as $locale) {
$this->ensureLocale($locale);
foreach ($this->files() as $file) {
$target_path = $this->getTargetPath($locale . $this->extension);
$this->process($target_path, $file, $locale);
}
}
}
protected function process(string $target_path, string $filename, string $locale = null): void
{
$corrected = $this->resolveFilename($filename, $locale);
$source = $this->source($filename);
$target = $this->target($locale, $corrected);
$is_validation = $this->isValidation($filename);
$this->addCount($source);
if ($diff = $this->compare($source, $target, $locale, $is_validation)) {
$this->pushLocale($locale, $corrected, $diff);
$this->addCount($diff, 'diff');
}
}
protected function compare(array $source, array $target, string $locale, bool $is_validation): array
{
$source = $this->prepareComparing($source, $is_validation);
$target = $this->prepareComparing($target, $is_validation);
return array_filter($target,
fn ($value, $key) => $this->hasEquals($value, $key, $source, $locale, $is_validation),
ARRAY_FILTER_USE_BOTH
);
}
protected function prepareComparing(array $array, bool $is_validation): array
{
if ($is_validation) {
$array = Arr::except($array, ['custom', 'attributes']);
}
return ArrHelper::flatten($array);
}
protected function hasEquals($value, $key, array $source, string $locale, bool $is_validation): bool
{
if ($is_validation && in_array($key, ['custom', 'attributes'], true)) {
return false;
}
if ($this->hasExclude($key, $locale)) {
return false;
}
return Arr::get($source, $key) === $value;
}
protected function countMissing(string $locale): int
{
$items = array_map(static fn (array $items) => count($items), $this->locales[$locale]);
return array_sum($items);
}
protected function getLocalePath(string $locale = null): string
{
return $this->app->localePath($locale);
}
protected function locales(): array
{
return Directory::names($this->getLocalePath());
}
protected function files(): array
{
if (! empty($this->source_files)) {
return $this->source_files;
}
$files = File::names($this->getSourcePath(), recursive: true);
$items = Arr::sort($files, function (string $a, string $b) {
$sorter = Sorter::defaultCallback();
return $sorter($a, $b);
});
$php = array_filter($items, fn ($value) => ! $this->isJson($value));
$json = array_filter($items, fn ($value) => $this->isJson($value));
return $this->source_files = array_merge(array_values($php), array_values($json));
}
protected function target(string $locale, string $filename): array
{
$corrected = $this->resolveFilename($filename, $locale);
$path = $this->getLocalePath($locale . '/' . $corrected);
return $this->load($path);
}
protected function pushLocale(string $locale, string $filename, array $diff): void
{
$this->locales[$locale][$filename] = $diff;
}
protected function ensureLocale(string $locale): void
{
if (! isset($this->locales[$locale])) {
$this->locales[$locale] = [];
}
}
protected function ensureDirectory(): void
{
//
}
}
+101
View File
@@ -0,0 +1,101 @@
<?php
namespace LaravelLang\Lang\Processors\Statuses;
use LaravelLang\Lang\Facades\Translate;
use Throwable;
final class Translator extends Processor
{
protected function saving(): void
{
foreach ($this->locales as $locale => $items) {
foreach ($items as $filename => $values) {
dump(sprintf('[%s] %s...', $locale, $filename));
$filename = $this->restoreFilename($locale, $filename);
$this->translateKeys($locale, $filename, $values);
}
}
}
protected function translateKeys(string $locale, string $filename, array $items): void
{
try {
foreach ($items as &$item) {
$item = $this->translate($locale, $item);
}
}
catch (Throwable $e) {
dump($e->getMessage());
}
finally {
$this->storing($locale, $filename, $items);
}
}
protected function storing(string $locale, string $filename, array $items): void
{
$target_path = $this->getLocalePath($locale) . '/' . $filename;
$source = $this->source($filename);
$target = $this->target($locale, $filename);
$target = array_merge($target, $items);
$content = $this->merge($source, $target, $filename);
$this->store($target_path, $content, $filename);
}
protected function translate(string $locale, string $text): string
{
$map = [];
$transformed = $this->transformText($text, $map);
$translated = Translate::translate($locale, $transformed);
return $this->restoreText($translated, $map);
}
protected function transformText(string $text, array &$map): string
{
preg_match_all('/:[a-z]+/', $text, $matches);
foreach ($matches as $match) {
foreach ($match as $key) {
$map[$key] = $this->getRandomValue($map);
}
}
return $this->transformReplace($text, $map);
}
protected function restoreText(string $text, array $map): string
{
return $this->transformReplace($text, array_flip($map));
}
protected function transformReplace(string $text, array $items): string
{
return str_replace(array_keys($items), array_values($items), $text);
}
protected function getRandomValue(array $items): int
{
$random = random_int(1000, 9999);
return in_array($random, $items, true) ? $this->getRandomValue($items) : $random;
}
protected function restoreFilename(string $locale, string $filename): string
{
return match (true) {
$this->isMainJson($filename) => $locale . '.json',
$this->isJson($filename) => $filename . '.json',
default => $filename . '.php',
};
}
}
-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;
}
}
-208
View File
@@ -1,208 +0,0 @@
<?php
namespace LaravelLang\Lang\Processors\Todo;
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\Template;
use LaravelLang\Lang\Contracts\Filesystem;
use LaravelLang\Lang\Processors\Processor as BaseProcessor;
use LaravelLang\Lang\Services\Filesystem\Base;
use LaravelLang\Lang\Services\Filesystem\Json as JsonFilesystem;
use LaravelLang\Lang\Services\Filesystem\Php as PhpFilesystem;
abstract class Processor extends BaseProcessor
{
use Excludeable;
use Template;
protected string $extension = '.md';
protected string $target_path = 'todo';
/** @var \LaravelLang\Lang\Contracts\Filesystem[]|array */
protected array $filesystems = [];
protected array $source_files = [];
protected array $locales = [];
abstract protected function saving(): void;
public function run(): void
{
$this->ensureDirectory();
$this->handle();
$this->saving();
}
protected function handle(): void
{
foreach ($this->locales() as $locale) {
foreach ($this->files() as $file) {
$target_path = $this->getTargetPath($locale . $this->extension);
$this->process($target_path, $file, $locale);
}
}
}
protected function process(string $target_path, string $filename, string $locale): void
{
$corrected = $this->getCorrectedFilename($filename, $locale);
$source = $this->source($filename);
$target = $this->target($locale, $corrected);
$is_validation = $this->isValidation($filename);
if ($diff = $this->compare($source, $target, $locale, $is_validation)) {
$key = $this->getFileBasename($corrected);
$this->locales[$locale][$key] = $diff;
} else {
$this->locales[$locale] = [];
}
}
protected function save(string $path, array|string $content): void
{
$content = is_string($content) ? $content : implode(PHP_EOL, $content);
File::store($path, $content);
}
protected function compare(array $source, array $target, string $locale, bool $is_validation): array
{
return array_filter($target,
fn ($value, $key) => $this->hasEquals($value, $key, $source, $locale, $is_validation),
ARRAY_FILTER_USE_BOTH
);
}
protected function hasEquals($value, $key, array $source, string $locale, bool $is_validation): bool
{
if ($is_validation && in_array($key, ['custom', 'attributes'])) {
return false;
}
if ($this->hasExclude($key, $locale)) {
return false;
}
return Arr::get($source, $key) === $value;
}
protected function countMissing(string $locale): int
{
$items = array_map(static fn (array $items) => count($items), $this->locales[$locale]);
return array_sum($items);
}
protected function load(string $path): array
{
return $this->getFilesystem($path)->load($path);
}
protected function loadFilesystem(Filesystem|Base|string $filesystem): Filesystem
{
return $filesystem::make()->application($this->app);
}
protected function getFilesystem(string $filename): Filesystem
{
$class = $this->getFilesystemClass($filename);
if ($this->filesystems[$class] ?? false) {
return $this->filesystems[$class];
}
return $this->filesystems[$class] = $this->loadFilesystem($class);
}
protected function getFilesystemClass(string $path): string
{
return $this->isJson($path) ? JsonFilesystem::class : PhpFilesystem::class;
}
protected function getLangPath(string $locale = null): string
{
$locale = $this->app->cleanPath($locale);
return $this->app->path('src/' . $locale);
}
protected function getFileBasename(string $filename): string
{
$flag = $this->isJson($filename) ? PATHINFO_EXTENSION : PATHINFO_FILENAME;
return pathinfo($filename, $flag);
}
protected function getCorrectedFilename(string $filename, string $locale): string
{
return $this->isJson($filename) ? $locale . '.json' : $filename;
}
protected function locales(): array
{
return Directory::names($this->getLangPath());
}
protected function files(): array
{
if (! empty($this->source_files)) {
return $this->source_files;
}
$files = File::names($this->getSourcePath());
return $this->source_files = Arr::sort($files, static function (string $a, string $b) {
if ($a === $b) {
return 0;
}
if (Str::endsWith($a, '.json')) {
return 1;
}
$sorter = Sorter::defaultCallback();
return $sorter($a, $b);
});
}
protected function target(string $locale, string $filename): array
{
$path = $this->isJson($filename)
? $this->app->path('json/' . $filename)
: $this->app->path('src/' . $locale . '/' . $filename);
return $this->load($path);
}
protected function isJson(string $filename): bool
{
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
{
//
}
}
@@ -0,0 +1,51 @@
<?php
namespace LaravelLang\Lang\Services\Compilers;
use LaravelLang\Lang\Constants\Resource;
final 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
{
$basename = $this->basename($filename);
return $this->template(Resource::COMPONENT_LOCALE, compact('count', 'basename', '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)));
}
protected function basename(string $filename): string
{
return pathinfo($filename, PATHINFO_FILENAME);
}
}
+39
View File
@@ -0,0 +1,39 @@
<?php
namespace LaravelLang\Lang\Services\Compilers;
use Helldar\Support\Concerns\Makeable;
use LaravelLang\Lang\Concerns\Contains;
use LaravelLang\Lang\Concerns\Template;
use LaravelLang\Lang\Contracts\Application;
use LaravelLang\Lang\Contracts\Stringable;
abstract class Compiler implements Stringable
{
use Contains;
use Makeable;
use Template;
protected array $items;
protected array $extend = [];
public function __construct(
protected Application $app
) {
}
public function items(array $items): self
{
$this->items = $items;
return $this;
}
public function extend(array $values): self
{
$this->extend = $values;
return $this;
}
}
+13
View File
@@ -0,0 +1,13 @@
<?php
namespace LaravelLang\Lang\Services\Compilers;
use LaravelLang\Lang\Constants\Resource;
final class Locale extends Compiler
{
public function toString(): string
{
return $this->template(Resource::LOCALE, $this->items);
}
}
+51
View File
@@ -0,0 +1,51 @@
<?php
namespace LaravelLang\Lang\Services\Compilers;
use LaravelLang\Lang\Constants\Resource;
final class Referents extends Compiler
{
public function toString(): string
{
$content = $this->compileContent();
return $this->template(Resource::REFERENTS, compact('content'));
}
protected function compileContent(): string
{
$rows = [];
foreach ($this->items as $key => $value) {
$rows[] = $this->mapRow($key, $value);
}
return Table::make($this->app)->items($rows)->toString();
}
protected function mapRow(string $key, int|array $values): array
{
$row = [$key, ''];
if (is_array($values)) {
$row[1] = $this->mapAssignees($values);
}
return $row;
}
protected function mapAssignees(array $values): string
{
$result = [];
foreach ($values as $value) {
$result[] = $this->template(Resource::COMPONENT_LINK, [
'title' => '@' . $value,
'link' => 'https://github.com/' . $value,
]);
}
return implode(', ', $result);
}
}
+91
View File
@@ -0,0 +1,91 @@
<?php
namespace LaravelLang\Lang\Services\Compilers;
use Helldar\Support\Facades\Helpers\Str;
use LaravelLang\Lang\Constants\Resource;
use LaravelLang\Lang\Models\Locale;
final class Status extends Compiler
{
protected int $columns = 6;
public function toString(): string
{
return $this->template(Resource::STATUS, $this->getContent());
}
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 getContent(): array
{
$content = $this->compileContent();
return array_merge(compact('content'), $this->extend);
}
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;
final 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);
}
}
+26
View File
@@ -0,0 +1,26 @@
<?php
namespace LaravelLang\Lang\Services;
use Helldar\Support\Concerns\Makeable;
final class Counter
{
use Makeable;
protected int $count = 0;
public function count(array $items): int
{
$this->calculate($items);
return $this->count;
}
protected function calculate(array $items): void
{
foreach ($items as $item) {
is_array($item) ? $this->calculate($item) : $this->count++;
}
}
}
+13
View File
@@ -3,12 +3,15 @@
namespace LaravelLang\Lang\Services\Filesystem;
use Helldar\Support\Concerns\Makeable;
use Helldar\Support\Facades\Helpers\Ables\Arrayable;
use LaravelLang\Lang\Application;
use LaravelLang\Lang\Concerns\Storable;
use LaravelLang\Lang\Contracts\Filesystem;
abstract class Base implements Filesystem
{
use Makeable;
use Storable;
protected Application $app;
@@ -23,4 +26,14 @@ abstract class Base implements Filesystem
{
return [];
}
protected function correctValues(array $items): array
{
$callback = static fn ($value) => stripslashes($value);
return Arrayable::of($items)
->map($callback, true)
->renameKeys($callback)
->get();
}
}
+10 -2
View File
@@ -4,6 +4,8 @@ namespace LaravelLang\Lang\Services\Filesystem;
use Helldar\PrettyArray\Services\File as Pretty;
use Helldar\Support\Facades\Helpers\Arr;
use Helldar\Support\Tools\Stub;
use LaravelLang\Lang\Contracts\Stringable;
final class Json extends Base
{
@@ -11,11 +13,17 @@ final class Json extends Base
{
$content = Pretty::make()->loadRaw($path);
return json_decode($content, true);
$items = json_decode($content, true);
return $this->correctValues($items);
}
public function store(string $path, array|string $content): void
public function store(string $path, array|string|Stringable $content, bool $is_simple = false, string $stub = Stub::PHP_ARRAY): void
{
if ($is_simple) {
$content = array_values($content);
}
Arr::storeAsJson($path, $content, false, JSON_UNESCAPED_UNICODE ^ JSON_PRETTY_PRINT);
}
}
+5 -1
View File
@@ -3,11 +3,15 @@
namespace LaravelLang\Lang\Services\Filesystem;
use Helldar\Support\Facades\Helpers\Filesystem\File;
use Helldar\Support\Tools\Stub;
use LaravelLang\Lang\Contracts\Stringable;
final class Markdown extends Base
{
public function store(string $path, array|string $content): void
public function store(string $path, array|string|Stringable $content, bool $is_simple = false, string $stub = Stub::PHP_ARRAY): void
{
$content = $this->prepareToStore($content);
File::store($path, $content);
}
}
+11 -4
View File
@@ -4,19 +4,26 @@ namespace LaravelLang\Lang\Services\Filesystem;
use Helldar\PrettyArray\Services\File as Pretty;
use Helldar\PrettyArray\Services\Formatter;
use Helldar\Support\Tools\Stub;
use LaravelLang\Lang\Contracts\Stringable;
final class Php extends Base
{
public function load(string $path): array
{
return Pretty::make()->load($path);
$items = Pretty::make()->load($path);
return $this->correctValues($items);
}
public function store(string $path, array|string $content): void
public function store(string $path, array|string|Stringable $content, bool $is_simple = false, string $stub = Stub::PHP_ARRAY): void
{
$service = Formatter::make();
$service->setEqualsAlign();
Pretty::make($service->raw($content))->store($path);
$is_simple
? $service->setSimple()
: $service->setEqualsAlign();
Pretty::make($service->raw($content))->store($path, $this->getStub($stub));
}
}
+67
View File
@@ -0,0 +1,67 @@
<?php
namespace LaravelLang\Lang\Services;
use GuzzleHttp\Client;
use GuzzleHttp\RequestOptions;
use Helldar\Support\Facades\Helpers\Str;
final class Translate
{
protected string $url = 'https://translate.api.cloud.yandex.net/translate/v2/translate';
public function translate(string $locale, string $text): string
{
$content = $this->request($locale, $text);
return $content['translations'][0]['text'];
}
protected function request(string $locale, string $text): array
{
$response = $this->client()->request('POST', $this->url, [
RequestOptions::HEADERS => $this->headers(),
RequestOptions::JSON => $this->body($locale, $text),
]);
return json_decode($response->getBody()->getContents(), true);
}
protected function headers(): array
{
return [
'Authorization' => 'Bearer ' . $this->apiKey(),
];
}
protected function body(string $locale, string $text): array
{
return [
'targetLanguageCode' => $this->correctLocale($locale),
'texts' => [$text],
'folderId' => $this->folderId(),
];
}
protected function correctLocale(string $locale): string
{
return Str::before($locale, '_');
}
protected function client(): Client
{
return new Client();
}
protected function apiKey(): string
{
return env('YANDEX_API_KEY');
}
protected function folderId(): string
{
return env('YANDEX_API_FOLDER_ID');
}
}
+31
View File
@@ -0,0 +1,31 @@
<?php
namespace LaravelLang\Lang\Support;
use Dotenv\Repository\AdapterRepository;
use Dotenv\Repository\RepositoryBuilder;
use Dotenv\Repository\RepositoryInterface;
use PhpOption\Option;
final class Env
{
protected static RepositoryInterface|AdapterRepository|null $repository;
public function get(string $key, mixed $default = null): mixed
{
$value = $this->getRepository()->get($key);
return Option::fromValue($value)->getOrElse($default);
}
public function getRepository(): AdapterRepository|RepositoryInterface
{
if (self::$repository ?? false) {
return self::$repository;
}
$builder = RepositoryBuilder::createWithDefaultAdapters();
return self::$repository = $builder->immutable()->make();
}
}
+53
View File
@@ -0,0 +1,53 @@
<?php
namespace LaravelLang\Lang\Support;
use Helldar\Support\Concerns\Makeable;
use Symfony\Component\Finder\Finder as SymfonyFinder;
class Finder
{
use Makeable;
protected array $names = ['*.php', '*.json', '*.js', '*.vue'];
protected array $contains = ['__(', 'trans(', '@lang(', 'Lang::get('];
protected array $files = [];
public function __construct(
protected SymfonyFinder $instance
) {
}
public function get(string|array $path): array
{
$this->search($path);
return $this->files();
}
protected function search(string|array $path): void
{
foreach ($this->find($path) as $file) {
$this->push($file->getRealPath());
}
}
protected function find(string|array $path): SymfonyFinder
{
return $this->instance->in($path)->files()
->name($this->names)
->contains($this->contains);
}
protected function push(string $path): void
{
$this->files[] = $path;
}
protected function files(): array
{
return $this->files;
}
}
+57
View File
@@ -0,0 +1,57 @@
<?php
namespace LaravelLang\Lang\Support;
use Helldar\Support\Facades\Helpers\Filesystem\Directory;
use Helldar\Support\Facades\Helpers\Str;
class Package
{
protected ?string $path;
protected array $filter = ['$this', 'self::', 'auth.', 'pagination.', 'passwords.', 'validation.'];
public function __construct(
protected Finder $finder,
protected Parser $parser
) {
}
public function some(): self
{
return $this;
}
public function path(string $path): self
{
Directory::validate($path);
$this->path = realpath($path);
return $this;
}
public function content(): array
{
$files = $this->files();
$items = $this->parsed($files);
return $this->filter($items);
}
protected function files(): array
{
return $this->finder->get($this->path);
}
protected function parsed(array $files): array
{
return $this->parser->files($files)->get();
}
protected function filter(array $items): array
{
return array_filter(array_keys($items), fn ($value) => ! Str::startsWith($value, $this->filter));
}
}
+97
View File
@@ -0,0 +1,97 @@
<?php
namespace LaravelLang\Lang\Support;
use Helldar\Support\Concerns\Makeable;
use Helldar\Support\Facades\Helpers\Arr;
use Helldar\Support\Facades\Helpers\Str;
class Parser
{
use Makeable;
protected const REGEX = '/\b(__|trans|@lang|Lang\:\:get)\((.+)(\)|,\s?\[)/U';
protected array $files = [];
protected array $keys = [];
public function files(array $files): self
{
$this->files = $files;
return $this;
}
public function get(): array
{
$this->each();
$this->sort();
return $this->keys();
}
protected function each(): void
{
foreach ($this->files as $file) {
$content = file_get_contents($file);
$this->parse($content);
}
}
protected function sort(): void
{
Arr::ksort($this->keys);
}
protected function parse(string $content): void
{
foreach ($this->match($content) as $match) {
$value = $match;
if (Str::contains((string) $value, ['__', 'trans', '@lang', 'Lang::get'])) {
$sub_key = $this->subkey($value);
$value = $this->keys[$sub_key] ?? null;
}
$this->push($value);
}
}
protected function match(string $content, string $pattern = self::REGEX): array
{
preg_match_all($pattern, $content, $matches);
return $matches[2] ?? [];
}
protected function push(mixed $value): void
{
$value = $this->trim($value);
if (! isset($this->keys[$value])) {
$this->keys[$value] = $value;
}
}
protected function subkey(string $value): string
{
$sub_key = $this->match($value)[0];
return $this->trim($sub_key);
}
protected function keys(): array
{
return $this->keys;
}
protected function trim($value)
{
$chars = " \t\n\r\0\x0B'\"";
return is_string($value) ? trim($value, $chars) : $value;
}
}
+18
View File
@@ -0,0 +1,18 @@
<?php
use LaravelLang\Lang\Facades\Env;
if (! function_exists('env')) {
/**
* Determine if the given value is "blank".
*
* @param string $key
* @param mixed|null $default
*
* @return bool
*/
function env(string $key, mixed $default = null): mixed
{
return Env::get($key, $default);
}
}
+10
View File
@@ -0,0 +1,10 @@
<?php
use LaravelLang\Lang\Processors\Packages;
require __DIR__ . '/../vendor/autoload.php';
/** @var \LaravelLang\Lang\Application $app */
$app = require_once __DIR__ . '/bootstrap/app.php';
$app->processor(Packages::make());
+10
View File
@@ -0,0 +1,10 @@
<?php
use LaravelLang\Lang\Processors\Git;
require __DIR__ . '/../vendor/autoload.php';
/** @var \LaravelLang\Lang\Application $app */
$app = require_once __DIR__ . '/bootstrap/app.php';
$app->processor(Git::make());
+10
View File
@@ -0,0 +1,10 @@
<?php
use LaravelLang\Lang\Processors\Referents;
require __DIR__ . '/../vendor/autoload.php';
/** @var \LaravelLang\Lang\Application $app */
$app = require_once __DIR__ . '/bootstrap/app.php';
$app->processor(Referents::make());
+14
View File
@@ -0,0 +1,14 @@
<?php
/*
|--------------------------------------------------------------------------
| Authentication Language Lines
|--------------------------------------------------------------------------
|
| The following language lines are used during authentication for various
| messages that we need to display to the user. You are free to modify
| these language lines according to your application's requirements.
|
*/
return {{slot}};
+13
View File
@@ -0,0 +1,13 @@
<?php
/*
|--------------------------------------------------------------------------
| Exclusion list
|--------------------------------------------------------------------------
|
| This is a list of exclusions for words or phrases where the original
| form of the word has the same spelling in a given language.
|
*/
return {{slot}};
+14
View File
@@ -0,0 +1,14 @@
<?php
/*
|--------------------------------------------------------------------------
| Pagination Language Lines
|--------------------------------------------------------------------------
|
| The following language lines are used by the paginator library to build
| the simple pagination links. You are free to change them to anything
| you want to customize your views to better match your application.
|
*/
return {{slot}};
+14
View File
@@ -0,0 +1,14 @@
<?php
/*
|--------------------------------------------------------------------------
| Password Reset Language Lines
|--------------------------------------------------------------------------
|
| The following language lines are the default lines which match reasons
| that are given by the password broker for a password update attempt
| has failed, such as for an invalid token or invalid new password.
|
*/
return {{slot}};
@@ -0,0 +1,14 @@
<?php
/*
|--------------------------------------------------------------------------
| Validation Language Lines
|--------------------------------------------------------------------------
|
| The following language lines contain the default error messages used by
| the validator class. Some of these rules have multiple versions such
| as the size rules. Feel free to tweak each of these messages here.
|
*/
return {{slot}};
+14
View File
@@ -0,0 +1,14 @@
<?php
/*
|--------------------------------------------------------------------------
| Validation Language Lines
|--------------------------------------------------------------------------
|
| The following language lines contain the default error messages used by
| the validator class. Some of these rules have multiple versions such
| as the size rules. Feel free to tweak each of these messages here.
|
*/
return {{slot}};
+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 @@
### [{{basename}}](https://github.com/Laravel-Lang/lang/blob/master/locales/{{locale}}/{{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}}
+7
View File
@@ -0,0 +1,7 @@
[Laravel Lang](https://github.com/Laravel-Lang/lang) / [Main Page](index.md) / Referents by language
# Referents by language
{{content}}
[ [to top](#) ]
+7
View File
@@ -0,0 +1,7 @@
[Laravel Lang](https://github.com/Laravel-Lang/lang) / [Main Page](index.md) / Completion Status
# Completion status
> Translation of localizations is completed by **{{count_diff_percents}}%** ({{count_diff}} / {{count_all}}).
{{content}}
-3
View File
@@ -1,3 +0,0 @@
# Todo List
{{content}}
+22
View File
@@ -0,0 +1,22 @@
<?php
/*
* DO NOT RUN THIS FILE!
*
* It was needed to start the process of changing the
* project structure from version 9 to version 10.
*/
use LaravelLang\Lang\Processors\Packages;
use LaravelLang\Lang\Processors\Splitters\{CleanUp, Locales, Main, Structure};
require __DIR__ . '/../vendor/autoload.php';
/** @var \LaravelLang\Lang\Application $app */
$app = require_once __DIR__ . '/bootstrap/app.php';
$app->processor(Packages::make());
$app->processor(Structure::make());
$app->processor(Main::make());
$app->processor(Locales::make());
$app->processor(CleanUp::make());
+12
View File
@@ -0,0 +1,12 @@
<?php
use LaravelLang\Lang\Processors\Statuses\Locales;
use LaravelLang\Lang\Processors\Statuses\Main;
require __DIR__ . '/../vendor/autoload.php';
/** @var \LaravelLang\Lang\Application $app */
$app = require_once __DIR__ . '/bootstrap/app.php';
$app->processor(Main::make());
$app->processor(Locales::make());
+26
View File
@@ -0,0 +1,26 @@
<?php
namespace Tests\Concerns;
trait Messages
{
protected function messageAssertSee(string $path, string $content): string
{
return sprintf('String "%s" was not found in file %s', $content, realpath($path));
}
protected function messageAssertDoesntSee(string $path, string $content): string
{
return sprintf('String "%s" was found in file %s', $content, realpath($path));
}
protected function messageForPath(string $path): string
{
return sprintf('Problem found in file: %s', realpath($path));
}
protected function messageForLocale(string $path, string $locale): string
{
return sprintf('Found a problem with localization of "%s" in file %s', realpath($path), $locale);
}
}
+20 -13
View File
@@ -3,32 +3,39 @@
namespace Tests;
use Helldar\PrettyArray\Services\File as Pretty;
use Helldar\Support\Facades\Helpers\Filesystem\File;
final class JsonTest extends TestCase
{
protected string $target_path = __DIR__ . '/../../json';
public function testJson(): void
{
$source = $this->source('en.json');
foreach ($this->files('.json') as $filename) {
$resolved = $this->resolveFilename($filename);
foreach ($this->files() as $file) {
$target = $this->load($this->target_path . '/' . $file);
$source = $this->source($resolved);
$this->assertSame(array_keys($source), array_keys($target));
foreach ($this->locales() as $locale) {
$filename = $this->resolveFilename($filename, $locale);
$path = $this->target_path . '/' . $locale . '/' . $filename;
$target = $this->load($path);
$this->assertSame(array_keys($source), array_keys($target), $this->messageForPath($path));
}
}
}
protected function files(): array
{
return File::names($this->target_path);
}
protected function load(string $path): array
{
$content = Pretty::make()->loadRaw($path);
return json_decode($content, true);
$items = json_decode($content, true);
return $this->correctValues($items);
}
protected function resolveFilename(string $filename, string $locale = null): string
{
return $this->isMainJson($filename) && ! empty($locale) ? $locale . '.json' : $filename;
}
}
+15 -67
View File
@@ -3,84 +3,32 @@
namespace Tests;
use Helldar\PrettyArray\Services\File as Pretty;
use Helldar\Support\Facades\Helpers\Filesystem\Directory;
final class PhpTest extends TestCase
{
protected string $target_path = __DIR__ . '/../../src';
public function testAuth(): void
public function testPhp(): void
{
$filename = 'auth.php';
foreach ($this->files('.php') as $filename) {
$source = $this->source($filename);
$source = $this->source($filename);
foreach ($this->locales() as $locale) {
$path = $this->target_path . '/' . $locale . '/' . $filename;
foreach ($this->locales() as $locale) {
$target = $this->load($this->target_path . '/' . $locale . '/' . $filename);
$target = $this->load($path);
$this->assertSame(array_keys($source), array_keys($target));
$this->assertSame(array_keys($source), array_keys($target), $this->messageForLocale($path, $locale));
if ($this->isInline($filename)) {
$this->assertDoesntSee($path, [':attribute', ':Attribute']);
}
}
}
}
public function testPagination(): void
{
$filename = 'pagination.php';
$source = $this->source($filename);
foreach ($this->locales() as $locale) {
$target = $this->load($this->target_path . '/' . $locale . '/' . $filename);
$this->assertSame(array_keys($source), array_keys($target));
}
}
public function testPasswords(): void
{
$filename = 'passwords.php';
$source = $this->source($filename);
foreach ($this->locales() as $locale) {
$target = $this->load($this->target_path . '/' . $locale . '/' . $filename);
$this->assertSame(array_keys($source), array_keys($target));
}
}
public function testValidation(): void
{
$filename = 'validation.php';
$source = $this->source($filename);
foreach ($this->locales() as $locale) {
$target = $this->load($this->target_path . '/' . $locale . '/' . $filename);
$this->assertSame(array_keys($source), array_keys($target));
}
}
public function testValidationInline(): void
{
$filename = 'validation-inline.php';
$source = $this->source($filename);
foreach ($this->locales() as $locale) {
$target = $this->load($this->target_path . '/' . $locale . '/' . $filename);
$this->assertSame(array_keys($source), array_keys($target));
}
}
protected function locales(): array
{
return Directory::names($this->target_path);
}
protected function load(string $path): array
{
return Pretty::make()->load($path);
$items = Pretty::make()->load($path);
return $this->correctValues($items);
}
}
@@ -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 $source_path = __DIR__ . '/../../locales';
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__ . '/../../locales';
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);
}
}
+69 -11
View File
@@ -3,15 +3,22 @@
namespace Tests;
use Helldar\PrettyArray\Services\File;
use Helldar\Support\Facades\Helpers\Ables\Arrayable;
use Helldar\Support\Facades\Helpers\Arr;
use Helldar\Support\Facades\Helpers\Filesystem\Directory;
use Helldar\Support\Facades\Helpers\Filesystem\File as Filesystem;
use Helldar\Support\Facades\Helpers\Str;
use LaravelLang\Lang\Constants\Locales;
use PHPUnit\Framework\TestCase as BaseTestCase;
use Tests\Concerns\Messages;
abstract class TestCase extends BaseTestCase
{
protected string $source_path = __DIR__ . '/../../script/en';
use Messages;
protected string $target_path;
protected string $source_path = __DIR__ . '/../../source';
protected string $target_path = __DIR__ . '/../../locales';
protected function source(string $filename): array
{
@@ -21,11 +28,11 @@ abstract class TestCase extends BaseTestCase
$custom = Arr::get($content, 'custom', []);
$attributes = Arr::get($content, 'attributes', []);
$content = Arr::except($content, ['custom', 'attributes']);
$content = Arr::ksort($content);
return array_merge($content, compact('custom', 'attributes'));
return Arrayable::of($content)
->except(['custom', 'attributes'])
->ksort()
->merge(compact('custom', 'attributes'))
->get();
}
return Arr::ksort($content);
@@ -35,14 +42,24 @@ abstract class TestCase extends BaseTestCase
{
$file = File::make()->loadRaw($path);
$this->assertTrue(Str::contains($file, $content));
$this->assertTrue(
str_contains($file, $content),
$this->messageAssertSee($path, $content)
);
}
protected function assertDoesntSee(string $path, string $content): void
protected function assertDoesntSee(string $path, string|array $content): void
{
$file = File::make()->loadRaw($path);
$this->assertFalse(Str::contains($file, $content));
$values = Arr::wrap($content);
foreach ($values as $value) {
$this->assertFalse(
str_contains($file, $value),
$this->messageAssertDoesntSee($path, $value)
);
}
}
protected function sort(array &$array): void
@@ -50,8 +67,49 @@ abstract class TestCase extends BaseTestCase
$array = Arr::ksort($array);
}
protected function files(string $extension): array
{
return Filesystem::names($this->source_path, static fn ($filename) => str_ends_with($filename, $extension), recursive: true);
}
protected function locales(): array
{
return Directory::names($this->target_path);
}
protected function isValidation(string $filename): bool
{
return Str::startsWith($filename, 'validation');
return str_starts_with($filename, 'validation');
}
protected function isInline(string $filename): bool
{
return str_contains($filename, 'inline');
}
protected function isMainJson(string $filename): bool
{
if ($this->isEnglish($filename)) {
return true;
}
$locale = Str::before($filename, '.');
return Directory::exists(__DIR__ . '/../../locales/' . $locale);
}
protected function isEnglish(string $filename): bool
{
return str_starts_with($filename, Locales::ENGLISH);
}
protected function correctValues(array $items): array
{
$callback = static fn ($value) => stripslashes($value);
return Arrayable::of($items)
->map($callback, true)
->renameKeys($callback)
->get();
}
}
-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);
}
}
Loaded 100 of 1565 files, more files were not shown because too many files have changed in this diff. Show more