Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c280e9060b | ||
|
|
90ef4238a8 | ||
|
|
47ec332943 | ||
|
|
ce28a1dfb6 | ||
|
|
01d2ec337a | ||
|
|
05aeb2ee68 | ||
|
|
97cafe68ab | ||
|
|
e571ffff05 | ||
|
|
19bf25ae29 | ||
|
|
d33cdee14d | ||
|
|
86504ab8a6 | ||
|
|
df0e2c6d12 | ||
|
|
29f4632bea | ||
|
|
59e22e9e48 | ||
|
|
4846d89fa0 | ||
|
|
3cfb3fbb5c | ||
|
|
5663231245 | ||
|
|
4282d3a8ec | ||
|
|
bd2cf57585 | ||
|
|
3b45a9f5ad | ||
|
|
cb37c58d75 | ||
|
|
70ed69f049 | ||
|
|
6931227644 | ||
|
|
16dc89d8e8 | ||
|
|
cb8737d1ea | ||
|
|
6cb6246759 | ||
|
|
326c371b90 | ||
|
|
cb32448677 | ||
|
|
701173c100 | ||
|
|
aaa3ab62ec | ||
|
|
27f358e79c | ||
|
|
ff2a5f6ab8 | ||
|
|
7bc8cc3e43 | ||
|
|
b9ef3f1007 | ||
|
|
2b6eaaabc2 | ||
|
|
14e1193520 | ||
|
|
3713c0b3a7 | ||
|
|
d6a39221db | ||
|
|
7006600820 | ||
|
|
6eb4c20336 | ||
|
|
8c15c83da9 | ||
|
|
f608b6c0fd | ||
|
|
c1f1edff23 | ||
|
|
338d1d0c12 | ||
|
|
8990f162b3 | ||
|
|
ccd1483a11 | ||
|
|
21845385d1 | ||
|
|
407af6ce3b | ||
|
|
ceb3db6d2e | ||
|
|
440e7bbe90 | ||
|
|
abb98dec1d | ||
|
|
53567d102e | ||
|
|
5b21db9753 | ||
|
|
20fc83527e | ||
|
|
87bd659002 | ||
|
|
f23fe6252e | ||
|
|
cc48376dec | ||
|
|
f909acc9e5 | ||
|
|
5b5ea9a9ea | ||
|
|
a97a8ee996 | ||
|
|
9938f79e99 | ||
|
|
1de02ec1e9 | ||
|
|
de0b3b9a4c | ||
|
|
a71da48504 | ||
|
|
0710a9b871 | ||
|
|
3e4f24b939 | ||
|
|
b7014d9b86 | ||
|
|
87017a2571 | ||
|
|
3bca1690f4 | ||
|
|
d969de0206 | ||
|
|
749b0cf1fa | ||
|
|
36606d34ac | ||
|
|
aef3749670 | ||
|
|
5ba5fe59ed | ||
|
|
bb727c2640 | ||
|
|
5283751175 | ||
|
|
44656c5509 | ||
|
|
1b3769cb2b | ||
|
|
a19a54de02 | ||
|
|
39f02b39df | ||
|
|
d26e45cf01 | ||
|
|
ac4c2534fd | ||
|
|
83c58ddf34 | ||
|
|
3d23870a15 | ||
|
|
9f0e7b8504 | ||
|
|
e8eeac1655 | ||
|
|
25decb0107 | ||
|
|
c4c21701c0 | ||
|
|
7a0cf43404 | ||
|
|
c54c68b502 | ||
|
|
9d74c83059 | ||
|
|
9318ef2dc0 | ||
|
|
8d819380fb | ||
|
|
7dfe19cdc4 | ||
|
|
baa494f301 | ||
|
|
138003032b | ||
|
|
6a6a1c10a4 | ||
|
|
72ca6a40d5 | ||
|
|
9d17e7cbb0 | ||
|
|
9eecc45bd6 | ||
|
|
36326d756f | ||
|
|
a55f5b3c68 | ||
|
|
2ff7abb784 | ||
|
|
0ffeac9b36 | ||
|
|
a7c1feed87 | ||
|
|
662be8947e | ||
|
|
402ecaba85 | ||
|
|
991cdf0af7 | ||
|
|
470bc8e7dc | ||
|
|
0b216a9842 | ||
|
|
a64dfde999 | ||
|
|
39faf12d71 | ||
|
|
0e6406ed52 | ||
|
|
dd97e1fc19 | ||
|
|
3ea2a9b6a3 | ||
|
|
02c98c9d2b | ||
|
|
f9ff3aeaaf | ||
|
|
2907e919aa | ||
|
|
cbf4132f92 | ||
|
|
948842cdf0 | ||
|
|
67c40e3af6 | ||
|
|
2f56a3216a | ||
|
|
02c810b246 | ||
|
|
ce9e91a8ef | ||
|
|
b681c98d7a | ||
|
|
7d8bd5a049 | ||
|
|
2c2c2f812b | ||
|
|
5322b0f4b5 | ||
|
|
ba414e1efc | ||
|
|
532a1365cc | ||
|
|
f920b23e00 | ||
|
|
e16106a208 | ||
|
|
37ad2697c8 | ||
|
|
ba19191670 | ||
|
|
ffee21f665 | ||
|
|
157c9dc4ed | ||
|
|
671ea33760 | ||
|
|
05641eec32 | ||
|
|
b267574353 | ||
|
|
5a7f7c55d8 | ||
|
|
34f1acb3e0 | ||
|
|
81896cdfb8 | ||
|
|
f3fba5e002 | ||
|
|
35bf34850c | ||
|
|
c93140346c | ||
|
|
7439f1733e | ||
|
|
1f0c0b2ff4 | ||
|
|
329a0b0af3 | ||
|
|
36ea68d6fc | ||
|
|
e5be5413ef | ||
|
|
323f995cd5 | ||
|
|
8b39ba634a | ||
|
|
a87a874b8e | ||
|
|
7e0247cf23 | ||
|
|
6d6bc75331 | ||
|
|
3bbe7e53f7 | ||
|
|
07ebd852cb | ||
|
|
18debfc7c4 | ||
|
|
03481485d2 | ||
|
|
e03c05ada0 | ||
|
|
3d2f265b9e | ||
|
|
ffc987c661 | ||
|
|
8c5cc7a493 | ||
|
|
e108045888 | ||
|
|
43ebedfc7e | ||
|
|
8f6aa5c645 | ||
|
|
1107eb67bc | ||
|
|
534071ad5e | ||
|
|
9d66bed6d7 | ||
|
|
0b983c92ec | ||
|
|
b252890b09 | ||
|
|
b82ea14f3a | ||
|
|
3a8b84b172 | ||
|
|
2f391c0faf | ||
|
|
36fd7b6e43 | ||
|
|
a777a76945 | ||
|
|
587186e4f9 | ||
|
|
58530d0ab0 | ||
|
|
7cfab95390 | ||
|
|
2d61d0da61 | ||
|
|
54b8215832 | ||
|
|
9fbea9e9f6 | ||
|
|
ba6e95028a | ||
|
|
e50de9d79b | ||
|
|
92976ff137 | ||
|
|
0aaad586f0 | ||
|
|
b3ec64623f | ||
|
|
ca0172565c | ||
|
|
e2b6bd35a5 | ||
|
|
0fac9fba44 | ||
|
|
d9d3dc9ed8 | ||
|
|
929d4cf87a | ||
|
|
d8a60499dd | ||
|
|
6ded912cb4 | ||
|
|
6ad0942367 | ||
|
|
5850a07831 | ||
|
|
329096de98 | ||
|
|
ae7fe11613 | ||
|
|
46fae9cb6e | ||
|
|
2bac16dd12 | ||
|
|
d1fc1a050e | ||
|
|
74a5793d57 | ||
|
|
a6546037aa | ||
|
|
0cddf27948 | ||
|
|
22b58810c1 | ||
|
|
6137158e48 | ||
|
|
9a50636a56 | ||
|
|
05ea0c4e78 | ||
|
|
73833e83c4 | ||
|
|
f87cb625eb | ||
|
|
e6672c3d53 | ||
|
|
a5df3caf9b | ||
|
|
185f7b173c | ||
|
|
8a331a4ab8 | ||
|
|
5f4e1000a8 | ||
|
|
ccdf81fbc0 | ||
|
|
a29fa2e956 | ||
|
|
4981761a4f | ||
|
|
f17c6732a0 | ||
|
|
130e3edc05 | ||
|
|
e344290006 | ||
|
|
0b2b018845 | ||
|
|
1e706c033e | ||
|
|
2dbe7cf0c9 | ||
|
|
26f0926779 | ||
|
|
4431b39220 | ||
|
|
b93d1c4e0c | ||
|
|
a89bc97a76 | ||
|
|
c39f67621a | ||
|
|
46cd86eea9 | ||
|
|
7165e1eda6 | ||
|
|
34fa86dcf9 | ||
|
|
2b99e07aad | ||
|
|
26325e853e | ||
|
|
3e124f3a30 | ||
|
|
f3950ba45f | ||
|
|
a01f3e924d | ||
|
|
9d2af5a62e | ||
|
|
111c73f3f9 | ||
|
|
f8990cff6a | ||
|
|
867fe21bc8 | ||
|
|
1be3c13787 | ||
|
|
e78fbf87e2 | ||
|
|
f39ff73753 | ||
|
|
34787b91d7 | ||
|
|
79c4b8e731 | ||
|
|
c3de730ddf | ||
|
|
8e9afc8cce | ||
|
|
c9e66c9e0a | ||
|
|
cc9f274921 | ||
|
|
e0e6f15643 | ||
|
|
1e7e2c85e7 | ||
|
|
031876b68d | ||
|
|
dcda1a5cd0 | ||
|
|
db96e4ea9f | ||
|
|
a6a2d020ba | ||
|
|
54b10c6955 | ||
|
|
99b4a6acf2 | ||
|
|
d9aa0f36f7 | ||
|
|
1ae124737f | ||
|
|
3615c36b48 | ||
|
|
d764077ab4 | ||
|
|
a55977b16b | ||
|
|
2ad7f2cdbf | ||
|
|
1fe7eadf68 | ||
|
|
14fd8fdb59 | ||
|
|
09f819654e | ||
|
|
f53a7394a3 | ||
|
|
1112c89ad3 | ||
|
|
c359c442c5 | ||
|
|
0f5f63bf2c | ||
|
|
6258adb546 | ||
|
|
1d8e7a2e7f | ||
|
|
717bcbcf3f | ||
|
|
3344bcf1d2 | ||
|
|
4de7937ac4 | ||
|
|
b945f19882 | ||
|
|
c02fc70b7a | ||
|
|
501e307fc3 | ||
|
|
ecf706dadd | ||
|
|
7edb3e8f63 | ||
|
|
cc61afec5f | ||
|
|
891f13be60 | ||
|
|
aeec49dfb8 | ||
|
|
9d91ffde84 | ||
|
|
4ba2f8e6b4 | ||
|
|
f6d048923c | ||
|
|
1078420366 | ||
|
|
e33da1fe10 | ||
|
|
0dcdf52af2 | ||
|
|
f7c0d1054d | ||
|
|
2f8ff7c74b | ||
|
|
e809c372fa | ||
|
|
bdabf182a1 | ||
|
|
2acff7c53f | ||
|
|
10f402f2fc | ||
|
|
da529c3dac | ||
|
|
34f11e00ae | ||
|
|
b1cfa55d16 | ||
|
|
e24ca609e7 | ||
|
|
b2cb86954f | ||
|
|
19b2db6ce4 | ||
|
|
0df29b6e6b | ||
|
|
e9822bdbec | ||
|
|
7aeeef8dd2 | ||
|
|
8597c95b7e | ||
|
|
7a3059e163 | ||
|
|
69c3d7046b | ||
|
|
eb0b725069 | ||
|
|
6d4e4db84a | ||
|
|
9e79a32e7a | ||
|
|
a7773e4873 | ||
|
|
2f6077c276 | ||
|
|
d03c7e9220 | ||
|
|
3df3e76ea7 | ||
|
|
0f2d22e49a | ||
|
|
8b0e9d5d87 | ||
|
|
2d4bda681d | ||
|
|
e7dbde19a8 | ||
|
|
6952fc2c14 | ||
|
|
b819143ed8 | ||
|
|
075a4367be | ||
|
|
51431def38 | ||
|
|
c6c171aee4 | ||
|
|
96ae9bb803 | ||
|
|
dbbb9ca155 | ||
|
|
f3c391cd40 | ||
|
|
0abbea4210 | ||
|
|
b3e5ba1358 | ||
|
|
1362a04c4d | ||
|
|
73551dd24e | ||
|
|
1d2106a654 | ||
|
|
f07cafcff1 | ||
|
|
45f3408944 | ||
|
|
5afba60e48 | ||
|
|
914642ba67 | ||
|
|
e1e4be0a32 | ||
|
|
2fce7ae0cf | ||
|
|
cc7e6ac818 | ||
|
|
ceda6cfa74 | ||
|
|
dfb9f7b4b3 | ||
|
|
213c933476 | ||
|
|
43cef9d57f | ||
|
|
03c7d30fe6 | ||
|
|
68e739b3ab | ||
|
|
0191263147 | ||
|
|
b2ba5b72f4 | ||
|
|
1bc8d5de97 | ||
|
|
0ec5422442 | ||
|
|
a457cede78 | ||
|
|
81a7dd8aa0 | ||
|
|
c08715d032 | ||
|
|
8e248a6005 | ||
|
|
4a4433efa2 | ||
|
|
ce9e1d5cfe | ||
|
|
a3637af306 | ||
|
|
ce2c44bcff | ||
|
|
12d9b1476e | ||
|
|
b5b2ec9640 | ||
|
|
2e8c21ad50 | ||
|
|
2929138573 | ||
|
|
47910a11e6 | ||
|
|
1668069356 | ||
|
|
9b547375cf | ||
|
|
921b56e1ff | ||
|
|
05bcfd02b8 | ||
|
|
23c1858afc | ||
|
|
c77ea62158 | ||
|
|
751e1e6875 | ||
|
|
dd866d06f2 | ||
|
|
2627908aa6 | ||
|
|
fab64d9743 | ||
|
|
a9e51c6905 | ||
|
|
b2e227edda | ||
|
|
105d92def8 | ||
|
|
0a3c096a10 | ||
|
|
2d673e1628 | ||
|
|
3ddff83bb4 | ||
|
|
fdb76d69e0 | ||
|
|
517b72ce04 | ||
|
|
28a0256649 | ||
|
|
7607aad01b | ||
|
|
280425b74f | ||
|
|
82a605e195 | ||
|
|
dab4d008b9 | ||
|
|
763b436d11 | ||
|
|
34c0185eee | ||
|
|
c7960c8067 | ||
|
|
0e74e55161 | ||
|
|
ed6e5cff7a | ||
|
|
90dd9c9c83 | ||
|
|
bf9c7188d8 | ||
|
|
7b772dc3a5 | ||
|
|
84d7afc7f2 | ||
|
|
c0b4a34672 | ||
|
|
84f410b7c3 | ||
|
|
dc6b8fbd38 | ||
|
|
a9212ba917 | ||
|
|
c411bdc127 | ||
|
|
3aa9255349 | ||
|
|
c6194663a0 | ||
|
|
a851a3cad6 | ||
|
|
031c48d920 | ||
|
|
c30c103197 | ||
|
|
db421fb73a | ||
|
|
7188365196 | ||
|
|
3dda0438e1 | ||
|
|
14dfb128fa | ||
|
|
fd0847b7ff | ||
|
|
0118ef8d76 | ||
|
|
359bbd5749 | ||
|
|
6bcc49ed59 | ||
|
|
6802ce4def | ||
|
|
c74f1ab96b | ||
|
|
2c10dc9b27 | ||
|
|
a2cbe1e62b | ||
|
|
8582325a6d | ||
|
|
fc4835168e | ||
|
|
502b1c3261 | ||
|
|
e0d8c4576f | ||
|
|
1aad1f779e | ||
|
|
35b3ab6fc0 | ||
|
|
bfd8ac369c | ||
|
|
078b00cc7c | ||
|
|
76c21db53b | ||
|
|
cf10b07997 | ||
|
|
adf5652757 | ||
|
|
d5a9e83f21 | ||
|
|
2b67e76a0e | ||
|
|
060c2405d4 | ||
|
|
03c254f827 | ||
|
|
fad38bb509 | ||
|
|
3e391c7f10 | ||
|
|
e4c577be83 | ||
|
|
c257ff01ca | ||
|
|
fb6e8363e1 | ||
|
|
b9ab4d52c0 | ||
|
|
3f30d59818 | ||
|
|
abbd917c09 | ||
|
|
a5444db687 | ||
|
|
969f39bcb6 | ||
|
|
586fe5a009 | ||
|
|
b59e1f54c4 | ||
|
|
38e6258b3d | ||
|
|
ba5d43ca95 | ||
|
|
198e10333a | ||
|
|
dc4a253ec3 | ||
|
|
e8996e8cec | ||
|
|
e49c413377 | ||
|
|
ce9b12b057 | ||
|
|
308b6490bc | ||
|
|
3e5cf1d56d | ||
|
|
b83be8a8f6 | ||
|
|
cbb584eb0b | ||
|
|
fc6d851a51 | ||
|
|
b443f6a3cf | ||
|
|
87330db4b3 | ||
|
|
bb72d67b2c | ||
|
|
3ed7046da1 | ||
|
|
6d187368d1 | ||
|
|
c39e987326 | ||
|
|
63eefd6335 | ||
|
|
fb16c40f63 | ||
|
|
81a6bf9d2f | ||
|
|
4bfc3fe13f | ||
|
|
e358f2c869 | ||
|
|
d29cc715ba | ||
|
|
b8862067f2 | ||
|
|
11baf67e4c | ||
|
|
888cafc81e | ||
|
|
f9ecb974fe | ||
|
|
336405cf0a | ||
|
|
1dff849a02 | ||
|
|
5dc56d28da | ||
|
|
29cf77e6d1 | ||
|
|
33f7774aa9 | ||
|
|
82c79f4dbb | ||
|
|
b4c56d7d5c | ||
|
|
dfb2c7089f | ||
|
|
a4d9401ce5 | ||
|
|
1759a5eb4f | ||
|
|
2ed16e9b84 | ||
|
|
ad31f0bdff | ||
|
|
00f0a3e92a | ||
|
|
4c6d50c64b | ||
|
|
f44e1c392c | ||
|
|
7197c5815b | ||
|
|
6e436494d9 | ||
|
|
03d9b45529 | ||
|
|
fc2425dcd8 | ||
|
|
972281d9ca | ||
|
|
60345e6462 | ||
|
|
e29978235a | ||
|
|
5781af14e2 | ||
|
|
7fc5425e45 | ||
|
|
7147ccbae0 | ||
|
|
4e87f33ade | ||
|
|
08cae73d4f | ||
|
|
dabbf7ac99 | ||
|
|
ab2418a01a | ||
|
|
9fd292346a | ||
|
|
6bfad32d5a | ||
|
|
95d3e60db5 | ||
|
|
9406f965e3 | ||
|
|
f85776dce9 | ||
|
|
06bed0f8b1 | ||
|
|
1e73b6e710 | ||
|
|
b365b48687 | ||
|
|
f644887e9d | ||
|
|
8dc6720d05 | ||
|
|
51ffe5d8b5 | ||
|
|
0f7b377f61 | ||
|
|
40f9c9289d | ||
|
|
63ad3a6643 | ||
|
|
f95a97738c | ||
|
|
f521a7e0c3 | ||
|
|
aaa710deb6 | ||
|
|
fb51732375 | ||
|
|
76949cebde | ||
|
|
53f00b62f3 | ||
|
|
9df9831cdc | ||
|
|
20bf5c1308 | ||
|
|
51c04fcf77 | ||
|
|
c554eee8eb | ||
|
|
e9e3625e8d | ||
|
|
9d2d881645 | ||
|
|
d0438381e8 | ||
|
|
8dfa8be102 | ||
|
|
adf86c45a4 | ||
|
|
cba57cad91 | ||
|
|
b0f220bbcb | ||
|
|
6bc089c113 | ||
|
|
3a6f67e22c | ||
|
|
cc440db68a | ||
|
|
0d6d95445c | ||
|
|
7212418be3 | ||
|
|
cc1fb00881 | ||
|
|
bf15349940 | ||
|
|
e803aa984e | ||
|
|
b2298331fb | ||
|
|
09ad935287 | ||
|
|
ab852c3d29 | ||
|
|
5f31ed9e8e | ||
|
|
8f6560785e | ||
|
|
92fa2bda8c | ||
|
|
43b82eca02 | ||
|
|
755371bccc | ||
|
|
2df798a535 | ||
|
|
dea88ce69c | ||
|
|
64b6576cdd | ||
|
|
cbcd849624 | ||
|
|
fbca8cc862 | ||
|
|
8d89a21f1e | ||
|
|
a1647c62d5 | ||
|
|
05ce635f58 | ||
|
|
50c6329f59 | ||
|
|
b2ca80fb37 | ||
|
|
9e450472a8 | ||
|
|
046b098f38 | ||
|
|
b5d4cdd795 | ||
|
|
048feb0d8a | ||
|
|
c7c8226ed2 | ||
|
|
c9b5e06a2c | ||
|
|
71ef8f9286 | ||
|
|
985d723462 | ||
|
|
336a09b8be | ||
|
|
91907c193f | ||
|
|
1f758de74f | ||
|
|
833e292c0d | ||
|
|
14b4e1f305 | ||
|
|
4a73c7b181 | ||
|
|
e8d0a62e0b | ||
|
|
d3f28401e6 | ||
|
|
c1c6108571 | ||
|
|
7f19db2720 | ||
|
|
0c03abaddf | ||
|
|
1e1ff85c26 | ||
|
|
c7e11667b6 | ||
|
|
2c56c5a778 | ||
|
|
9a54b05281 | ||
|
|
08ff7bcb86 | ||
|
|
9525f213ea | ||
|
|
b4b72510c8 | ||
|
|
3b6510e86e | ||
|
|
6ac6ebeede | ||
|
|
2301e8a198 | ||
|
|
bae13f7791 | ||
|
|
6073c2bd1f | ||
|
|
883161477a | ||
|
|
642c935d18 | ||
|
|
3d6efbea45 | ||
|
|
7e77ca8a52 | ||
|
|
b11a6df004 | ||
|
|
b2992b77ae | ||
|
|
da347eb3a6 | ||
|
|
43d564081c | ||
|
|
7432c2c5e1 | ||
|
|
1372eb73e5 | ||
|
|
44df9991a7 | ||
|
|
abce69f071 | ||
|
|
6100d71a8a | ||
|
|
c749236577 | ||
|
|
1d79ddd183 | ||
|
|
f5431ec78d | ||
|
|
bb110d07d5 | ||
|
|
68df6d1b63 | ||
|
|
c8a9c01c29 | ||
|
|
c878474eb2 | ||
|
|
212911b815 | ||
|
|
a3232fdb21 | ||
|
|
de8b66d3de | ||
|
|
4a6cb10b8f | ||
|
|
326faa6490 | ||
|
|
574ca93dd4 | ||
|
|
63562e8ff8 | ||
|
|
a176757428 | ||
|
|
f8502efcc1 |
No files matched your search
@@ -30,64 +30,68 @@ jobs:
|
||||
- name: Install dependencies
|
||||
run: composer update --prefer-stable --prefer-dist --no-progress --no-interaction
|
||||
|
||||
- name: Keys actualization
|
||||
- name: Scanning packages
|
||||
id: commit_packages
|
||||
if: success()
|
||||
run: php app/keys.php
|
||||
run: |
|
||||
IS_DIRTY=1
|
||||
|
||||
- name: Commit files after checking keys
|
||||
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
|
||||
if: success()
|
||||
run: php app/referents.php
|
||||
|
||||
- name: Commit files after referents update
|
||||
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
|
||||
if: success()
|
||||
run: php app/excludes.php
|
||||
|
||||
- name: Commit files after 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
|
||||
if: success()
|
||||
run: php app/status.php
|
||||
|
||||
- name: Commit file
|
||||
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_keys.outputs.is_dirty == 1 || steps.referents.outputs.is_dirty == 1 || steps.excludes.outputs.is_dirty == 1 || steps.commit_status.outputs.is_dirty == 1)
|
||||
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 }}
|
||||
@@ -1,7 +1,6 @@
|
||||
# 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">
|
||||
[
|
||||
@@ -12,16 +11,18 @@ In this repository, you can find the lang files for the [Laravel Framework 4/5/6
|
||||
|
||||
## 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) )
|
||||
|
||||
## 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.
|
||||
* [Lang Publisher](https://github.com/andrey-helldar/laravel-lang-publisher) by [*@andrey-helldar*](https://github.com/andrey-helldar) - Easy installation and
|
||||
update of translation files for your project.
|
||||
* [Lang Publisher](https://github.com/andrey-helldar/laravel-lang-publisher) by [*@andrey-helldar*](https://github.com/andrey-helldar) - Easy installation and update of translation files for your project.
|
||||
|
||||
## Credits
|
||||
|
||||
|
||||
@@ -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"
|
||||
@@ -0,0 +1,3 @@
|
||||
requests/
|
||||
|
||||
.env
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
use LaravelLang\Lang\Application;
|
||||
|
||||
$app = Application::make(
|
||||
return Application::make(
|
||||
realpath(__DIR__ . '/../../')
|
||||
);
|
||||
|
||||
return $app;
|
||||
+1
-2
@@ -1,11 +1,10 @@
|
||||
<?php
|
||||
|
||||
use LaravelLang\Lang\Processors\Excludes;
|
||||
use LaravelLang\Lang\Services\Filesystem\Php;
|
||||
|
||||
require __DIR__ . '/../vendor/autoload.php';
|
||||
|
||||
/** @var \LaravelLang\Lang\Application $app */
|
||||
$app = require_once __DIR__ . '/bootstrap/app.php';
|
||||
|
||||
$app->processor(Excludes::make(), Php::make());
|
||||
$app->processor(Excludes::make());
|
||||
+2
-6
@@ -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());
|
||||
+23
-18
@@ -2,20 +2,20 @@
|
||||
|
||||
namespace LaravelLang\Lang;
|
||||
|
||||
use Dotenv\Dotenv;
|
||||
use Helldar\Support\Concerns\Makeable;
|
||||
use LaravelLang\Lang\Contracts\Application as ApplicationContract;
|
||||
use LaravelLang\Lang\Contracts\Filesystem;
|
||||
use LaravelLang\Lang\Contracts\Processable;
|
||||
use LaravelLang\Lang\Facades\Env;
|
||||
|
||||
final class Application implements ApplicationContract
|
||||
{
|
||||
use Makeable;
|
||||
|
||||
protected Filesystem $filesystem;
|
||||
|
||||
public function __construct(
|
||||
protected string $base_path
|
||||
) {
|
||||
$this->createDotenv()->safeLoad();
|
||||
}
|
||||
|
||||
public function basePath(): string
|
||||
@@ -61,22 +61,27 @@ final class Application implements ApplicationContract
|
||||
return null;
|
||||
}
|
||||
|
||||
public function filesystem(Filesystem $filesystem): ApplicationContract
|
||||
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';
|
||||
}
|
||||
}
|
||||
@@ -2,16 +2,38 @@
|
||||
|
||||
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 isPhp(string $filename): bool
|
||||
protected function isMarkdown(string $filename): bool
|
||||
{
|
||||
return ! $this->isJson($filename);
|
||||
return str_ends_with($filename, 'md');
|
||||
}
|
||||
|
||||
protected function isValidation(string $filename): bool
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
@@ -13,6 +13,8 @@ trait Template
|
||||
{
|
||||
$template = $this->getTemplate($filename, $trim);
|
||||
|
||||
$values = array_merge($this->extend ?? [], $values);
|
||||
|
||||
return $this->replace($template, $values, $return_empty);
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
namespace LaravelLang\Lang\Constants;
|
||||
|
||||
final class Locales
|
||||
{
|
||||
public const ENGLISH = 'en';
|
||||
}
|
||||
@@ -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'
|
||||
];
|
||||
}
|
||||
@@ -2,13 +2,15 @@
|
||||
|
||||
namespace LaravelLang\Lang\Constants;
|
||||
|
||||
class Referents
|
||||
final class Referents
|
||||
{
|
||||
public const ar = ['mohamedsabil83', 'Khuthaily'];
|
||||
|
||||
public const da = ['jensstigaard'];
|
||||
|
||||
public const de = ['WhereIsLucas'];
|
||||
public const de = ['WhereIsLucas', 'sotten'];
|
||||
|
||||
public const de_CH = ['sotten'];
|
||||
|
||||
public const es = ['luisprmat'];
|
||||
|
||||
@@ -32,6 +34,8 @@ class Referents
|
||||
|
||||
public const uk = ['MrAlKuz'];
|
||||
|
||||
public const vi = ['dinhquochan'];
|
||||
|
||||
public const zh_CN = ['overtrue'];
|
||||
|
||||
public const zh_HK = ['overtrue'];
|
||||
|
||||
@@ -20,9 +20,5 @@ interface Application
|
||||
|
||||
public function cleanPath(string $path = null): ?string;
|
||||
|
||||
public function filesystem(Filesystem $filesystem): self;
|
||||
|
||||
public function getFilesystem(): Filesystem;
|
||||
|
||||
public function processor(Processable $processor, Filesystem $filesystem): void;
|
||||
public function processor(Processable $processor): void;
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -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 . ' ' . $suffix;
|
||||
$machine = $this->hasMachine() ? ' 🤖' : '';
|
||||
|
||||
return $this->locale . ' ' . $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);
|
||||
}
|
||||
}
|
||||
@@ -5,7 +5,7 @@ namespace LaravelLang\Lang\Processors;
|
||||
use Helldar\Support\Facades\Helpers\Arr;
|
||||
use Helldar\Support\Facades\Helpers\Filesystem\File;
|
||||
|
||||
class Excludes extends Processor
|
||||
final class Excludes extends Processor
|
||||
{
|
||||
protected string $target_path = 'excludes';
|
||||
|
||||
@@ -58,7 +58,7 @@ class Excludes extends Processor
|
||||
|
||||
protected function sourceFiles(): array
|
||||
{
|
||||
return File::names($this->getSourcePath());
|
||||
return File::names($this->getSourcePath(), recursive: true);
|
||||
}
|
||||
|
||||
protected function targetFiles(): array
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
@@ -1,24 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace LaravelLang\Lang\Processors;
|
||||
|
||||
use Helldar\Support\Facades\Helpers\Filesystem\Directory;
|
||||
|
||||
final class Json extends Processor
|
||||
{
|
||||
protected string $target_path = 'locales';
|
||||
|
||||
public function run(): void
|
||||
{
|
||||
foreach ($this->locales() as $locale) {
|
||||
$target_path = $this->getTargetPath($locale . '/' . $locale . '.json');
|
||||
|
||||
$this->process($target_path, 'en.json', $locale);
|
||||
}
|
||||
}
|
||||
|
||||
protected function locales(): array
|
||||
{
|
||||
return Directory::names($this->getTargetPath());
|
||||
}
|
||||
}
|
||||
@@ -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,10 +2,9 @@
|
||||
|
||||
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 = 'locales';
|
||||
|
||||
@@ -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), fn ($filename) => $this->isPhp($filename));
|
||||
}
|
||||
|
||||
protected function locales(): array
|
||||
{
|
||||
return Directory::names($this->getTargetPath());
|
||||
return File::names($this->getTargetPath($locale), recursive: true);
|
||||
}
|
||||
}
|
||||
@@ -4,6 +4,7 @@ namespace LaravelLang\Lang\Processors;
|
||||
|
||||
use Helldar\Support\Concerns\Makeable;
|
||||
use Helldar\Support\Facades\Helpers\Arr;
|
||||
use Helldar\Support\Facades\Helpers\Filesystem\Directory;
|
||||
use Helldar\Support\Tools\Stub;
|
||||
use LaravelLang\Lang\Application;
|
||||
use LaravelLang\Lang\Concerns\Contains;
|
||||
@@ -12,6 +13,7 @@ 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
|
||||
@@ -37,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);
|
||||
@@ -93,6 +95,13 @@ abstract class Processor implements Processable
|
||||
return $this->app->sourcePath($filename);
|
||||
}
|
||||
|
||||
protected function filter(array $first, array $second): array
|
||||
{
|
||||
$keys = array_keys($second);
|
||||
|
||||
return Arr::only($first, $keys);
|
||||
}
|
||||
|
||||
protected function sort(array &$array): void
|
||||
{
|
||||
$array = Arr::ksort($array);
|
||||
@@ -103,6 +112,16 @@ abstract class Processor implements Processable
|
||||
return $this->getFilesystem($path)->load($path);
|
||||
}
|
||||
|
||||
protected function locales(): array
|
||||
{
|
||||
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);
|
||||
@@ -116,7 +135,13 @@ abstract class Processor implements Processable
|
||||
|
||||
protected function getFilesystemClass(string $path): string
|
||||
{
|
||||
return $this->isJson($path) ? JsonFilesystem::class : PhpFilesystem::class;
|
||||
return match (true) {
|
||||
$this->isJson($path) => JsonFilesystem::class,
|
||||
|
||||
$this->isMarkdown($path) => MarkdownFilesystem::class,
|
||||
|
||||
default => PhpFilesystem::class,
|
||||
};
|
||||
}
|
||||
|
||||
protected function loadFilesystem(Filesystem|Base|string $filesystem): Filesystem
|
||||
@@ -128,7 +153,7 @@ abstract class Processor implements Processable
|
||||
{
|
||||
$stub = $this->getStubPath($source_filename);
|
||||
|
||||
$this->app->getFilesystem()->store($path, $content, $is_simple, $stub);
|
||||
$this->getFilesystem($path)->store($path, $content, $is_simple, $stub);
|
||||
}
|
||||
|
||||
protected function getStubPath(?string $filename): ?string
|
||||
|
||||
@@ -10,7 +10,7 @@ use LaravelLang\Lang\Services\Compilers\Referents as Compilator;
|
||||
use ReflectionClass;
|
||||
use ReflectionClassConstant;
|
||||
|
||||
class Referents extends Processor
|
||||
final class Referents extends Processor
|
||||
{
|
||||
use Template;
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
@@ -15,7 +15,7 @@ final class Locales extends Processor
|
||||
{
|
||||
foreach ($this->locales as $locale => $items) {
|
||||
$count = $this->countMissing($locale);
|
||||
$content = $this->compileList($items);
|
||||
$content = $this->compileList($locale, $items);
|
||||
|
||||
$result = $this->compileContent($content, $locale, $count);
|
||||
|
||||
@@ -30,20 +30,19 @@ final class Locales extends Processor
|
||||
return Locale::make($this->app)->items(compact('locale', 'count', 'content'));
|
||||
}
|
||||
|
||||
protected function compileList(array $items): string
|
||||
protected function compileList(string $locale, array $items): string
|
||||
{
|
||||
$content = Collection::make($this->app)->items($items)->toString();
|
||||
$content = Collection::make($this->app)
|
||||
->extend(compact('locale'))
|
||||
->items($items)
|
||||
->toString();
|
||||
|
||||
return $content ?: $this->template(Resource::COMPONENT_ALL_TRANSLATED);
|
||||
}
|
||||
|
||||
protected function ensureDirectory(): void
|
||||
{
|
||||
if (Directory::exists($this->pathStatus())) {
|
||||
Directory::delete($this->pathStatus());
|
||||
}
|
||||
|
||||
Directory::make($this->pathStatus());
|
||||
Directory::ensureDirectory($this->pathStatus(), can_delete: true);
|
||||
}
|
||||
|
||||
protected function pathStatus(string $filename = null): string
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace LaravelLang\Lang\Processors\Statuses;
|
||||
use LaravelLang\Lang\Contracts\Stringable;
|
||||
use LaravelLang\Lang\Services\Compilers\Status;
|
||||
|
||||
class Main extends Processor
|
||||
final class Main extends Processor
|
||||
{
|
||||
protected function saving(): void
|
||||
{
|
||||
@@ -16,6 +16,8 @@ class Main extends Processor
|
||||
|
||||
protected function compileContent(array $items): Stringable
|
||||
{
|
||||
return Status::make($this->app)->items($items);
|
||||
return Status::make($this->app)
|
||||
->extend($this->getCounts())
|
||||
->items($items);
|
||||
}
|
||||
}
|
||||
@@ -6,12 +6,15 @@ 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;
|
||||
|
||||
@@ -35,6 +38,8 @@ abstract class Processor extends BaseProcessor
|
||||
protected function handle(): void
|
||||
{
|
||||
foreach ($this->locales() as $locale) {
|
||||
$this->ensureLocale($locale);
|
||||
|
||||
foreach ($this->files() as $file) {
|
||||
$target_path = $this->getTargetPath($locale . $this->extension);
|
||||
|
||||
@@ -45,30 +50,42 @@ abstract class Processor extends BaseProcessor
|
||||
|
||||
protected function process(string $target_path, string $filename, string $locale = null): void
|
||||
{
|
||||
$corrected = $this->getCorrectedFilename($filename, $locale);
|
||||
$corrected = $this->resolveFilename($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->addCount($source);
|
||||
|
||||
$this->locales[$locale][$key] = $diff;
|
||||
} else {
|
||||
$this->locales[$locale] = [];
|
||||
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)) {
|
||||
@@ -94,18 +111,6 @@ abstract class Processor extends BaseProcessor
|
||||
return $this->app->localePath($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->getLocalePath());
|
||||
@@ -117,32 +122,41 @@ abstract class Processor extends BaseProcessor
|
||||
return $this->source_files;
|
||||
}
|
||||
|
||||
$files = File::names($this->getSourcePath());
|
||||
|
||||
return $this->source_files = Arr::sort($files, function (string $a, string $b) {
|
||||
if ($a === $b) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
if ($this->isJson($a)) {
|
||||
return 1;
|
||||
}
|
||||
$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->getCorrectedFilename($filename, $locale);
|
||||
$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
|
||||
{
|
||||
//
|
||||
|
||||
@@ -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',
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -4,7 +4,7 @@ namespace LaravelLang\Lang\Services\Compilers;
|
||||
|
||||
use LaravelLang\Lang\Constants\Resource;
|
||||
|
||||
class Collection extends Compiler
|
||||
final class Collection extends Compiler
|
||||
{
|
||||
public function toString(): string
|
||||
{
|
||||
@@ -25,7 +25,9 @@ class Collection extends Compiler
|
||||
|
||||
protected function compileLocale(string $content, int $count, string $filename): string
|
||||
{
|
||||
return $this->template(Resource::COMPONENT_LOCALE, compact('count', 'filename', 'content'));
|
||||
$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
|
||||
@@ -41,4 +43,9 @@ class Collection extends Compiler
|
||||
? 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);
|
||||
}
|
||||
}
|
||||
@@ -16,6 +16,8 @@ abstract class Compiler implements Stringable
|
||||
|
||||
protected array $items;
|
||||
|
||||
protected array $extend = [];
|
||||
|
||||
public function __construct(
|
||||
protected Application $app
|
||||
) {
|
||||
@@ -27,4 +29,11 @@ abstract class Compiler implements Stringable
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function extend(array $values): self
|
||||
{
|
||||
$this->extend = $values;
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
@@ -4,7 +4,7 @@ namespace LaravelLang\Lang\Services\Compilers;
|
||||
|
||||
use LaravelLang\Lang\Constants\Resource;
|
||||
|
||||
class Locale extends Compiler
|
||||
final class Locale extends Compiler
|
||||
{
|
||||
public function toString(): string
|
||||
{
|
||||
|
||||
@@ -4,7 +4,7 @@ namespace LaravelLang\Lang\Services\Compilers;
|
||||
|
||||
use LaravelLang\Lang\Constants\Resource;
|
||||
|
||||
class Referents extends Compiler
|
||||
final class Referents extends Compiler
|
||||
{
|
||||
public function toString(): string
|
||||
{
|
||||
|
||||
@@ -6,15 +6,13 @@ use Helldar\Support\Facades\Helpers\Str;
|
||||
use LaravelLang\Lang\Constants\Resource;
|
||||
use LaravelLang\Lang\Models\Locale;
|
||||
|
||||
class Status extends Compiler
|
||||
final class Status extends Compiler
|
||||
{
|
||||
protected int $columns = 8;
|
||||
protected int $columns = 6;
|
||||
|
||||
public function toString(): string
|
||||
{
|
||||
$content = $this->compileContent();
|
||||
|
||||
return $this->template(Resource::STATUS, compact('content'));
|
||||
return $this->template(Resource::STATUS, $this->getContent());
|
||||
}
|
||||
|
||||
protected function grouped(): array
|
||||
@@ -79,6 +77,13 @@ class Status extends Compiler
|
||||
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));
|
||||
|
||||
@@ -4,7 +4,7 @@ namespace LaravelLang\Lang\Services\Compilers;
|
||||
|
||||
use LaravelLang\Lang\Constants\Resource;
|
||||
|
||||
class Table extends Compiler
|
||||
final class Table extends Compiler
|
||||
{
|
||||
protected string $align = 'left';
|
||||
|
||||
|
||||
@@ -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++;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -3,7 +3,7 @@
|
||||
namespace LaravelLang\Lang\Services\Filesystem;
|
||||
|
||||
use Helldar\Support\Concerns\Makeable;
|
||||
use Helldar\Support\Facades\Helpers\Arr;
|
||||
use Helldar\Support\Facades\Helpers\Ables\Arrayable;
|
||||
use LaravelLang\Lang\Application;
|
||||
use LaravelLang\Lang\Concerns\Storable;
|
||||
use LaravelLang\Lang\Contracts\Filesystem;
|
||||
@@ -29,6 +29,11 @@ abstract class Base implements Filesystem
|
||||
|
||||
protected function correctValues(array $items): array
|
||||
{
|
||||
return Arr::map($items, static fn ($value) => str_replace('\"', '"', $value), true);
|
||||
$callback = static fn ($value) => stripslashes($value);
|
||||
|
||||
return Arrayable::of($items)
|
||||
->map($callback, true)
|
||||
->renameKeys($callback)
|
||||
->get();
|
||||
}
|
||||
}
|
||||
@@ -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');
|
||||
}
|
||||
}
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -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));
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
@@ -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());
|
||||
@@ -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());
|
||||
+1
-2
@@ -1,11 +1,10 @@
|
||||
<?php
|
||||
|
||||
use LaravelLang\Lang\Processors\Referents;
|
||||
use LaravelLang\Lang\Services\Filesystem\Markdown;
|
||||
|
||||
require __DIR__ . '/../vendor/autoload.php';
|
||||
|
||||
/** @var \LaravelLang\Lang\Application $app */
|
||||
$app = require_once __DIR__ . '/bootstrap/app.php';
|
||||
|
||||
$app->processor(Referents::make(), Markdown::make());
|
||||
$app->processor(Referents::make());
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
### {{filename}}
|
||||
### [{{basename}}](https://github.com/Laravel-Lang/lang/blob/master/locales/{{locale}}/{{filename}})
|
||||
|
||||
##### Missing: {{count}}
|
||||
|
||||
|
||||
@@ -2,4 +2,6 @@
|
||||
|
||||
# Completion status
|
||||
|
||||
> Translation of localizations is completed by **{{count_diff_percents}}%** ({{count_diff}} / {{count_all}}).
|
||||
|
||||
{{content}}
|
||||
@@ -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());
|
||||
+2
-3
@@ -2,12 +2,11 @@
|
||||
|
||||
use LaravelLang\Lang\Processors\Statuses\Locales;
|
||||
use LaravelLang\Lang\Processors\Statuses\Main;
|
||||
use LaravelLang\Lang\Services\Filesystem\Markdown;
|
||||
|
||||
require __DIR__ . '/../vendor/autoload.php';
|
||||
|
||||
/** @var \LaravelLang\Lang\Application $app */
|
||||
$app = require_once __DIR__ . '/bootstrap/app.php';
|
||||
|
||||
$app->processor(Main::make(), Markdown::make());
|
||||
$app->processor(Locales::make(), Markdown::make());
|
||||
$app->processor(Main::make());
|
||||
$app->processor(Locales::make());
|
||||
+19
-12
@@ -3,32 +3,39 @@
|
||||
namespace Tests;
|
||||
|
||||
use Helldar\PrettyArray\Services\File as Pretty;
|
||||
use Helldar\Support\Facades\Helpers\Filesystem\Directory;
|
||||
|
||||
final class JsonTest extends TestCase
|
||||
{
|
||||
public function testJson(): void
|
||||
{
|
||||
$source = $this->source('en.json');
|
||||
foreach ($this->files('.json') as $filename) {
|
||||
$resolved = $this->resolveFilename($filename);
|
||||
|
||||
foreach ($this->files() as $locale) {
|
||||
$path = $this->target_path . '/' . $locale . '/' . $locale . '.json';
|
||||
$source = $this->source($resolved);
|
||||
|
||||
$target = $this->load($path);
|
||||
foreach ($this->locales() as $locale) {
|
||||
$filename = $this->resolveFilename($filename, $locale);
|
||||
|
||||
$this->assertSame(array_keys($source), array_keys($target), $this->messageForPath($path));
|
||||
$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 Directory::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;
|
||||
}
|
||||
}
|
||||
+5
-15
@@ -3,14 +3,12 @@
|
||||
namespace Tests;
|
||||
|
||||
use Helldar\PrettyArray\Services\File as Pretty;
|
||||
use Helldar\Support\Facades\Helpers\Filesystem\Directory;
|
||||
use Helldar\Support\Facades\Helpers\Filesystem\File;
|
||||
|
||||
final class PhpTest extends TestCase
|
||||
{
|
||||
public function testPhp(): void
|
||||
{
|
||||
foreach ($this->files() as $filename) {
|
||||
foreach ($this->files('.php') as $filename) {
|
||||
$source = $this->source($filename);
|
||||
|
||||
foreach ($this->locales() as $locale) {
|
||||
@@ -21,24 +19,16 @@ final class PhpTest extends TestCase
|
||||
$this->assertSame(array_keys($source), array_keys($target), $this->messageForLocale($path, $locale));
|
||||
|
||||
if ($this->isInline($filename)) {
|
||||
$this->assertDoesntSee($path, ':attribute');
|
||||
$this->assertDoesntSee($path, [':attribute', ':Attribute']);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected function files(): array
|
||||
{
|
||||
return File::names($this->source_path, static fn ($filename) => str_ends_with($filename, '.php'));
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
+55
-10
@@ -3,7 +3,12 @@
|
||||
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;
|
||||
|
||||
@@ -23,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);
|
||||
@@ -43,14 +48,18 @@ abstract class TestCase extends BaseTestCase
|
||||
);
|
||||
}
|
||||
|
||||
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),
|
||||
$this->messageAssertDoesntSee($path, $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
|
||||
@@ -58,6 +67,16 @@ 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_starts_with($filename, 'validation');
|
||||
@@ -67,4 +86,30 @@ abstract class TestCase extends BaseTestCase
|
||||
{
|
||||
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();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
use LaravelLang\Lang\Processors\Statuses\Translator;
|
||||
|
||||
require __DIR__ . '/../vendor/autoload.php';
|
||||
|
||||
/** @var \LaravelLang\Lang\Application $app */
|
||||
$app = require_once __DIR__ . '/bootstrap/app.php';
|
||||
|
||||
$app->processor(Translator::make());
|
||||
+11
-3
@@ -24,15 +24,23 @@
|
||||
"require-dev": {
|
||||
"php": "^8.0",
|
||||
"andrey-helldar/pretty-array": "^2.3",
|
||||
"andrey-helldar/support": "^3.4",
|
||||
"andrey-helldar/support": "^3.16.1",
|
||||
"guzzlehttp/guzzle": "^7.3",
|
||||
"laravel/fortify": "^1.7",
|
||||
"laravel/jetstream": "^2.3",
|
||||
"phpunit/phpunit": "^9.5",
|
||||
"symfony/var-dumper": "^5.2"
|
||||
"symfony/finder": "^5.2",
|
||||
"symfony/var-dumper": "^5.2",
|
||||
"vlucas/phpdotenv": "^5.3"
|
||||
},
|
||||
"autoload-dev": {
|
||||
"psr-4": {
|
||||
"LaravelLang\\Lang\\": "app/main",
|
||||
"Tests\\": "app/tests"
|
||||
}
|
||||
},
|
||||
"files": [
|
||||
"app/main/helpers.php"
|
||||
]
|
||||
},
|
||||
"config": {
|
||||
"preferred-install": "dist",
|
||||
|
||||
+236
-57
@@ -7,6 +7,180 @@ All notable changes to this project will be documented in this file, since v7.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).
|
||||
|
||||
## [10.0.2] - 2021-05-30
|
||||
|
||||
### Changed
|
||||
|
||||
* feature: [de] #1759 cashier jetstream nova spark-paddle spark-stripe
|
||||
* feature: [es] #1760 nova
|
||||
* feature: [pt_BR] #1767 #1769 #1771 exclude cashier jetstream nova spark-paddle spark-stripe validation-inline
|
||||
* feature: [tr] #1766 #1768 #1770 exclude auth jetstream nova spark-paddle spark-stripe json file
|
||||
|
||||
## [10.0.1] - 2021-05-24
|
||||
|
||||
### Changed
|
||||
|
||||
* feature: [ar] #1757 jetstream spark-paddle spark-stripe
|
||||
* feature: [es] #1753 jetstream spark-paddle spark-stripe
|
||||
* feature: [fi] #1758 exclude auth.php cashier fortify jetstream nova spark-paddle spark-stripe validation-inline.php validation.php json file
|
||||
* feature: [fr] cashier jetstream nova spark-paddle spark-stripe
|
||||
* feature: [ru] #1751 cashier jetstream spark-paddle spark-stripe
|
||||
* feature: [vi] #1756 cashier jetstream spark-paddle
|
||||
* feature: [zh_TW] #1754 validation-inline.php json file
|
||||
|
||||
### Todo script
|
||||
|
||||
* fix: #1751
|
||||
* feature: #1752 Added dock block to structure splitter file
|
||||
|
||||
## [10.0.0] - 2021-05-20
|
||||
|
||||
### Changed
|
||||
|
||||
* feature: [de] #1750 json file
|
||||
* feature: [nb] #1747 auth.php pagination.php passwords.php validation-inline.php validation.php json file
|
||||
|
||||
### Reference
|
||||
|
||||
* feature: #1748 Split translation keys into Laravel packages
|
||||
|
||||
## [9.1.2] - 2021-05-14
|
||||
|
||||
### Changed
|
||||
|
||||
* feature: [bn] #1739 #1741 auth.php json file
|
||||
* feature: [de] #1737 json file
|
||||
* feature: [it] #1745 json file
|
||||
* feature: [nb] #1743 #1744 json file
|
||||
* feature: [nl] #1733 json file
|
||||
* feature: [pt_BR] #1746 json file
|
||||
* feature: [vi] #1749 json file
|
||||
|
||||
### Todo Script
|
||||
|
||||
* feature: #1738 Added comparison of sub-elements of arrays
|
||||
|
||||
## [9.1.1] - 2021-05-02
|
||||
|
||||
### Changed
|
||||
|
||||
* feature: [af] json file
|
||||
* feature: [ar] #1730 #1732 json file
|
||||
* feature: [es] #1718 #1727 #1731 json file
|
||||
* feature: [fr] json file
|
||||
* feature: [id] #1722 json file
|
||||
* feature: [it] #1729 json file
|
||||
* feature: [ja] #1736 auth.php pagination.php passwords.php validation-inline.php json exclude files
|
||||
* feature: [ms] #1720 validation.php validation-inline.php
|
||||
* feature: [pt] exclude file
|
||||
* feature: [pt_BR] #1726 json exclude files
|
||||
* feature: [ru] #1721 #1725 json file
|
||||
* feature: [vi] #1723 json file
|
||||
|
||||
### Reference
|
||||
|
||||
* feature: [en] #1715 Start of add of Laravel Spark tags
|
||||
* feature: [en] #1717 Add translations for new Password Validation Rule
|
||||
|
||||
### Todo Script
|
||||
|
||||
* feature: #1724 Reduced the number of displayed columns
|
||||
|
||||
## [9.1.0] - 2021-04-24
|
||||
|
||||
### Changed
|
||||
|
||||
* feature: [az] #1627 passwords.php validation.php validation-inline.php json file
|
||||
* feature: [be] #1628 passwords.php validation.php validation-inline.php json file
|
||||
* feature: [bg] #1669 #1712 validation.php validation-inline.php json file
|
||||
* feature: [bn] #1670 passwords.php validation.php validation-inline.php json file
|
||||
* feature: [bs] #1671 validation.php validation-inline.php json file
|
||||
* feature: [ca] #1672 validation.php validation-inline.php json file
|
||||
* feature: [cs] #1673 validation.php validation-inline.php json file
|
||||
* feature: [cy] #1674 passwords.php validation.php validation-inline.php json file
|
||||
* feature: [da] #1675 validation.php validation-inline.php json file
|
||||
* feature: [de] #1708 #1710 validation.php validation-inline.php
|
||||
* feature: [de_CH] #1709 validation.php validation-inline.php
|
||||
* feature: [et] #1679 passwords.php validation.php validation-inline.php json file
|
||||
* feature: [eu] #1680 passwords.php validation.php validation-inline.php json file
|
||||
* feature: [fi] #1682 validation.php validation-inline.php json file
|
||||
* feature: [fr] #1711 json file
|
||||
* feature: [gl] #1683 passwords.php validation.php validation-inline.php json file
|
||||
* feature: [he] #1684 validation.php validation-inline.php json file
|
||||
* feature: [hi] #1685 passwords.php validation.php validation-inline.php json file
|
||||
* feature: [hu] #1687 validation.php validation-inline.php json file
|
||||
* feature: [is] #1690 passwords.php validation.php validation-inline.php json file
|
||||
* feature: [ja] #1631 validation.php validation-inline.php json file
|
||||
* feature: [ka] #1632 validation.php validation-inline.php json file
|
||||
* feature: [kk] #1633 passwords.php validation.php validation-inline.php json file
|
||||
* feature: [kn] #1635 passwords.php validation.php validation-inline.php json file
|
||||
* feature: [lv] #1638 passwords.php validation.php validation-inline.php json file
|
||||
* feature: [mn] #1640 passwords.php validation.php validation-inline.php json file
|
||||
* feature: [mr] #1641 passwords.php validation.php validation-inline.php json file
|
||||
* feature: [ms] #1642 validation.php validation-inline.php json file
|
||||
* feature: [nl] #1644 json file exclude
|
||||
* feature: [sk] #1650 validation.php validation-inline.php json file
|
||||
* feature: [sl] #1651 validation.php validation-inline.php json file
|
||||
* feature: [sq] #1652 validation.php validation-inline.php json file
|
||||
* feature: [sr_Cyrl] #1654 validation.php validation-inline.php json file
|
||||
* feature: [sr_Latn] #1653 validation.php validation-inline.php json file
|
||||
* feature: [sr_Latn_ME] #1655 validation.php validation-inline.php json file
|
||||
* feature: [sw] #1657 passwords.php validation.php validation-inline.php json file
|
||||
* feature: [tg] #1658 passwords.php validation.php validation-inline.php json file
|
||||
* feature: [th] #1659 passwords.php validation.php validation-inline.php json file
|
||||
* feature: [tl] #1660 passwords.php validation.php validation-inline.php json file
|
||||
* feature: [uk] #1662 validation.php validation-inline.php json file
|
||||
* feature: [ur] #1663 passwords.php validation.php validation-inline.php json file
|
||||
* feature: [uz_Cyrl] #1664 validation.php validation-inline.php json file
|
||||
* feature: [uz_Latn] #1665 validation.php validation-inline.php json file
|
||||
|
||||
### Todo script
|
||||
|
||||
* feature: #1713 Added the ability to flag machine translation
|
||||
|
||||
## [9.0.1] - 2021-04-21
|
||||
|
||||
### Changed
|
||||
|
||||
* feature: [af] #1626 validation.php validation-inline.php json file
|
||||
* feature: [az] #1694 validation.php
|
||||
* feature: [de] #1622 #1623 validation.php validation-inline.php json file
|
||||
* feature: [de] #1696 #1700 #1705 validation.php validation-inline.php json file
|
||||
* feature: [de_CH] #1695 #1703 #1704 validation.php validation-inline.php json file
|
||||
* feature: [el] #1678 validation.php validation-inline.php json file
|
||||
* feature: [fa] #1693 json file
|
||||
* feature: [hr] #1686 validation.php validation-inline.php json file
|
||||
* feature: [hy] #1688 #1699 json file
|
||||
* feature: [id] #1616 #1621 #1689 validation.php validation-inline.php json file
|
||||
* feature: [km] #1634 #1698 validation.php validation-inline.php json file
|
||||
* feature: [ko] #1608 #1636 validation.php validation-inline.php json file
|
||||
* feature: [lt] #1637 validation.php validation-inline.php json file
|
||||
* feature: [mk] #1639 validation.php validation-inline.php json file
|
||||
* feature: [ne] #1643 validation.php validation-inline.php json file
|
||||
* feature: [pl] #1645 validation.php validation-inline.php json file
|
||||
* feature: [pt] #1646 validation.php validation-inline.php json file
|
||||
* feature: [pt_BR] #1647 validation.php validation-inline.php json file
|
||||
* feature: [ro] #1648 validation.php validation-inline.php json file
|
||||
* feature: [si] #1649 validation.php validation-inline.php json file
|
||||
* feature: [sv] #1656 validation.php validation-inline.php json file
|
||||
* feature: [tr] #1697 validation.php validation-inline.php json file
|
||||
* feature: [vi] #1617 #1624 validation.php validation-inline.php json file
|
||||
* feature: [zh_CN] #1666 validation.php validation-inline.php json file
|
||||
* feature: [zh_HK] #1667 validation.php validation-inline.php json file
|
||||
* feature: [zh_TW] #1668 validation.php validation-inline.php json file
|
||||
|
||||
### Documentation
|
||||
|
||||
* feature: #1618 readme
|
||||
|
||||
### Todo script
|
||||
|
||||
* feature: #1619 Added check for ":Attribute" when running tests
|
||||
* feature: #1620 Adding a percentage of translations
|
||||
* feature: #1625 Added processors for translating localizations
|
||||
* feature: #1629 Removed duplicate call line
|
||||
* feature: #1691 Added a script for creating commits separated by localizations
|
||||
|
||||
## [9.0.0] - 2021-04-14
|
||||
|
||||
New structure of files:
|
||||
@@ -183,18 +357,18 @@ For more information, see #1606 and #1607.
|
||||
|
||||
### 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
|
||||
* feature: [ar] #1390 #1398 json file
|
||||
* feature: [de] #1412 json file
|
||||
* feature: [el] #1385 json file
|
||||
* feature: [en] #1393 #1394 add tags
|
||||
* feature: [es] #1394 json file
|
||||
* feature: [fr] #1383 #1411 json file
|
||||
* feature: [it] #1402 #1413 validation-inline.php auth.php passwords.php json file
|
||||
* feature: [lt] #1400 json file
|
||||
* feature: [ms] #1387 #1388 #1392 validation.php validation-inline.php passwords.php
|
||||
* feature: [pl] #1395 json file
|
||||
* feature: [pt] #1404 json file
|
||||
* feature: [ru] #1393 #1397 json file
|
||||
|
||||
### Documentation
|
||||
|
||||
@@ -213,11 +387,11 @@ For more information, see #1606 and #1607.
|
||||
|
||||
### 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
|
||||
* feature: [hr] #1379 passwords.php
|
||||
* feature: [id] #1381 json file
|
||||
* feature: [ms] #1380 validation.php
|
||||
* feature: [pt_BR] #1375 json file
|
||||
* feature: [tr] #1382 json file
|
||||
|
||||
### Todo script
|
||||
|
||||
@@ -227,74 +401,72 @@ For more information, see #1606 and #1607.
|
||||
|
||||
### 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: [ar] #1339 #1369 json file
|
||||
* feature: [de] #1370 json file
|
||||
* feature: [en] #1361 #1368 json file
|
||||
* feature: [es] #1361 #1371 json file
|
||||
* feature: [fr] json file
|
||||
* feature: [pl] #1360 #1367 #1373 json file
|
||||
* feature: [pt] #1358 #1374 json file
|
||||
* feature: [ru] #1356 #1362 #1368 json file
|
||||
* feature: [sr_*] #1363 json file
|
||||
* feature: [uz_*] #1352 validation auth password
|
||||
|
||||
## [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
|
||||
* feature: [en] #1341 #1346 json files
|
||||
* feature: [es] #1341 json files
|
||||
* feature: [hu] #1332 validation.php
|
||||
* feature: [it] #1345 json files
|
||||
* feature: [nl] #1330 #1331 json file validation-inline.php
|
||||
* feature: [pl] #1351 json files
|
||||
* feature: [pt] #1342 json files
|
||||
* feature: [ru] #1346 json files
|
||||
* feature: [tr] #1327 #1328 validation.php
|
||||
|
||||
## [7.0.4] - 2020-09-11
|
||||
|
||||
### Changed
|
||||
|
||||
* feature: [es] #1317 json file
|
||||
* feature: [fa] #1318 validation.password
|
||||
* feature: [id] #1323 #1324 json and validation-inline
|
||||
* feature: [ko] #1326 validation-inline
|
||||
* feature: [lt] #1320 validation-inline and validation
|
||||
* feature: [sr_*] #1316 validation-inline file
|
||||
* 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
|
||||
* feature: [da] #1310 passwords.throttlled
|
||||
* feature: [es] #1312 validation and validation-inline
|
||||
* feature: [ne] #1302 #1306 #1307 Translated to Nepali Language (Validation-inline and json)
|
||||
* feature: [sq] #1313 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
|
||||
* feature: [da] #1293 Add json
|
||||
* feature: [es] #1292 Update json
|
||||
* feature: [pl] #1290 Translate validation-inline; tweak some validation translations
|
||||
* feature: [pt] #1295 Update json, validation-inline, validation and passwords
|
||||
* feature: [pt_BR] #1291 Update validation-inline
|
||||
* feature: [si] #1298 Update passwords
|
||||
* feature: [sq] #1297 Update auth, passwords and validation
|
||||
* feature: [uk] #1300 #1301 validation-inline json file
|
||||
* feature: [zh_*] #1299 Update json and validation-inline
|
||||
|
||||
## [7.0.1] - 2020-07-14
|
||||
|
||||
@@ -312,7 +484,14 @@ For more information, see #1606 and #1607.
|
||||
|
||||
* feature: #1269 Rename locale folders following ISO 15897 format
|
||||
|
||||
[Unreleased]: https://github.com/caouecs/Laravel-lang/compare/9.0.0...master
|
||||
[Unreleased]: https://github.com/caouecs/Laravel-lang/compare/10.0.2...master
|
||||
[10.0.2]: https://github.com/caouecs/Laravel-lang/compare/10.0.1...10.0.2
|
||||
[10.0.1]: https://github.com/caouecs/Laravel-lang/compare/10.0.0...10.0.1
|
||||
[10.0.0]: https://github.com/caouecs/Laravel-lang/compare/9.1.2...10.0.0
|
||||
[9.1.2]: https://github.com/caouecs/Laravel-lang/compare/9.1.1...9.1.2
|
||||
[9.1.1]: https://github.com/caouecs/Laravel-lang/compare/9.1.0...9.1.1
|
||||
[9.1.0]: https://github.com/caouecs/Laravel-lang/compare/9.0.1...9.1.0
|
||||
[9.0.1]: https://github.com/caouecs/Laravel-lang/compare/9.0.0...9.0.1
|
||||
[9.0.0]: https://github.com/caouecs/Laravel-lang/compare/8.1.3...9.0.0
|
||||
[8.1.3]: https://github.com/caouecs/Laravel-lang/compare/8.1.2...8.1.3
|
||||
[8.1.2]: https://github.com/caouecs/Laravel-lang/compare/8.1.1...8.1.2
|
||||
|
||||
@@ -18,6 +18,12 @@ We accept contributions via Pull Requests on [Github](https://github.com/Laravel
|
||||
* `passwords.php`
|
||||
* `validation.php`
|
||||
* `validation-inline.php`
|
||||
* `packages/cashier.json`
|
||||
* `packages/fortify.json`
|
||||
* `packages/jetstream.json`
|
||||
* `packages/nova.json`
|
||||
* `packages/spark-paddle.json`
|
||||
* `packages/spark-stripe.json`
|
||||
* Rename json file according to localization (ex: `fr` for `locales/fr/fr.json`, `de` for `locales/de/de.json`, etc)
|
||||
* keep in mind that the `validation-inline.php` file does not come with Laravel and the idea of this file is not to put a specific name to each attribute (as
|
||||
in `validation.php`) but a generic name for the validation attributes. Therefore in the translations of this file the placeholder `:attribute` **should not**
|
||||
|
||||
+1
-2
@@ -2,8 +2,7 @@
|
||||
|
||||
# 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).
|
||||
|
||||
## Translation status
|
||||
|
||||
|
||||
@@ -92,6 +92,8 @@ de
|
||||
<td align="left" >
|
||||
|
||||
[@WhereIsLucas](https://github.com/WhereIsLucas)
|
||||
,
|
||||
[@sotten](https://github.com/sotten)
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
@@ -100,6 +102,8 @@ de_CH
|
||||
</td>
|
||||
<td align="left" >
|
||||
|
||||
[@sotten](https://github.com/sotten)
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
@@ -551,6 +555,8 @@ vi
|
||||
</td>
|
||||
<td align="left" >
|
||||
|
||||
[@dinhquochan](https://github.com/dinhquochan)
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
|
||||
+145
-146
@@ -2,408 +2,407 @@
|
||||
|
||||
# Completion status
|
||||
|
||||
> Translation of localizations is completed by **78%** (71.4K / 92K).
|
||||
|
||||
<table width="100%">
|
||||
<tr><td align="center" width="13%">
|
||||
<tr><td align="center" width="17%">
|
||||
|
||||
[af ❗](statuses/af.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
<td align="center" width="17%">
|
||||
|
||||
[ar ✔](statuses/ar.md)
|
||||
[ar ❗](statuses/ar.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
<td align="center" width="17%">
|
||||
|
||||
[az ❗](statuses/az.md)
|
||||
[az ❗ 🤖](statuses/az.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
<td align="center" width="17%">
|
||||
|
||||
[be ❗](statuses/be.md)
|
||||
[be ❗ 🤖](statuses/be.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
<td align="center" width="17%">
|
||||
|
||||
[bg ❗](statuses/bg.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
<td align="center" width="17%">
|
||||
|
||||
[bn ❗](statuses/bn.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
|
||||
[bs ❗](statuses/bs.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
|
||||
[ca ❗](statuses/ca.md)
|
||||
[bn ❗ 🤖](statuses/bn.md)
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="center" width="13%">
|
||||
<tr><td align="center" width="17%">
|
||||
|
||||
[cs ❗](statuses/cs.md)
|
||||
[bs ❗ 🤖](statuses/bs.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
<td align="center" width="17%">
|
||||
|
||||
[cy ❗](statuses/cy.md)
|
||||
[ca ❗ 🤖](statuses/ca.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
<td align="center" width="17%">
|
||||
|
||||
[da ❗](statuses/da.md)
|
||||
[cs ❗ 🤖](statuses/cs.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
<td align="center" width="17%">
|
||||
|
||||
[de ❗](statuses/de.md)
|
||||
[cy ❗ 🤖](statuses/cy.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
<td align="center" width="17%">
|
||||
|
||||
[da ❗ 🤖](statuses/da.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="17%">
|
||||
|
||||
[de ✔](statuses/de.md)
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="center" width="17%">
|
||||
|
||||
[de_CH ❗](statuses/de-ch.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
<td align="center" width="17%">
|
||||
|
||||
[el ❗](statuses/el.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
<td align="center" width="17%">
|
||||
|
||||
[es ✔](statuses/es.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
<td align="center" width="17%">
|
||||
|
||||
[et ❗](statuses/et.md)
|
||||
[et ❗ 🤖](statuses/et.md)
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="center" width="13%">
|
||||
<td align="center" width="17%">
|
||||
|
||||
[eu ❗](statuses/eu.md)
|
||||
[eu ❗ 🤖](statuses/eu.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
<td align="center" width="17%">
|
||||
|
||||
[fa ❗](statuses/fa.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
</tr>
|
||||
<tr><td align="center" width="17%">
|
||||
|
||||
[fi ❗](statuses/fi.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
<td align="center" width="17%">
|
||||
|
||||
[fil ❗](statuses/fil.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
<td align="center" width="17%">
|
||||
|
||||
[fr ✔](statuses/fr.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
<td align="center" width="17%">
|
||||
|
||||
[gl ❗](statuses/gl.md)
|
||||
[gl ❗ 🤖](statuses/gl.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
<td align="center" width="17%">
|
||||
|
||||
[he ❗](statuses/he.md)
|
||||
[he ❗ 🤖](statuses/he.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
<td align="center" width="17%">
|
||||
|
||||
[hi ❗](statuses/hi.md)
|
||||
[hi ❗ 🤖](statuses/hi.md)
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="center" width="13%">
|
||||
<tr><td align="center" width="17%">
|
||||
|
||||
[hr ❗](statuses/hr.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
<td align="center" width="17%">
|
||||
|
||||
[hu ❗](statuses/hu.md)
|
||||
[hu ❗ 🤖](statuses/hu.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
<td align="center" width="17%">
|
||||
|
||||
[hy ❗](statuses/hy.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
<td align="center" width="17%">
|
||||
|
||||
[id ❗](statuses/id.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
<td align="center" width="17%">
|
||||
|
||||
[is ❗](statuses/is.md)
|
||||
[is ❗ 🤖](statuses/is.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
<td align="center" width="17%">
|
||||
|
||||
[it ✔](statuses/it.md)
|
||||
[it ❗](statuses/it.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
</tr>
|
||||
<tr><td align="center" width="17%">
|
||||
|
||||
[ja ❗](statuses/ja.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
<td align="center" width="17%">
|
||||
|
||||
[ka ❗](statuses/ka.md)
|
||||
[ka ❗ 🤖](statuses/ka.md)
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="center" width="13%">
|
||||
<td align="center" width="17%">
|
||||
|
||||
[kk ❗](statuses/kk.md)
|
||||
[kk ❗ 🤖](statuses/kk.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
<td align="center" width="17%">
|
||||
|
||||
[km ❗](statuses/km.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
<td align="center" width="17%">
|
||||
|
||||
[kn ❗](statuses/kn.md)
|
||||
[kn ❗ 🤖](statuses/kn.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
<td align="center" width="17%">
|
||||
|
||||
[ko ❗](statuses/ko.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
</tr>
|
||||
<tr><td align="center" width="17%">
|
||||
|
||||
[lt ❗](statuses/lt.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
<td align="center" width="17%">
|
||||
|
||||
[lv ❗](statuses/lv.md)
|
||||
[lv ❗ 🤖](statuses/lv.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
<td align="center" width="17%">
|
||||
|
||||
[mk ❗](statuses/mk.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
<td align="center" width="17%">
|
||||
|
||||
[mn ❗](statuses/mn.md)
|
||||
[mn ❗ 🤖](statuses/mn.md)
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="center" width="13%">
|
||||
<td align="center" width="17%">
|
||||
|
||||
[mr ❗](statuses/mr.md)
|
||||
[mr ❗ 🤖](statuses/mr.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
<td align="center" width="17%">
|
||||
|
||||
[ms ❗](statuses/ms.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
</tr>
|
||||
<tr><td align="center" width="17%">
|
||||
|
||||
[nb ❗](statuses/nb.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
<td align="center" width="17%">
|
||||
|
||||
[ne ❗](statuses/ne.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
<td align="center" width="17%">
|
||||
|
||||
[nl ❗](statuses/nl.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
<td align="center" width="17%">
|
||||
|
||||
[nn ❗](statuses/nn.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
<td align="center" width="17%">
|
||||
|
||||
[oc ❗](statuses/oc.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
<td align="center" width="17%">
|
||||
|
||||
[pl ❗](statuses/pl.md)
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="center" width="13%">
|
||||
<tr><td align="center" width="17%">
|
||||
|
||||
[ps ❗](statuses/ps.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
<td align="center" width="17%">
|
||||
|
||||
[pt ❗](statuses/pt.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
<td align="center" width="17%">
|
||||
|
||||
[pt_BR ❗](statuses/pt-br.md)
|
||||
[pt_BR ✔](statuses/pt-br.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
<td align="center" width="17%">
|
||||
|
||||
[ro ❗](statuses/ro.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
<td align="center" width="17%">
|
||||
|
||||
[ru ✔](statuses/ru.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
<td align="center" width="17%">
|
||||
|
||||
[sc ❗](statuses/sc.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
</tr>
|
||||
<tr><td align="center" width="17%">
|
||||
|
||||
[si ❗](statuses/si.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
<td align="center" width="17%">
|
||||
|
||||
[sk ❗](statuses/sk.md)
|
||||
[sk ❗ 🤖](statuses/sk.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="17%">
|
||||
|
||||
[sl ❗ 🤖](statuses/sl.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="17%">
|
||||
|
||||
[sq ❗ 🤖](statuses/sq.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="17%">
|
||||
|
||||
[sr_Cyrl ❗ 🤖](statuses/sr-cyrl.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="17%">
|
||||
|
||||
[sr_Latn ❗ 🤖](statuses/sr-latn.md)
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="center" width="13%">
|
||||
<tr><td align="center" width="17%">
|
||||
|
||||
[sl ❗](statuses/sl.md)
|
||||
[sr_Latn_ME ❗ 🤖](statuses/sr-latn-me.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
|
||||
[sq ❗](statuses/sq.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
|
||||
[sr_Cyrl ❗](statuses/sr-cyrl.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
|
||||
[sr_Latn ❗](statuses/sr-latn.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
|
||||
[sr_Latn_ME ❗](statuses/sr-latn-me.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
<td align="center" width="17%">
|
||||
|
||||
[sv ❗](statuses/sv.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
<td align="center" width="17%">
|
||||
|
||||
[sw ❗](statuses/sw.md)
|
||||
[sw ❗ 🤖](statuses/sw.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
<td align="center" width="17%">
|
||||
|
||||
[tg ❗](statuses/tg.md)
|
||||
[tg ❗ 🤖](statuses/tg.md)
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="center" width="13%">
|
||||
<td align="center" width="17%">
|
||||
|
||||
[th ❗](statuses/th.md)
|
||||
[th ❗ 🤖](statuses/th.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
<td align="center" width="17%">
|
||||
|
||||
[tk ❗](statuses/tk.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
</tr>
|
||||
<tr><td align="center" width="17%">
|
||||
|
||||
[tl ❗](statuses/tl.md)
|
||||
[tl ❗ 🤖](statuses/tl.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
<td align="center" width="17%">
|
||||
|
||||
[tr ❗](statuses/tr.md)
|
||||
[tr ✔](statuses/tr.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
<td align="center" width="17%">
|
||||
|
||||
[ug ❗](statuses/ug.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
<td align="center" width="17%">
|
||||
|
||||
[uk ❗](statuses/uk.md)
|
||||
[uk ❗ 🤖](statuses/uk.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
<td align="center" width="17%">
|
||||
|
||||
[ur ❗](statuses/ur.md)
|
||||
[ur ❗ 🤖](statuses/ur.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
<td align="center" width="17%">
|
||||
|
||||
[uz_Cyrl ❗](statuses/uz-cyrl.md)
|
||||
[uz_Cyrl ❗ 🤖](statuses/uz-cyrl.md)
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="center" width="13%">
|
||||
<tr><td align="center" width="17%">
|
||||
|
||||
[uz_Latn ❗](statuses/uz-latn.md)
|
||||
[uz_Latn ❗ 🤖](statuses/uz-latn.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
<td align="center" width="17%">
|
||||
|
||||
[vi ❗](statuses/vi.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
<td align="center" width="17%">
|
||||
|
||||
[zh_CN ❗](statuses/zh-cn.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
<td align="center" width="17%">
|
||||
|
||||
[zh_HK ❗](statuses/zh-hk.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
<td align="center" width="17%">
|
||||
|
||||
[zh_TW ❗](statuses/zh-tw.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
<td align="center" width="17%">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
+454
-1762
File diff suppressed because it is too large.
Load diff
+16
-2
@@ -2,7 +2,21 @@
|
||||
|
||||
# ar
|
||||
|
||||
##### All missed: 0
|
||||
##### All missed: 1
|
||||
|
||||
All lines are translated 😊
|
||||
|
||||
### [nova](https://github.com/Laravel-Lang/lang/blob/master/locales/ar/packages/nova.json)
|
||||
|
||||
##### Missing: 1
|
||||
|
||||
<table >
|
||||
<tr><td align="left" >
|
||||
Standalone Actions
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
|
||||
[ [go back](../status.md) | [to top](#) ]
|
||||
|
||||
+1016
-2644
File diff suppressed because it is too large.
Load diff
+771
-2877
File diff suppressed because it is too large.
Load diff
+773
-2879
File diff suppressed because it is too large.
Load diff
+784
-2882
File diff suppressed because it is too large.
Load diff
+632
-2742
File diff suppressed because it is too large.
Load diff
+1068
-2377
File diff suppressed because it is too large.
Load diff
+985
-2474
File diff suppressed because it is too large.
Load diff
+854
-2967
File diff suppressed because it is too large.
Load diff
+1200
-2192
File diff suppressed because it is too large.
Load diff
+572
-2323
File diff suppressed because it is too large.
Load diff
+2
-1796
File diff suppressed because it is too large.
Load diff
+391
-2263
File diff suppressed because it is too large.
Load diff
+767
-2898
File diff suppressed because it is too large.
Load diff
+767
-2757
File diff suppressed because it is too large.
Load diff
+1586
-288
File diff suppressed because it is too large.
Load diff
+54
-2904
File diff suppressed because it is too large.
Load diff
+2568
-794
File diff suppressed because it is too large.
Load diff
+1131
-2366
File diff suppressed because it is too large.
Load diff
+773
-2710
File diff suppressed because it is too large.
Load diff
+829
-2865
File diff suppressed because it is too large.
Load diff
+761
-2386
File diff suppressed because it is too large.
Load diff
+875
-2295
File diff suppressed because it is too large.
Load diff
+607
-2261
File diff suppressed because it is too large.
Load diff
+536
-2274
File diff suppressed because it is too large.
Load diff
+731
-2848
File diff suppressed because it is too large.
Load diff
+136
-2
@@ -2,7 +2,141 @@
|
||||
|
||||
# it
|
||||
|
||||
##### All missed: 0
|
||||
##### All missed: 20
|
||||
|
||||
All lines are translated 😊
|
||||
|
||||
### [cashier](https://github.com/Laravel-Lang/lang/blob/master/locales/it/packages/cashier.json)
|
||||
|
||||
##### Missing: 1
|
||||
|
||||
<table >
|
||||
<tr><td align="left" >
|
||||
Jane Doe
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
|
||||
[ [go back](../status.md) | [to top](#) ]
|
||||
|
||||
### [jetstream](https://github.com/Laravel-Lang/lang/blob/master/locales/it/packages/jetstream.json)
|
||||
|
||||
##### Missing: 1
|
||||
|
||||
<table >
|
||||
<tr><td align="left" >
|
||||
You may accept this invitation by clicking the button below:
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
|
||||
[ [go back](../status.md) | [to top](#) ]
|
||||
|
||||
### [nova](https://github.com/Laravel-Lang/lang/blob/master/locales/it/packages/nova.json)
|
||||
|
||||
##### Missing: 1
|
||||
|
||||
<table >
|
||||
<tr><td align="left" >
|
||||
Standalone Actions
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
|
||||
[ [go back](../status.md) | [to top](#) ]
|
||||
|
||||
### [spark-paddle](https://github.com/Laravel-Lang/lang/blob/master/locales/it/packages/spark-paddle.json)
|
||||
|
||||
##### Missing: 9
|
||||
|
||||
<table >
|
||||
<tr><td align="left" >
|
||||
Payment Method
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
Subscription Pending
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
There is no active subscription.
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
This subscription cannot be resumed. Please create a new subscription.
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
Update Payment Method
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
View Receipt
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
We are processing your subscription. Once the subscription has successfully processed, this page will update automatically. Typically, this process should only take a few seconds.
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
You are already subscribed.
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
Your current payment method is :paypal.
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
|
||||
[ [go back](../status.md) | [to top](#) ]
|
||||
|
||||
### [spark-stripe](https://github.com/Laravel-Lang/lang/blob/master/locales/it/packages/spark-stripe.json)
|
||||
|
||||
##### Missing: 8
|
||||
|
||||
<table >
|
||||
<tr><td align="left" >
|
||||
Apply
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
Apply Coupon
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
I accept the terms of service
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
Micronesia, Federated States of
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
Please accept the terms of service.
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
Svalbard and Jan Mayen
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
Trinidad and Tobago
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
Åland Islands
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
|
||||
[ [go back](../status.md) | [to top](#) ]
|
||||
|
||||
+128
-2326
File diff suppressed because it is too large.
Load diff
+647
-2661
File diff suppressed because it is too large.
Load diff
+776
-2700
File diff suppressed because it is too large.
Load diff
+575
-2893
File diff suppressed because it is too large.
Load diff
Loaded 100 of 871 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user