Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b819e49635 | ||
|
|
ebd66d8cb1 | ||
|
|
359e268659 | ||
|
|
a4d3357c31 | ||
|
|
2ede1cf33a | ||
|
|
f6bee54bca | ||
|
|
df2f431b47 | ||
|
|
1722e1b9f3 | ||
|
|
8437b81894 | ||
|
|
5116fe2fb2 | ||
|
|
5389373fe0 | ||
|
|
522c3aa2c2 | ||
|
|
7d68504de0 | ||
|
|
bb8ed28d08 | ||
|
|
36cba04d91 | ||
|
|
0df52d14c9 | ||
|
|
33d8989eac | ||
|
|
a30c5d7b9a | ||
|
|
c361654047 | ||
|
|
fc23b21197 | ||
|
|
5762d47df5 | ||
|
|
489f44018a | ||
|
|
2d7f3cb15f | ||
|
|
ce099ee133 | ||
|
|
121979a6f6 | ||
|
|
d839b1f2f6 | ||
|
|
b163b1e5fb | ||
|
|
8e9b7e113a | ||
|
|
a5c65ba6ba | ||
|
|
e3d3caa7f8 | ||
|
|
0f349cc0c6 | ||
|
|
692f5f22e6 | ||
|
|
8dea7389c8 | ||
|
|
b7da0af2c8 | ||
|
|
ee08518c49 | ||
|
|
a91f36c22b | ||
|
|
482e7bb3d7 | ||
|
|
7dde8dbf91 | ||
|
|
aed88b9153 | ||
|
|
9b612e84d9 | ||
|
|
1118427a69 | ||
|
|
14305676ab | ||
|
|
6f8c9f530f | ||
|
|
84909a9355 | ||
|
|
cd22867fd4 | ||
|
|
932f753a55 | ||
|
|
6eac783ce3 | ||
|
|
5e786a5c18 | ||
|
|
8b37ed3121 | ||
|
|
9c528c9627 | ||
|
|
ba31b7d11f | ||
|
|
ae02da5f21 | ||
|
|
19b67d0710 | ||
|
|
f05de152a3 | ||
|
|
f56456fe60 | ||
|
|
d63932b38a | ||
|
|
9a5e2742df | ||
|
|
203aece12f | ||
|
|
4ed62672f6 | ||
|
|
60f34386a9 | ||
|
|
819c4f2441 | ||
|
|
4ccc94e186 | ||
|
|
cd8a396d80 | ||
|
|
ae8b99faab | ||
|
|
ab54cb88c2 | ||
|
|
6f8b39c618 | ||
|
|
5c2532b3a2 | ||
|
|
9640443b07 | ||
|
|
25cdb9be9b | ||
|
|
1b40b002cc | ||
|
|
a6e537fd22 | ||
|
|
cd69e7474c | ||
|
|
b724fdc4d0 | ||
|
|
7a3f0697ba | ||
|
|
7e54ef749c | ||
|
|
cd4f43a810 | ||
|
|
aafed0b514 | ||
|
|
aa39976021 | ||
|
|
8256715a50 | ||
|
|
3f1fb53276 | ||
|
|
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 | ||
|
|
09365f391f | ||
|
|
453c276e20 | ||
|
|
f1d7fe18fc | ||
|
|
8718d80e4f | ||
|
|
08a6744da5 | ||
|
|
2b6eaaabc2 | ||
|
|
14e1193520 | ||
|
|
76eefabe68 | ||
|
|
be939c3466 | ||
|
|
e47612062a | ||
|
|
5e3e5e97c2 | ||
|
|
d5c6080c75 | ||
|
|
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 | ||
|
|
d58d7a08d6 | ||
|
|
c3e51ee39e | ||
|
|
54048d1319 | ||
|
|
de25dfcee1 | ||
|
|
5731137c7f | ||
|
|
f9214fe5c8 | ||
|
|
a3df3d19ed | ||
|
|
c1f0901d40 | ||
|
|
b350230276 | ||
|
|
e7bf14ffd0 | ||
|
|
90873071cd | ||
|
|
eba8e4366e | ||
|
|
23836f219c | ||
|
|
5dfc53c44b | ||
|
|
74c629d2e4 | ||
|
|
104bfc9a53 | ||
|
|
9436258f91 | ||
|
|
31b4018134 | ||
|
|
c59d301486 | ||
|
|
82d7088c89 | ||
|
|
8aa6542abb | ||
|
|
80d63385e8 | ||
|
|
eacb8aa80a | ||
|
|
def0e7f302 | ||
|
|
26f04e2548 | ||
|
|
646e025be8 | ||
|
|
16a11227f1 | ||
|
|
8bfd924f1d | ||
|
|
593c5ae1a0 | ||
|
|
3cb8ef151c | ||
|
|
6a2ec0b9db | ||
|
|
d0fb24c76d | ||
|
|
addd6c7371 | ||
|
|
404e6d14dc | ||
|
|
89a6e9b452 | ||
|
|
7981c6c99e | ||
|
|
42dfefcec5 | ||
|
|
3e984457fd | ||
|
|
4f1ac9b1be | ||
|
|
9cc01fea64 | ||
|
|
31d1569d8c |
No files matched your search
@@ -1,4 +1,4 @@
|
||||
name: update-status
|
||||
name: self-update
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
@@ -30,36 +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: Status update
|
||||
- name: Updating referents
|
||||
id: referents
|
||||
if: success()
|
||||
run: php app/status.php
|
||||
run: |
|
||||
IS_DIRTY=1
|
||||
|
||||
- name: Commit file
|
||||
php app/referents.php
|
||||
|
||||
{ git add . && git commit -a -m "Updating the docs/referents.md file"; } || IS_DIRTY=0
|
||||
|
||||
echo ::set-output name=is_dirty::${IS_DIRTY}
|
||||
|
||||
- name: Checking for excludes
|
||||
id: excludes
|
||||
if: success()
|
||||
run: |
|
||||
IS_DIRTY=1
|
||||
|
||||
php app/excludes.php
|
||||
|
||||
{ git add . && git commit -a -m "Updating excludes files"; } || IS_DIRTY=0
|
||||
|
||||
echo ::set-output name=is_dirty::${IS_DIRTY}
|
||||
|
||||
- name: Status update
|
||||
id: commit_status
|
||||
if: success()
|
||||
run: |
|
||||
IS_DIRTY=1
|
||||
|
||||
php app/status.php
|
||||
|
||||
{ git add . && git commit -a -m "Updated status of translations"; } || IS_DIRTY=0
|
||||
|
||||
echo ::set-output name=is_dirty::${IS_DIRTY}
|
||||
|
||||
- name: Push changes
|
||||
uses: ad-m/github-push-action@master
|
||||
if: success() && (steps.commit_keys.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 Breeze](https://github.com/laravel/breeze), [Laravel Nova](https://nova.laravel.com) and [Laravel Spark](https://spark.laravel.com).
|
||||
|
||||
<p align="center">
|
||||
[
|
||||
@@ -12,18 +11,21 @@ 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.1, one json file by language, but split translation keys for English version ([#1761](https://github.com/Laravel-Lang/lang/issues/1761))
|
||||
* 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) )
|
||||
|
||||
## Projects based on this package
|
||||
## Translation managers
|
||||
|
||||
* [LaravelLang](https://github.com/ARCANEDEV/LaravelLang) by [*@arcanedev-maroc*](https://github.com/ARCANEDEV) - Translations manager and checker for Laravel.
|
||||
* [Laravel-lang](https://github.com/overtrue/laravel-lang) by [*@overtrue*](https://github.com/overtrue) - Command to add languages in your project.
|
||||
* [Lang Publisher](https://github.com/andrey-helldar/laravel-lang-publisher) by [*@andrey-helldar*](https://github.com/andrey-helldar) - Easy installation and
|
||||
update of translation files for your project.
|
||||
* [Lang Publisher](https://github.com/andrey-helldar/laravel-lang-publisher) by [*@andrey-helldar*](https://github.com/andrey-helldar) - Easy installation and update of translation files for your project.
|
||||
|
||||
## Credits
|
||||
|
||||
- [Referents by language](docs/referents.md)
|
||||
- [Referents by language](https://laravel-lang.github.io/lang/referents.html)
|
||||
- [All Contributors](https://github.com/Laravel-Lang/lang/graphs/contributors)
|
||||
@@ -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;
|
||||
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
use LaravelLang\Lang\Processors\Excludes;
|
||||
|
||||
require __DIR__ . '/../vendor/autoload.php';
|
||||
|
||||
/** @var \LaravelLang\Lang\Application $app */
|
||||
$app = require_once __DIR__ . '/bootstrap/app.php';
|
||||
|
||||
$app->processor(Excludes::make());
|
||||
+2
-6
@@ -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\Keys;
|
||||
|
||||
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(Keys::make());
|
||||
+39
-29
@@ -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
|
||||
@@ -25,7 +25,22 @@ final class Application implements ApplicationContract
|
||||
|
||||
public function sourcePath(string $filename = null): string
|
||||
{
|
||||
return $this->path('script/en/' . $this->cleanPath($filename));
|
||||
return $this->path('source/' . $this->cleanPath($filename));
|
||||
}
|
||||
|
||||
public function localePath(string $locale = null): string
|
||||
{
|
||||
return $this->path('locales/' . $this->cleanPath($locale));
|
||||
}
|
||||
|
||||
public function excludePath(string $locale): string
|
||||
{
|
||||
return $this->path('excludes/' . $this->cleanPath($locale) . '.php');
|
||||
}
|
||||
|
||||
public function resourcePath(string $filename): string
|
||||
{
|
||||
return $this->path('app/resources/' . $this->cleanPath($filename));
|
||||
}
|
||||
|
||||
public function path(string $path = null): string
|
||||
@@ -37,16 +52,6 @@ final class Application implements ApplicationContract
|
||||
return $this->basePath();
|
||||
}
|
||||
|
||||
public function excludePath(string $locale): string
|
||||
{
|
||||
return $this->path('excludes/' . $locale . '.php');
|
||||
}
|
||||
|
||||
public function resourcePath(string $filename): string
|
||||
{
|
||||
return $this->path('app/resources/' . $filename);
|
||||
}
|
||||
|
||||
public function cleanPath(string $path = null): ?string
|
||||
{
|
||||
if (! empty($path)) {
|
||||
@@ -56,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';
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
|
||||
namespace LaravelLang\Lang\Concerns;
|
||||
|
||||
use Helldar\Support\Facades\Helpers\Filesystem\Directory;
|
||||
use Helldar\Support\Facades\Helpers\Str;
|
||||
use LaravelLang\Lang\Constants\Locales;
|
||||
|
||||
trait Contains
|
||||
{
|
||||
protected function isMainJson(string $filename): bool
|
||||
{
|
||||
if ($this->isEnglishJson($filename)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
$locale = Str::before($filename, '.');
|
||||
|
||||
$path = $this->app->localePath($locale);
|
||||
|
||||
return $this->isJson($filename) && Directory::exists($path);
|
||||
}
|
||||
|
||||
protected function isEnglishJson(string $filename): bool
|
||||
{
|
||||
return $this->isJson($filename) && str_starts_with($filename, Locales::ENGLISH);
|
||||
}
|
||||
|
||||
protected function isJson(string $filename): bool
|
||||
{
|
||||
return str_ends_with($filename, 'json');
|
||||
}
|
||||
|
||||
protected function isMarkdown(string $filename): bool
|
||||
{
|
||||
return str_ends_with($filename, 'md');
|
||||
}
|
||||
|
||||
protected function isValidation(string $filename): bool
|
||||
{
|
||||
return str_starts_with($filename, 'validation');
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
namespace LaravelLang\Lang\Concerns;
|
||||
|
||||
use Helldar\Support\Facades\Helpers\Instance;
|
||||
use Helldar\Support\Tools\Stub;
|
||||
use LaravelLang\Lang\Contracts\Stringable;
|
||||
|
||||
trait Storable
|
||||
{
|
||||
protected ?string $stub = null;
|
||||
|
||||
protected function prepareToStore(array|string|Stringable $content): string
|
||||
{
|
||||
if (Instance::of($content, Stringable::class)) {
|
||||
return $content->toString();
|
||||
}
|
||||
|
||||
if (is_array($content)) {
|
||||
return implode(PHP_EOL, $content);
|
||||
}
|
||||
|
||||
return $content;
|
||||
}
|
||||
|
||||
protected function getStub(string $filename): string
|
||||
{
|
||||
return $this->findStub($this->stub ?: $filename);
|
||||
}
|
||||
|
||||
protected function findStub(string $filename): string
|
||||
{
|
||||
$basename = pathinfo($filename, PATHINFO_FILENAME);
|
||||
|
||||
$path = $this->app->resourcePath('arrays/' . $basename . '.stub');
|
||||
|
||||
return file_exists($path) ? $path : Stub::PHP_ARRAY;
|
||||
}
|
||||
}
|
||||
@@ -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'
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
<?php
|
||||
|
||||
namespace LaravelLang\Lang\Constants;
|
||||
|
||||
final class Referents
|
||||
{
|
||||
public const ar = ['mohamedsabil83', 'Khuthaily'];
|
||||
|
||||
public const da = ['jensstigaard'];
|
||||
|
||||
public const de = ['WhereIsLucas', 'sotten'];
|
||||
|
||||
public const de_CH = ['sotten'];
|
||||
|
||||
public const es = ['luisprmat'];
|
||||
|
||||
public const fr = ['caouecs', 'WhereIsLucas'];
|
||||
|
||||
public const it = ['masterix21'];
|
||||
|
||||
public const mk = ['keljtanoski'];
|
||||
|
||||
public const nl = ['WhereIsLucas'];
|
||||
|
||||
public const pt = ['jorgercosta'];
|
||||
|
||||
public const ru = ['andrey-helldar'];
|
||||
|
||||
public const sr_Cyrl = ['LukaLatkovic'];
|
||||
|
||||
public const sr_Latn = ['LukaLatkovic'];
|
||||
|
||||
public const sr_Latn_ME = ['LukaLatkovic'];
|
||||
|
||||
public const uk = ['MrAlKuz'];
|
||||
|
||||
public const vi = ['dinhquochan'];
|
||||
|
||||
public const zh_CN = ['overtrue'];
|
||||
|
||||
public const zh_HK = ['overtrue'];
|
||||
|
||||
public const zh_TW = ['overtrue'];
|
||||
}
|
||||
@@ -8,6 +8,8 @@ final class Resource
|
||||
|
||||
public const LOCALE = 'locale.stub';
|
||||
|
||||
public const REFERENTS = 'referents.stub';
|
||||
|
||||
public const COMPONENT_ALL_TRANSLATED = 'components/translated.stub';
|
||||
|
||||
public const COMPONENT_LINK = 'components/link.stub';
|
||||
|
||||
@@ -10,17 +10,15 @@ interface Application
|
||||
|
||||
public function sourcePath(string $filename = null): string;
|
||||
|
||||
public function path(string $path = null): string;
|
||||
public function localePath(string $locale = null): string;
|
||||
|
||||
public function excludePath(string $locale): string;
|
||||
|
||||
public function resourcePath(string $filename): string;
|
||||
|
||||
public function path(string $path = null): string;
|
||||
|
||||
public function cleanPath(string $path = null): ?string;
|
||||
|
||||
public function filesystem(Filesystem $filesystem): self;
|
||||
|
||||
public function getFilesystem(): Filesystem;
|
||||
|
||||
public function processor(Processable $processor, Filesystem $filesystem): void;
|
||||
public function processor(Processable $processor): void;
|
||||
}
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace LaravelLang\Lang\Contracts;
|
||||
|
||||
use Helldar\Support\Tools\Stub;
|
||||
use LaravelLang\Lang\Application;
|
||||
|
||||
interface Filesystem
|
||||
@@ -10,5 +11,5 @@ interface Filesystem
|
||||
|
||||
public function load(string $path): array;
|
||||
|
||||
public function store(string $path, array|string $content): void;
|
||||
public function store(string $path, array|string|Stringable $content, bool $is_simple = false, string $stub = Stub::PHP_ARRAY): void;
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,77 @@
|
||||
<?php
|
||||
|
||||
namespace LaravelLang\Lang\Processors;
|
||||
|
||||
use Helldar\Support\Facades\Helpers\Arr;
|
||||
use Helldar\Support\Facades\Helpers\Filesystem\File;
|
||||
|
||||
final class Excludes extends Processor
|
||||
{
|
||||
protected string $target_path = 'excludes';
|
||||
|
||||
protected array $keys = [];
|
||||
|
||||
protected ?string $stub = 'exclude.stub';
|
||||
|
||||
public function run(): void
|
||||
{
|
||||
$this->loadKeys();
|
||||
$this->handle();
|
||||
}
|
||||
|
||||
protected function handle(): void
|
||||
{
|
||||
foreach ($this->targetFiles() as $filename) {
|
||||
$this->process($this->getTargetPath($filename), $filename);
|
||||
}
|
||||
}
|
||||
|
||||
protected function process(string $target_path, string $filename, string $locale = null): void
|
||||
{
|
||||
$target = $this->load($target_path);
|
||||
|
||||
$content = $this->merge($this->keys, $target, $filename);
|
||||
|
||||
$this->sort($content, false);
|
||||
|
||||
$this->store($target_path, array_values($content), $this->stub, true);
|
||||
}
|
||||
|
||||
protected function merge(array $source, array $target, string $filename): array
|
||||
{
|
||||
return array_intersect($source, $target);
|
||||
}
|
||||
|
||||
protected function sort(array &$array, bool $key = true): void
|
||||
{
|
||||
$array = Arr::sort(array_unique($array));
|
||||
}
|
||||
|
||||
protected function loadKeys(): void
|
||||
{
|
||||
foreach ($this->sourceFiles() as $filename) {
|
||||
$keys = $this->getSourceKeys($filename);
|
||||
|
||||
$this->keys = array_merge($this->keys, $keys);
|
||||
}
|
||||
}
|
||||
|
||||
protected function sourceFiles(): array
|
||||
{
|
||||
return File::names($this->getSourcePath(), recursive: true);
|
||||
}
|
||||
|
||||
protected function targetFiles(): array
|
||||
{
|
||||
return File::names($this->getTargetPath());
|
||||
}
|
||||
|
||||
protected function getSourceKeys(string $filename): array
|
||||
{
|
||||
$items = $this->load($this->getSourcePath($filename));
|
||||
|
||||
return $this->isJson($filename)
|
||||
? array_values($items)
|
||||
: array_keys($items);
|
||||
}
|
||||
}
|
||||
@@ -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\File;
|
||||
|
||||
final class Json extends Processor
|
||||
{
|
||||
protected string $target_path = 'json';
|
||||
|
||||
public function run(): void
|
||||
{
|
||||
foreach ($this->locales() as $locale) {
|
||||
$target_path = $this->getTargetPath($locale);
|
||||
|
||||
$this->process($target_path, 'en.json', $locale);
|
||||
}
|
||||
}
|
||||
|
||||
protected function locales(): array
|
||||
{
|
||||
return File::names($this->getTargetPath());
|
||||
}
|
||||
}
|
||||
@@ -2,12 +2,11 @@
|
||||
|
||||
namespace LaravelLang\Lang\Processors;
|
||||
|
||||
use Helldar\Support\Facades\Helpers\Filesystem\Directory;
|
||||
use Helldar\Support\Facades\Helpers\Filesystem\File;
|
||||
|
||||
final class Php extends Processor
|
||||
final class Keys extends Processor
|
||||
{
|
||||
protected string $target_path = 'src';
|
||||
protected string $target_path = 'locales';
|
||||
|
||||
public function run(): void
|
||||
{
|
||||
@@ -15,7 +14,9 @@ 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -24,9 +25,4 @@ final class Php extends Processor
|
||||
{
|
||||
return File::names($this->getTargetPath($locale));
|
||||
}
|
||||
|
||||
protected function locales(): array
|
||||
{
|
||||
return Directory::names($this->getTargetPath());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
<?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/breeze' => 'packages/breeze.json',
|
||||
'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, false);
|
||||
|
||||
$this->store($path, $content);
|
||||
}
|
||||
}
|
||||
|
||||
protected function map(array $items): array
|
||||
{
|
||||
return Arr::values($items);
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
@@ -4,12 +4,22 @@ namespace LaravelLang\Lang\Processors;
|
||||
|
||||
use Helldar\Support\Concerns\Makeable;
|
||||
use Helldar\Support\Facades\Helpers\Arr;
|
||||
use Helldar\Support\Facades\Helpers\Str;
|
||||
use Helldar\Support\Facades\Helpers\Filesystem\Directory;
|
||||
use Helldar\Support\Facades\Helpers\Filesystem\File;
|
||||
use Helldar\Support\Tools\Stub;
|
||||
use LaravelLang\Lang\Application;
|
||||
use LaravelLang\Lang\Concerns\Contains;
|
||||
use LaravelLang\Lang\Contracts\Filesystem;
|
||||
use LaravelLang\Lang\Contracts\Processable;
|
||||
use LaravelLang\Lang\Contracts\Stringable;
|
||||
use LaravelLang\Lang\Services\Filesystem\Base;
|
||||
use LaravelLang\Lang\Services\Filesystem\Json as JsonFilesystem;
|
||||
use LaravelLang\Lang\Services\Filesystem\Markdown as MarkdownFilesystem;
|
||||
use LaravelLang\Lang\Services\Filesystem\Php as PhpFilesystem;
|
||||
|
||||
abstract class Processor implements Processable
|
||||
{
|
||||
use Contains;
|
||||
use Makeable;
|
||||
|
||||
protected Application $app;
|
||||
@@ -18,6 +28,9 @@ abstract class Processor implements Processable
|
||||
|
||||
protected string $target_path;
|
||||
|
||||
/** @var \LaravelLang\Lang\Contracts\Filesystem[]|array */
|
||||
protected array $filesystems = [];
|
||||
|
||||
public function application(Application $app): Processable
|
||||
{
|
||||
$this->app = $app;
|
||||
@@ -27,7 +40,7 @@ abstract class Processor implements Processable
|
||||
|
||||
protected function merge(array $source, array $target, string $filename): array
|
||||
{
|
||||
$target = Arr::only($target, array_keys($source));
|
||||
$target = $this->filter($target, $source);
|
||||
|
||||
$this->sort($source);
|
||||
$this->sort($target);
|
||||
@@ -45,14 +58,14 @@ abstract class Processor implements Processable
|
||||
return array_merge($source, $target);
|
||||
}
|
||||
|
||||
protected function process(string $target_path, string $filename, string $locale): void
|
||||
protected function process(string $target_path, string $filename, string $locale = null): void
|
||||
{
|
||||
$source = $this->source($filename);
|
||||
$target = $this->load($target_path);
|
||||
|
||||
$content = $this->merge($source, $target, $filename);
|
||||
|
||||
$this->store($target_path, $content);
|
||||
$this->store($target_path, $content, $filename);
|
||||
}
|
||||
|
||||
protected function source(string $filename): array
|
||||
@@ -61,7 +74,29 @@ abstract class Processor implements Processable
|
||||
return $this->source[$filename];
|
||||
}
|
||||
|
||||
return $this->source[$filename] = $this->load($this->getSourcePath($filename));
|
||||
return $this->source[$filename] = $this->isJson($filename) ? $this->sourceJson() : $this->loadSource($filename);
|
||||
}
|
||||
|
||||
protected function loadSource(string $filename): array
|
||||
{
|
||||
return $this->load($this->getSourcePath($filename));
|
||||
}
|
||||
|
||||
protected function sourceJson(): array
|
||||
{
|
||||
$path = $this->getSourcePath();
|
||||
|
||||
$files = File::names($path, fn ($filename) => $this->isJson($filename), true);
|
||||
|
||||
$array = [];
|
||||
|
||||
foreach ($files as $file) {
|
||||
$items = $this->loadSource($file);
|
||||
|
||||
$array = Arr::addUnique($array, $items);
|
||||
}
|
||||
|
||||
return Arr::renameKeys($array, static fn ($key, $value) => $value);
|
||||
}
|
||||
|
||||
protected function getFallbackValue(array $source, array $target, string $key)
|
||||
@@ -83,23 +118,71 @@ abstract class Processor implements Processable
|
||||
return $this->app->sourcePath($filename);
|
||||
}
|
||||
|
||||
protected function isValidation(string $filename): bool
|
||||
protected function filter(array $first, array $second): array
|
||||
{
|
||||
return Str::startsWith($filename, 'validation');
|
||||
$keys = array_keys($second);
|
||||
|
||||
return Arr::only($first, $keys);
|
||||
}
|
||||
|
||||
protected function sort(array &$array): void
|
||||
protected function sort(array &$array, bool $key = true): void
|
||||
{
|
||||
$array = Arr::ksort($array);
|
||||
$array = $key
|
||||
? Arr::ksort($array)
|
||||
: Arr::sort($array);
|
||||
}
|
||||
|
||||
protected function load(string $path): array
|
||||
{
|
||||
return $this->app->getFilesystem()->load($path);
|
||||
return $this->getFilesystem($path)->load($path);
|
||||
}
|
||||
|
||||
protected function store(string $path, array $content): void
|
||||
protected function locales(): array
|
||||
{
|
||||
$this->app->getFilesystem()->store($path, $content);
|
||||
return Directory::names($this->getTargetPath());
|
||||
}
|
||||
|
||||
protected function resolveFilename(string $filename, string $locale): string
|
||||
{
|
||||
return $this->isMainJson($filename) ? $locale . '.json' : $filename;
|
||||
}
|
||||
|
||||
protected function getFilesystem(string $filename): Filesystem
|
||||
{
|
||||
$class = $this->getFilesystemClass($filename);
|
||||
|
||||
if ($this->filesystems[$class] ?? false) {
|
||||
return $this->filesystems[$class];
|
||||
}
|
||||
|
||||
return $this->filesystems[$class] = $this->loadFilesystem($class);
|
||||
}
|
||||
|
||||
protected function getFilesystemClass(string $path): string
|
||||
{
|
||||
return match (true) {
|
||||
$this->isJson($path) => JsonFilesystem::class,
|
||||
|
||||
$this->isMarkdown($path) => MarkdownFilesystem::class,
|
||||
|
||||
default => PhpFilesystem::class,
|
||||
};
|
||||
}
|
||||
|
||||
protected function loadFilesystem(Filesystem|Base|string $filesystem): Filesystem
|
||||
{
|
||||
return $filesystem::make()->application($this->app);
|
||||
}
|
||||
|
||||
protected function store(string $path, array|string|Stringable $content, string $source_filename = null, bool $is_simple = false): void
|
||||
{
|
||||
$stub = $this->getStubPath($source_filename);
|
||||
|
||||
$this->getFilesystem($path)->store($path, $content, $is_simple, $stub);
|
||||
}
|
||||
|
||||
protected function getStubPath(?string $filename): ?string
|
||||
{
|
||||
return empty($filename) ? Stub::PHP_ARRAY : $filename;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
<?php
|
||||
|
||||
namespace LaravelLang\Lang\Processors;
|
||||
|
||||
use Helldar\Support\Facades\Helpers\Filesystem\Directory;
|
||||
use LaravelLang\Lang\Concerns\Template;
|
||||
use LaravelLang\Lang\Constants\Referents as Constants;
|
||||
use LaravelLang\Lang\Contracts\Stringable;
|
||||
use LaravelLang\Lang\Services\Compilers\Referents as Compilator;
|
||||
use ReflectionClass;
|
||||
use ReflectionClassConstant;
|
||||
|
||||
final class Referents extends Processor
|
||||
{
|
||||
use Template;
|
||||
|
||||
protected string $target_path = 'locales';
|
||||
|
||||
public function run(): void
|
||||
{
|
||||
$map = $this->map();
|
||||
|
||||
$result = $this->compileContent($map);
|
||||
|
||||
$this->store('docs/referents.md', $result);
|
||||
}
|
||||
|
||||
protected function compileContent(array $items): Stringable
|
||||
{
|
||||
return Compilator::make($this->app)->items($items);
|
||||
}
|
||||
|
||||
protected function map(): array
|
||||
{
|
||||
$locales = array_flip($this->locales());
|
||||
|
||||
return array_merge($locales, $this->assignees());
|
||||
}
|
||||
|
||||
protected function locales(): array
|
||||
{
|
||||
return Directory::names($this->getTargetPath());
|
||||
}
|
||||
|
||||
protected function assignees(): array
|
||||
{
|
||||
$class = new ReflectionClass(Constants::class);
|
||||
|
||||
return $class->getConstants(ReflectionClassConstant::IS_PUBLIC);
|
||||
}
|
||||
}
|
||||
@@ -15,13 +15,13 @@ 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);
|
||||
|
||||
$filename = Str::slug($locale);
|
||||
|
||||
$this->save($this->pathStatus($filename . '.md'), $result);
|
||||
$this->store($this->pathStatus($filename . '.md'), $result);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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,17 +5,19 @@ 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
|
||||
{
|
||||
$result = $this->compileContent($this->locales);
|
||||
|
||||
$this->save('docs/status.md', $result);
|
||||
$this->store('docs/status.md', $result);
|
||||
}
|
||||
|
||||
protected function compileContent(array $items): Stringable
|
||||
{
|
||||
return Status::make($this->app)->items($items);
|
||||
return Status::make($this->app)
|
||||
->extend($this->getCounts())
|
||||
->items($items);
|
||||
}
|
||||
}
|
||||
@@ -5,19 +5,16 @@ namespace LaravelLang\Lang\Processors\Statuses;
|
||||
use Helldar\Support\Facades\Helpers\Arr;
|
||||
use Helldar\Support\Facades\Helpers\Filesystem\Directory;
|
||||
use Helldar\Support\Facades\Helpers\Filesystem\File;
|
||||
use Helldar\Support\Facades\Helpers\Str;
|
||||
use Helldar\Support\Facades\Tools\Sorter;
|
||||
use LaravelLang\Lang\Concerns\Countable;
|
||||
use LaravelLang\Lang\Concerns\Excludes;
|
||||
use LaravelLang\Lang\Concerns\Template;
|
||||
use LaravelLang\Lang\Contracts\Filesystem;
|
||||
use LaravelLang\Lang\Contracts\Stringable;
|
||||
use LaravelLang\Lang\Facades\Arr as ArrHelper;
|
||||
use LaravelLang\Lang\Processors\Processor as BaseProcessor;
|
||||
use LaravelLang\Lang\Services\Filesystem\Base;
|
||||
use LaravelLang\Lang\Services\Filesystem\Json as JsonFilesystem;
|
||||
use LaravelLang\Lang\Services\Filesystem\Php as PhpFilesystem;
|
||||
|
||||
abstract class Processor extends BaseProcessor
|
||||
{
|
||||
use Countable;
|
||||
use Excludes;
|
||||
use Template;
|
||||
|
||||
@@ -25,9 +22,6 @@ abstract class Processor extends BaseProcessor
|
||||
|
||||
protected string $target_path = 'statuses';
|
||||
|
||||
/** @var \LaravelLang\Lang\Contracts\Filesystem[]|array */
|
||||
protected array $filesystems = [];
|
||||
|
||||
protected array $source_files = [];
|
||||
|
||||
protected array $locales = [];
|
||||
@@ -44,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);
|
||||
|
||||
@@ -52,37 +48,44 @@ abstract class Processor extends BaseProcessor
|
||||
}
|
||||
}
|
||||
|
||||
protected function process(string $target_path, string $filename, string $locale): void
|
||||
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);
|
||||
|
||||
$this->addCount($source);
|
||||
|
||||
if ($diff = $this->compare($source, $target, $locale, $is_validation)) {
|
||||
$key = $this->getFileBasename($corrected);
|
||||
$this->pushLocale($locale, $corrected, $diff);
|
||||
|
||||
$this->locales[$locale][$key] = $diff;
|
||||
} else {
|
||||
$this->locales[$locale] = [];
|
||||
$this->addCount($diff, 'diff');
|
||||
}
|
||||
}
|
||||
|
||||
protected function save(string $path, Stringable $content): void
|
||||
{
|
||||
File::store($path, $content->toString());
|
||||
}
|
||||
|
||||
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)) {
|
||||
@@ -103,54 +106,14 @@ abstract class Processor extends BaseProcessor
|
||||
return array_sum($items);
|
||||
}
|
||||
|
||||
protected function load(string $path): array
|
||||
protected function getLocalePath(string $locale = null): string
|
||||
{
|
||||
return $this->getFilesystem($path)->load($path);
|
||||
}
|
||||
|
||||
protected function loadFilesystem(Filesystem|Base|string $filesystem): Filesystem
|
||||
{
|
||||
return $filesystem::make()->application($this->app);
|
||||
}
|
||||
|
||||
protected function getFilesystem(string $filename): Filesystem
|
||||
{
|
||||
$class = $this->getFilesystemClass($filename);
|
||||
|
||||
if ($this->filesystems[$class] ?? false) {
|
||||
return $this->filesystems[$class];
|
||||
}
|
||||
|
||||
return $this->filesystems[$class] = $this->loadFilesystem($class);
|
||||
}
|
||||
|
||||
protected function getFilesystemClass(string $path): string
|
||||
{
|
||||
return $this->isJson($path) ? JsonFilesystem::class : PhpFilesystem::class;
|
||||
}
|
||||
|
||||
protected function getLangPath(string $locale = null): string
|
||||
{
|
||||
$locale = $this->app->cleanPath($locale);
|
||||
|
||||
return $this->app->path('src/' . $locale);
|
||||
}
|
||||
|
||||
protected function getFileBasename(string $filename): string
|
||||
{
|
||||
$flag = $this->isJson($filename) ? PATHINFO_EXTENSION : PATHINFO_FILENAME;
|
||||
|
||||
return pathinfo($filename, $flag);
|
||||
}
|
||||
|
||||
protected function getCorrectedFilename(string $filename, string $locale): string
|
||||
{
|
||||
return $this->isJson($filename) ? $locale . '.json' : $filename;
|
||||
return $this->app->localePath($locale);
|
||||
}
|
||||
|
||||
protected function locales(): array
|
||||
{
|
||||
return Directory::names($this->getLangPath());
|
||||
return Directory::names($this->getLocalePath());
|
||||
}
|
||||
|
||||
protected function files(): array
|
||||
@@ -161,33 +124,37 @@ abstract class Processor extends BaseProcessor
|
||||
|
||||
$files = File::names($this->getSourcePath());
|
||||
|
||||
return $this->source_files = Arr::sort($files, static function (string $a, string $b) {
|
||||
if ($a === $b) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (Str::endsWith($a, '.json')) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
$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
|
||||
{
|
||||
$path = $this->isJson($filename)
|
||||
? $this->app->path('json/' . $filename)
|
||||
: $this->app->path('src/' . $locale . '/' . $filename);
|
||||
$corrected = $this->resolveFilename($filename, $locale);
|
||||
|
||||
$path = $this->getLocalePath($locale . '/' . $corrected);
|
||||
|
||||
return $this->load($path);
|
||||
}
|
||||
|
||||
protected function isJson(string $filename): bool
|
||||
protected function pushLocale(string $locale, string $filename, array $diff): void
|
||||
{
|
||||
return Str::endsWith($filename, '.json');
|
||||
$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);
|
||||
}
|
||||
}
|
||||
@@ -3,18 +3,21 @@
|
||||
namespace LaravelLang\Lang\Services\Compilers;
|
||||
|
||||
use Helldar\Support\Concerns\Makeable;
|
||||
use Helldar\Support\Facades\Helpers\Str;
|
||||
use LaravelLang\Lang\Concerns\Contains;
|
||||
use LaravelLang\Lang\Concerns\Template;
|
||||
use LaravelLang\Lang\Contracts\Application;
|
||||
use LaravelLang\Lang\Contracts\Stringable;
|
||||
|
||||
abstract class Compiler implements Stringable
|
||||
{
|
||||
use Contains;
|
||||
use Makeable;
|
||||
use Template;
|
||||
|
||||
protected array $items;
|
||||
|
||||
protected array $extend = [];
|
||||
|
||||
public function __construct(
|
||||
protected Application $app
|
||||
) {
|
||||
@@ -27,8 +30,10 @@ abstract class Compiler implements Stringable
|
||||
return $this;
|
||||
}
|
||||
|
||||
protected function isJson(string $filename): bool
|
||||
public function extend(array $values): self
|
||||
{
|
||||
return Str::contains($filename, 'json');
|
||||
$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
|
||||
{
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
<?php
|
||||
|
||||
namespace LaravelLang\Lang\Services\Compilers;
|
||||
|
||||
use LaravelLang\Lang\Constants\Resource;
|
||||
|
||||
final class Referents extends Compiler
|
||||
{
|
||||
public function toString(): string
|
||||
{
|
||||
$content = $this->compileContent();
|
||||
|
||||
return $this->template(Resource::REFERENTS, compact('content'));
|
||||
}
|
||||
|
||||
protected function compileContent(): string
|
||||
{
|
||||
$rows = [];
|
||||
|
||||
foreach ($this->items as $key => $value) {
|
||||
$rows[] = $this->mapRow($key, $value);
|
||||
}
|
||||
|
||||
return Table::make($this->app)->items($rows)->toString();
|
||||
}
|
||||
|
||||
protected function mapRow(string $key, int|array $values): array
|
||||
{
|
||||
$row = [$key, ''];
|
||||
|
||||
if (is_array($values)) {
|
||||
$row[1] = $this->mapAssignees($values);
|
||||
}
|
||||
|
||||
return $row;
|
||||
}
|
||||
|
||||
protected function mapAssignees(array $values): string
|
||||
{
|
||||
$result = [];
|
||||
|
||||
foreach ($values as $value) {
|
||||
$result[] = $this->template(Resource::COMPONENT_LINK, [
|
||||
'title' => '@' . $value,
|
||||
'link' => 'https://github.com/' . $value,
|
||||
]);
|
||||
}
|
||||
|
||||
return implode(', ', $result);
|
||||
}
|
||||
}
|
||||
@@ -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,12 +3,15 @@
|
||||
namespace LaravelLang\Lang\Services\Filesystem;
|
||||
|
||||
use Helldar\Support\Concerns\Makeable;
|
||||
use Helldar\Support\Facades\Helpers\Ables\Arrayable;
|
||||
use LaravelLang\Lang\Application;
|
||||
use LaravelLang\Lang\Concerns\Storable;
|
||||
use LaravelLang\Lang\Contracts\Filesystem;
|
||||
|
||||
abstract class Base implements Filesystem
|
||||
{
|
||||
use Makeable;
|
||||
use Storable;
|
||||
|
||||
protected Application $app;
|
||||
|
||||
@@ -23,4 +26,14 @@ abstract class Base implements Filesystem
|
||||
{
|
||||
return [];
|
||||
}
|
||||
|
||||
protected function correctValues(array $items): array
|
||||
{
|
||||
$callback = static fn ($value) => stripslashes($value);
|
||||
|
||||
return Arrayable::of($items)
|
||||
->map($callback, true)
|
||||
->renameKeys($callback)
|
||||
->get();
|
||||
}
|
||||
}
|
||||
@@ -4,6 +4,8 @@ namespace LaravelLang\Lang\Services\Filesystem;
|
||||
|
||||
use Helldar\PrettyArray\Services\File as Pretty;
|
||||
use Helldar\Support\Facades\Helpers\Arr;
|
||||
use Helldar\Support\Tools\Stub;
|
||||
use LaravelLang\Lang\Contracts\Stringable;
|
||||
|
||||
final class Json extends Base
|
||||
{
|
||||
@@ -11,11 +13,17 @@ final class Json extends Base
|
||||
{
|
||||
$content = Pretty::make()->loadRaw($path);
|
||||
|
||||
return json_decode($content, true);
|
||||
$items = json_decode($content, true);
|
||||
|
||||
return $this->correctValues($items);
|
||||
}
|
||||
|
||||
public function store(string $path, array|string $content): void
|
||||
public function store(string $path, array|string|Stringable $content, bool $is_simple = false, string $stub = Stub::PHP_ARRAY): void
|
||||
{
|
||||
if ($is_simple) {
|
||||
$content = array_values($content);
|
||||
}
|
||||
|
||||
Arr::storeAsJson($path, $content, false, JSON_UNESCAPED_UNICODE ^ JSON_PRETTY_PRINT);
|
||||
}
|
||||
}
|
||||
@@ -3,11 +3,15 @@
|
||||
namespace LaravelLang\Lang\Services\Filesystem;
|
||||
|
||||
use Helldar\Support\Facades\Helpers\Filesystem\File;
|
||||
use Helldar\Support\Tools\Stub;
|
||||
use LaravelLang\Lang\Contracts\Stringable;
|
||||
|
||||
final class Markdown extends Base
|
||||
{
|
||||
public function store(string $path, array|string $content): void
|
||||
public function store(string $path, array|string|Stringable $content, bool $is_simple = false, string $stub = Stub::PHP_ARRAY): void
|
||||
{
|
||||
$content = $this->prepareToStore($content);
|
||||
|
||||
File::store($path, $content);
|
||||
}
|
||||
}
|
||||
@@ -4,19 +4,26 @@ namespace LaravelLang\Lang\Services\Filesystem;
|
||||
|
||||
use Helldar\PrettyArray\Services\File as Pretty;
|
||||
use Helldar\PrettyArray\Services\Formatter;
|
||||
use Helldar\Support\Tools\Stub;
|
||||
use LaravelLang\Lang\Contracts\Stringable;
|
||||
|
||||
final class Php extends Base
|
||||
{
|
||||
public function load(string $path): array
|
||||
{
|
||||
return Pretty::make()->load($path);
|
||||
$items = Pretty::make()->load($path);
|
||||
|
||||
return $this->correctValues($items);
|
||||
}
|
||||
|
||||
public function store(string $path, array|string $content): void
|
||||
public function store(string $path, array|string|Stringable $content, bool $is_simple = false, string $stub = Stub::PHP_ARRAY): void
|
||||
{
|
||||
$service = Formatter::make();
|
||||
$service->setEqualsAlign();
|
||||
|
||||
Pretty::make($service->raw($content))->store($path);
|
||||
$is_simple
|
||||
? $service->setSimple()
|
||||
: $service->setEqualsAlign();
|
||||
|
||||
Pretty::make($service->raw($content))->store($path, $this->getStub($stub));
|
||||
}
|
||||
}
|
||||
@@ -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,58 @@
|
||||
<?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 $finder
|
||||
) {
|
||||
}
|
||||
|
||||
public function get(string|array $path): array
|
||||
{
|
||||
$this->search($path);
|
||||
|
||||
return $this->files($path);
|
||||
}
|
||||
|
||||
protected function search(string|array $path): void
|
||||
{
|
||||
foreach ($this->find($path) as $file) {
|
||||
$this->push($path, $file->getRealPath());
|
||||
}
|
||||
}
|
||||
|
||||
protected function find(string|array $path): SymfonyFinder
|
||||
{
|
||||
return $this->finder()->in($path)->files()
|
||||
->name($this->names)
|
||||
->contains($this->contains);
|
||||
}
|
||||
|
||||
protected function push(string|array $source, string $path): void
|
||||
{
|
||||
$this->files[$source][] = $path;
|
||||
}
|
||||
|
||||
protected function files(string|array $path): array
|
||||
{
|
||||
return $this->files[$path] ?? [];
|
||||
}
|
||||
|
||||
protected function finder(): SymfonyFinder
|
||||
{
|
||||
return clone $this->finder;
|
||||
}
|
||||
}
|
||||
@@ -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 = ['$', 'self::', 'static::', '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::contains($value, $this->filter));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,109 @@
|
||||
<?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)\(\r*\s*(.+)\r*\s*(\)|,\s?\[)/U';
|
||||
|
||||
protected array $files = [];
|
||||
|
||||
protected array $keys = [];
|
||||
|
||||
public function files(array $files): self
|
||||
{
|
||||
$this->files = $files;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function get(): array
|
||||
{
|
||||
$this->clear();
|
||||
$this->each();
|
||||
$this->sort();
|
||||
|
||||
return $this->keys();
|
||||
}
|
||||
|
||||
protected function clear(): void
|
||||
{
|
||||
$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);
|
||||
|
||||
$sub_value = $this->keys[$sub_key] ?? null;
|
||||
|
||||
$this->push($sub_value);
|
||||
}
|
||||
|
||||
$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)
|
||||
{
|
||||
if (is_string($value)) {
|
||||
$chars = " \t\n\r\0\x0B'\"";
|
||||
|
||||
return trim(stripslashes($value), $chars);
|
||||
}
|
||||
|
||||
return $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());
|
||||
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
use LaravelLang\Lang\Processors\Referents;
|
||||
|
||||
require __DIR__ . '/../vendor/autoload.php';
|
||||
|
||||
/** @var \LaravelLang\Lang\Application $app */
|
||||
$app = require_once __DIR__ . '/bootstrap/app.php';
|
||||
|
||||
$app->processor(Referents::make());
|
||||
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Authentication Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines are used during authentication for various
|
||||
| messages that we need to display to the user. You are free to modify
|
||||
| these language lines according to your application's requirements.
|
||||
|
|
||||
*/
|
||||
|
||||
return {{slot}};
|
||||
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Exclusion list
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This is a list of exclusions for words or phrases where the original
|
||||
| form of the word has the same spelling in a given language.
|
||||
|
|
||||
*/
|
||||
|
||||
return {{slot}};
|
||||
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Pagination Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines are used by the paginator library to build
|
||||
| the simple pagination links. You are free to change them to anything
|
||||
| you want to customize your views to better match your application.
|
||||
|
|
||||
*/
|
||||
|
||||
return {{slot}};
|
||||
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Password Reset Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines are the default lines which match reasons
|
||||
| that are given by the password broker for a password update attempt
|
||||
| has failed, such as for an invalid token or invalid new password.
|
||||
|
|
||||
*/
|
||||
|
||||
return {{slot}};
|
||||
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Validation Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines contain the default error messages used by
|
||||
| the validator class. Some of these rules have multiple versions such
|
||||
| as the size rules. Feel free to tweak each of these messages here.
|
||||
|
|
||||
*/
|
||||
|
||||
return {{slot}};
|
||||
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Validation Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines contain the default error messages used by
|
||||
| the validator class. Some of these rules have multiple versions such
|
||||
| as the size rules. Feel free to tweak each of these messages here.
|
||||
|
|
||||
*/
|
||||
|
||||
return {{slot}};
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
### {{filename}}
|
||||
### [{{basename}}](https://github.com/Laravel-Lang/lang/blob/master/locales/{{locale}}/{{filename}})
|
||||
|
||||
##### Missing: {{count}}
|
||||
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
[Laravel Lang](https://github.com/Laravel-Lang/lang) / [Main Page](index.md) / Referents by language
|
||||
|
||||
# Referents by language
|
||||
|
||||
{{content}}
|
||||
|
||||
[ [to top](#) ]
|
||||
@@ -2,4 +2,6 @@
|
||||
|
||||
# Completion status
|
||||
|
||||
> Translation of localizations is completed by **{{count_diff_percents}}%** ({{count_diff}} / {{count_all}}).
|
||||
|
||||
{{content}}
|
||||
+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());
|
||||
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace Tests\Concerns;
|
||||
|
||||
trait Messages
|
||||
{
|
||||
protected function messageAssertSee(string $path, string $content): string
|
||||
{
|
||||
return sprintf('String "%s" was not found in file %s', $content, realpath($path));
|
||||
}
|
||||
|
||||
protected function messageAssertDoesntSee(string $path, string $content): string
|
||||
{
|
||||
return sprintf('String "%s" was found in file %s', $content, realpath($path));
|
||||
}
|
||||
|
||||
protected function messageForPath(string $path): string
|
||||
{
|
||||
return sprintf('Problem found in file: %s', realpath($path));
|
||||
}
|
||||
|
||||
protected function messageForLocale(string $path, string $locale): string
|
||||
{
|
||||
return sprintf('Found a problem with localization of "%s" in file %s', realpath($path), $locale);
|
||||
}
|
||||
}
|
||||
+18
-13
@@ -3,32 +3,37 @@
|
||||
namespace Tests;
|
||||
|
||||
use Helldar\PrettyArray\Services\File as Pretty;
|
||||
use Helldar\Support\Facades\Helpers\Filesystem\File;
|
||||
|
||||
final class JsonTest extends TestCase
|
||||
{
|
||||
protected string $target_path = __DIR__ . '/../../json';
|
||||
|
||||
public function testJson(): void
|
||||
{
|
||||
$source = $this->source('en.json');
|
||||
foreach ($this->files('.json') as $filename) {
|
||||
$source = $this->source($filename);
|
||||
|
||||
foreach ($this->files() as $file) {
|
||||
$target = $this->load($this->target_path . '/' . $file);
|
||||
foreach ($this->locales() as $locale) {
|
||||
$filename = $this->resolveFilename($filename, $locale);
|
||||
|
||||
$this->assertSame(array_keys($source), array_keys($target));
|
||||
$path = $this->target_path . '/' . $locale . '/' . $filename;
|
||||
|
||||
$target = $this->load($path);
|
||||
|
||||
$this->assertSame(array_keys($source), array_keys($target), $this->messageForPath($path));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected function files(): array
|
||||
{
|
||||
return File::names($this->target_path);
|
||||
}
|
||||
|
||||
protected function load(string $path): array
|
||||
{
|
||||
$content = Pretty::make()->loadRaw($path);
|
||||
|
||||
return json_decode($content, true);
|
||||
$items = json_decode($content, true);
|
||||
|
||||
return $this->correctValues($items);
|
||||
}
|
||||
|
||||
protected function resolveFilename(string $filename, string $locale = null): string
|
||||
{
|
||||
return $this->isMainJson($filename) && ! empty($locale) ? $locale . '.json' : $filename;
|
||||
}
|
||||
}
|
||||
+15
-67
@@ -3,84 +3,32 @@
|
||||
namespace Tests;
|
||||
|
||||
use Helldar\PrettyArray\Services\File as Pretty;
|
||||
use Helldar\Support\Facades\Helpers\Filesystem\Directory;
|
||||
|
||||
final class PhpTest extends TestCase
|
||||
{
|
||||
protected string $target_path = __DIR__ . '/../../src';
|
||||
|
||||
public function testAuth(): void
|
||||
public function testPhp(): void
|
||||
{
|
||||
$filename = 'auth.php';
|
||||
foreach ($this->files('.php') as $filename) {
|
||||
$source = $this->source($filename);
|
||||
|
||||
$source = $this->source($filename);
|
||||
foreach ($this->locales() as $locale) {
|
||||
$path = $this->target_path . '/' . $locale . '/' . $filename;
|
||||
|
||||
foreach ($this->locales() as $locale) {
|
||||
$target = $this->load($this->target_path . '/' . $locale . '/' . $filename);
|
||||
$target = $this->load($path);
|
||||
|
||||
$this->assertSame(array_keys($source), array_keys($target));
|
||||
$this->assertSame(array_keys($source), array_keys($target), $this->messageForLocale($path, $locale));
|
||||
|
||||
if ($this->isInline($filename)) {
|
||||
$this->assertDoesntSee($path, [':attribute', ':Attribute']);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public function testPagination(): void
|
||||
{
|
||||
$filename = 'pagination.php';
|
||||
|
||||
$source = $this->source($filename);
|
||||
|
||||
foreach ($this->locales() as $locale) {
|
||||
$target = $this->load($this->target_path . '/' . $locale . '/' . $filename);
|
||||
|
||||
$this->assertSame(array_keys($source), array_keys($target));
|
||||
}
|
||||
}
|
||||
|
||||
public function testPasswords(): void
|
||||
{
|
||||
$filename = 'passwords.php';
|
||||
|
||||
$source = $this->source($filename);
|
||||
|
||||
foreach ($this->locales() as $locale) {
|
||||
$target = $this->load($this->target_path . '/' . $locale . '/' . $filename);
|
||||
|
||||
$this->assertSame(array_keys($source), array_keys($target));
|
||||
}
|
||||
}
|
||||
|
||||
public function testValidation(): void
|
||||
{
|
||||
$filename = 'validation.php';
|
||||
|
||||
$source = $this->source($filename);
|
||||
|
||||
foreach ($this->locales() as $locale) {
|
||||
$target = $this->load($this->target_path . '/' . $locale . '/' . $filename);
|
||||
|
||||
$this->assertSame(array_keys($source), array_keys($target));
|
||||
}
|
||||
}
|
||||
|
||||
public function testValidationInline(): void
|
||||
{
|
||||
$filename = 'validation-inline.php';
|
||||
|
||||
$source = $this->source($filename);
|
||||
|
||||
foreach ($this->locales() as $locale) {
|
||||
$target = $this->load($this->target_path . '/' . $locale . '/' . $filename);
|
||||
|
||||
$this->assertSame(array_keys($source), array_keys($target));
|
||||
}
|
||||
}
|
||||
|
||||
protected function locales(): array
|
||||
{
|
||||
return Directory::names($this->target_path);
|
||||
}
|
||||
|
||||
protected function load(string $path): array
|
||||
{
|
||||
return Pretty::make()->load($path);
|
||||
$items = Pretty::make()->load($path);
|
||||
|
||||
return $this->correctValues($items);
|
||||
}
|
||||
}
|
||||
@@ -7,7 +7,7 @@ use Helldar\Support\Facades\Helpers\Str;
|
||||
|
||||
class StatusLocalesTest extends TestCase
|
||||
{
|
||||
protected string $source_path = __DIR__ . '/../../src';
|
||||
protected string $source_path = __DIR__ . '/../../locales';
|
||||
|
||||
protected string $target_path = __DIR__ . '/../../docs/statuses';
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ use Helldar\Support\Facades\Helpers\Str;
|
||||
|
||||
final class StatusTest extends TestCase
|
||||
{
|
||||
protected string $target_path = __DIR__ . '/../../src';
|
||||
protected string $target_path = __DIR__ . '/../../locales';
|
||||
|
||||
protected string $status = __DIR__ . '/../../docs/status.md';
|
||||
|
||||
|
||||
+93
-12
@@ -3,46 +3,81 @@
|
||||
namespace Tests;
|
||||
|
||||
use Helldar\PrettyArray\Services\File;
|
||||
use Helldar\Support\Facades\Helpers\Ables\Arrayable;
|
||||
use Helldar\Support\Facades\Helpers\Arr;
|
||||
use Helldar\Support\Facades\Helpers\Filesystem\Directory;
|
||||
use Helldar\Support\Facades\Helpers\Filesystem\File as Filesystem;
|
||||
use Helldar\Support\Facades\Helpers\Str;
|
||||
use LaravelLang\Lang\Constants\Locales;
|
||||
use PHPUnit\Framework\TestCase as BaseTestCase;
|
||||
use Tests\Concerns\Messages;
|
||||
|
||||
abstract class TestCase extends BaseTestCase
|
||||
{
|
||||
protected string $source_path = __DIR__ . '/../../script/en';
|
||||
use Messages;
|
||||
|
||||
protected string $target_path;
|
||||
protected string $source_path = __DIR__ . '/../../source';
|
||||
|
||||
protected string $target_path = __DIR__ . '/../../locales';
|
||||
|
||||
protected function source(string $filename): array
|
||||
{
|
||||
$content = $this->load($this->source_path . '/' . $filename);
|
||||
$content = $this->isJsonFile($filename) ? $this->loadJson() : $this->loadFile($filename);
|
||||
|
||||
if ($this->isValidation($filename)) {
|
||||
$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);
|
||||
}
|
||||
|
||||
protected function loadFile(string $filename): array
|
||||
{
|
||||
return $this->load($this->source_path . '/' . $filename);
|
||||
}
|
||||
|
||||
protected function loadJson(): array
|
||||
{
|
||||
$items = [];
|
||||
|
||||
foreach ($this->files('json', true) as $file) {
|
||||
$values = $this->loadFile($file);
|
||||
|
||||
$items = Arr::addUnique($items, $values);
|
||||
}
|
||||
|
||||
return Arr::renameKeys($items, static fn ($key, $value) => $value);
|
||||
}
|
||||
|
||||
protected function assertSee(string $path, string $content): void
|
||||
{
|
||||
$file = File::make()->loadRaw($path);
|
||||
|
||||
$this->assertTrue(Str::contains($file, $content));
|
||||
$this->assertTrue(
|
||||
str_contains($file, $content),
|
||||
$this->messageAssertSee($path, $content)
|
||||
);
|
||||
}
|
||||
|
||||
protected function assertDoesntSee(string $path, string $content): void
|
||||
protected function assertDoesntSee(string $path, string|array $content): void
|
||||
{
|
||||
$file = File::make()->loadRaw($path);
|
||||
|
||||
$this->assertFalse(Str::contains($file, $content));
|
||||
$values = Arr::wrap($content);
|
||||
|
||||
foreach ($values as $value) {
|
||||
$this->assertFalse(
|
||||
str_contains($file, $value),
|
||||
$this->messageAssertDoesntSee($path, $value)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
protected function sort(array &$array): void
|
||||
@@ -50,8 +85,54 @@ abstract class TestCase extends BaseTestCase
|
||||
$array = Arr::ksort($array);
|
||||
}
|
||||
|
||||
protected function files(string $extension, bool $recursive = false): array
|
||||
{
|
||||
return Filesystem::names($this->source_path, static fn ($filename) => str_ends_with($filename, $extension), $recursive);
|
||||
}
|
||||
|
||||
protected function locales(): array
|
||||
{
|
||||
return Directory::names($this->target_path);
|
||||
}
|
||||
|
||||
protected function isValidation(string $filename): bool
|
||||
{
|
||||
return Str::startsWith($filename, 'validation');
|
||||
return str_starts_with($filename, 'validation');
|
||||
}
|
||||
|
||||
protected function isInline(string $filename): bool
|
||||
{
|
||||
return str_contains($filename, 'inline');
|
||||
}
|
||||
|
||||
protected function isMainJson(string $filename): bool
|
||||
{
|
||||
if ($this->isEnglish($filename)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
$locale = Str::before($filename, '.');
|
||||
|
||||
return Directory::exists(__DIR__ . '/../../locales/' . $locale);
|
||||
}
|
||||
|
||||
protected function isJsonFile(string $filename): bool
|
||||
{
|
||||
return str_ends_with($filename, 'json');
|
||||
}
|
||||
|
||||
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());
|
||||
+13
-4
@@ -23,16 +23,25 @@
|
||||
},
|
||||
"require-dev": {
|
||||
"php": "^8.0",
|
||||
"andrey-helldar/pretty-array": "^2.1",
|
||||
"andrey-helldar/support": "^3.2",
|
||||
"andrey-helldar/pretty-array": "^2.3",
|
||||
"andrey-helldar/support": "^3.16.1",
|
||||
"guzzlehttp/guzzle": "^7.3",
|
||||
"laravel/breeze": "^1.2",
|
||||
"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",
|
||||
|
||||
+316
-57
@@ -7,6 +7,255 @@ 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).
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
## [10.1.2] - 2021-06-29
|
||||
|
||||
### Changed
|
||||
|
||||
* feature: [cs] #1792 #1793 auth.php, json file
|
||||
* feature: [de] #1786 #1791 validation.php, validation-inline.php, json file
|
||||
* feature: [es] #1784 #1789 validation.php, validation-inline.php, json file
|
||||
* feature: [fi] #1783 exclude, auth.php, json file
|
||||
* feature: [fr] validation.php, validation-inline.php, json file
|
||||
* feature: [pl] #1782 json file
|
||||
* feature: [zh_TW] #1779 json file
|
||||
|
||||
### Reference
|
||||
|
||||
* #1784 Add validation.current_password rule
|
||||
* #1789 Remove non ASCII apostrophe from email notification
|
||||
|
||||
## [10.1.1] - 2021-06-16
|
||||
|
||||
### Changed
|
||||
|
||||
* feature: [ar] #1777 json file
|
||||
* feature: [es] #1775 exclude
|
||||
* feature: [it] #1774 #1778 json file
|
||||
* feature: [lv] #1780 auth.php validation.php passwords.php
|
||||
* feature: [vi] #1776 json file
|
||||
|
||||
### Todo script
|
||||
|
||||
* fix: #1773 removed special characters from the commit header
|
||||
|
||||
## [10.1.0] - 2021-06-02
|
||||
|
||||
### Changed
|
||||
|
||||
* feature: [ms] #1772 auth.php
|
||||
|
||||
### Reference
|
||||
|
||||
* add Laravel Breeze
|
||||
|
||||
### Todo script
|
||||
|
||||
* fix: #1762 Some translations have been lost in the new version (10.0)
|
||||
|
||||
## [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:
|
||||
|
||||
* `source/` - stores php and json source files
|
||||
* `locales/{locale}` - stores php and json files with translations.
|
||||
|
||||
For more information, see #1606 and #1607.
|
||||
|
||||
## [8.1.3] - 2021-04-14
|
||||
|
||||
### Changed
|
||||
|
||||
* feature: [hu] #1609 auth.php
|
||||
* feature: [nl] #1603 #1610 validation.php validation-inline.php json file
|
||||
|
||||
### Documentation
|
||||
|
||||
* feature: #1599 contributing to dev
|
||||
* feature: #1601 referents
|
||||
* feature: #1614 readme
|
||||
|
||||
### Todo script
|
||||
|
||||
* feature: #1600 Added validation for the `:attribute` string in the `validation-inline.php` files
|
||||
* feature: #1602 Added auto-update `docs/referents.md` file
|
||||
* feature: #1604 Added check of exclusion files for keys relevance
|
||||
|
||||
## [8.1.2] - 2021-04-07
|
||||
|
||||
### Changed
|
||||
@@ -155,18 +404,18 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
### 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
|
||||
|
||||
@@ -185,11 +434,11 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
### 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
|
||||
|
||||
@@ -199,74 +448,72 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
### 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
|
||||
|
||||
@@ -284,7 +531,19 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
* feature: #1269 Rename locale folders following ISO 15897 format
|
||||
|
||||
[Unreleased]: https://github.com/caouecs/Laravel-lang/compare/8.1.2...master
|
||||
[Unreleased]: https://github.com/caouecs/Laravel-lang/compare/10.1.2...master
|
||||
[10.1.2]: https://github.com/caouecs/Laravel-lang/compare/10.1.1...10.1.2
|
||||
[10.1.1]: https://github.com/caouecs/Laravel-lang/compare/10.1.0...10.1.1
|
||||
[10.1.0]: https://github.com/caouecs/Laravel-lang/compare/10.0.2...10.1.0
|
||||
[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
|
||||
[8.1.1]: https://github.com/caouecs/Laravel-lang/compare/8.1.0...8.1.1
|
||||
[8.1.0]: https://github.com/caouecs/Laravel-lang/compare/8.0.3...8.1.0
|
||||
|
||||
+30
-14
@@ -9,9 +9,25 @@ We accept contributions via Pull Requests on [Github](https://github.com/Laravel
|
||||
## How can I add a language in this project ?
|
||||
|
||||
* fork this repository
|
||||
* create a directory in *src* with the short name of the language (ex: fr for French) from ISO-639-1 (
|
||||
* create a directory in `locales` with the short name of the language (ex: `fr` for French) from ISO-639-1 (
|
||||
see [Wikipedia](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) )
|
||||
* copy these four files of the English version with your translation : from `script/en` directory
|
||||
* copy these five files of the English version with your translation : from `source` directory
|
||||
* `en.json`
|
||||
* `auth.php`
|
||||
* `pagination.php`
|
||||
* `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**
|
||||
appear.
|
||||
* add a pull request with the name of the language
|
||||
* ex: [fr] New language
|
||||
|
||||
@@ -24,8 +40,8 @@ We accept contributions via Pull Requests on [Github](https://github.com/Laravel
|
||||
|
||||
## What should I do if there is a tag whose translation is the same as in English?
|
||||
|
||||
In some languages there are some strings whose translation is the same as in English. In this case, the script that generates the [status](status.md) adds
|
||||
them by default to the list of pending translations. This affects the *completion status* for this language which would never be marked in *status list* with (
|
||||
In some languages there are some strings whose translation is the same as in English. In this case, the script that generates the [status](status.md) adds them
|
||||
by default to the list of pending translations. This affects the *completion status* for this language which would never be marked in *status list* with (
|
||||
✔) but with (❗) even if all other strings were translated.
|
||||
|
||||
We can avoid this situation in the following way:
|
||||
@@ -39,17 +55,17 @@ We can avoid this situation in the following way:
|
||||
```php
|
||||
<?php
|
||||
|
||||
return [
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Exclusion list
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This is a list of exclusions for words or phrases where the original
|
||||
| form of the word has the same spelling in a given language.
|
||||
|
|
||||
*/
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Exclusion list
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This is a list of exclusions for words or phrases where the original
|
||||
| form of the word has the same spelling in a given language.
|
||||
|
|
||||
*/
|
||||
|
||||
return [
|
||||
'API Token',
|
||||
'Email',
|
||||
];
|
||||
|
||||
+2
-3
@@ -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
|
||||
|
||||
@@ -30,7 +29,7 @@ In the file *config/app.php*, change the value of *locale* by the short name of
|
||||
|
||||
Please see [contributing](contributing-to-dev.md) page for details.
|
||||
|
||||
## Projects based on this package
|
||||
## Translation managers
|
||||
|
||||
* [LaravelLang](https://github.com/ARCANEDEV/LaravelLang) by [*@arcanedev-maroc*](https://github.com/ARCANEDEV) - Translations manager and checker for Laravel.
|
||||
* [Laravel-lang](https://github.com/overtrue/laravel-lang) by [*@overtrue*](https://github.com/overtrue) - Command to add languages in your project.
|
||||
|
||||
+590
-79
@@ -1,82 +1,593 @@
|
||||
[Laravel Lang](https://github.com/Laravel-Lang/lang) / [Main Page](index.md) / Referents
|
||||
[Laravel Lang](https://github.com/Laravel-Lang/lang) / [Main Page](index.md) / Referents by language
|
||||
|
||||
# Referents by language
|
||||
|
||||
| Lang | Assignee |
|
||||
| --- |:--|
|
||||
| af | |
|
||||
| ar | [@mohamedsabil83](https://github.com/mohamedsabil83), [@Khuthaily](https://github.com/Khuthaily) |
|
||||
| az | |
|
||||
| be | |
|
||||
| bg | |
|
||||
| bn | |
|
||||
| bs | |
|
||||
| ca | |
|
||||
| cs | |
|
||||
| cy | |
|
||||
| da | [@jensstigaard](https://github.com/jensstigaard) |
|
||||
| de | [@WhereIsLucas](https://github.com/WhereIsLucas) |
|
||||
| de_CH | |
|
||||
| el | |
|
||||
| es | [@luisprmat](https://github.com/luisprmat) |
|
||||
| et | |
|
||||
| eu | |
|
||||
| fa | |
|
||||
| fi | |
|
||||
| fil | |
|
||||
| fr | [@caouecs](https://github.com/caouecs), [@WhereIsLucas](https://github.com/WhereIsLucas) |
|
||||
| gl | |
|
||||
| he | |
|
||||
| hi | |
|
||||
| hr | |
|
||||
| hu | |
|
||||
| hy | |
|
||||
| id | |
|
||||
| is | |
|
||||
| it | [@masterix21](https://github.com/masterix21) |
|
||||
| ja | |
|
||||
| ka | |
|
||||
| kk | |
|
||||
| km | |
|
||||
| kn | |
|
||||
| ko | |
|
||||
| lt | |
|
||||
| lv | |
|
||||
| mk | [@keljtanoski](https://github.com/keljtanoski) |
|
||||
| mn | |
|
||||
| mr | |
|
||||
| ms | |
|
||||
| nb | |
|
||||
| ne | |
|
||||
| nl | [@WhereIsLucas](https://github.com/WhereIsLucas) |
|
||||
| nn | |
|
||||
| pl | |
|
||||
| ps | |
|
||||
| pt | [@jorgercosta](https://github.com/jorgercosta) |
|
||||
| pt_BR | |
|
||||
| ro | |
|
||||
| ru | [@andrey-helldar](https://github.com/andrey-helldar) |
|
||||
| sc | |
|
||||
| si | |
|
||||
| sk | |
|
||||
| sl | |
|
||||
| sq | |
|
||||
| sr_Cyrl | [@LukaLatkovic](https://github.com/LukaLatkovic) |
|
||||
| sr_Latn | [@LukaLatkovic](https://github.com/LukaLatkovic) |
|
||||
| sr_Latn_ME | [@LukaLatkovic](https://github.com/LukaLatkovic) |
|
||||
| sv | |
|
||||
| sw | |
|
||||
| tg | |
|
||||
| th | |
|
||||
| tk | |
|
||||
| tl | |
|
||||
| tr | |
|
||||
| ug | |
|
||||
| uk | [@MrAlKuz](https://github.com/MrAlKuz) |
|
||||
| ur | |
|
||||
| uz_Cyrl | |
|
||||
| uz_Latn | |
|
||||
| vi | |
|
||||
| zh_CN | [@overtrue](https://github.com/overtrue) |
|
||||
| zh_HK | [@overtrue](https://github.com/overtrue) |
|
||||
| zh_TW | [@overtrue](https://github.com/overtrue) |
|
||||
<table >
|
||||
<tr><td align="left" >
|
||||
af
|
||||
</td>
|
||||
<td align="left" >
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
ar
|
||||
</td>
|
||||
<td align="left" >
|
||||
|
||||
[@mohamedsabil83](https://github.com/mohamedsabil83)
|
||||
,
|
||||
[@Khuthaily](https://github.com/Khuthaily)
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
az
|
||||
</td>
|
||||
<td align="left" >
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
be
|
||||
</td>
|
||||
<td align="left" >
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
bg
|
||||
</td>
|
||||
<td align="left" >
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
bn
|
||||
</td>
|
||||
<td align="left" >
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
bs
|
||||
</td>
|
||||
<td align="left" >
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
ca
|
||||
</td>
|
||||
<td align="left" >
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
cs
|
||||
</td>
|
||||
<td align="left" >
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
cy
|
||||
</td>
|
||||
<td align="left" >
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
da
|
||||
</td>
|
||||
<td align="left" >
|
||||
|
||||
[@jensstigaard](https://github.com/jensstigaard)
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
de
|
||||
</td>
|
||||
<td align="left" >
|
||||
|
||||
[@WhereIsLucas](https://github.com/WhereIsLucas)
|
||||
,
|
||||
[@sotten](https://github.com/sotten)
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
de_CH
|
||||
</td>
|
||||
<td align="left" >
|
||||
|
||||
[@sotten](https://github.com/sotten)
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
el
|
||||
</td>
|
||||
<td align="left" >
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
es
|
||||
</td>
|
||||
<td align="left" >
|
||||
|
||||
[@luisprmat](https://github.com/luisprmat)
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
et
|
||||
</td>
|
||||
<td align="left" >
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
eu
|
||||
</td>
|
||||
<td align="left" >
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
fa
|
||||
</td>
|
||||
<td align="left" >
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
fi
|
||||
</td>
|
||||
<td align="left" >
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
fil
|
||||
</td>
|
||||
<td align="left" >
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
fr
|
||||
</td>
|
||||
<td align="left" >
|
||||
|
||||
[@caouecs](https://github.com/caouecs)
|
||||
,
|
||||
[@WhereIsLucas](https://github.com/WhereIsLucas)
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
gl
|
||||
</td>
|
||||
<td align="left" >
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
he
|
||||
</td>
|
||||
<td align="left" >
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
hi
|
||||
</td>
|
||||
<td align="left" >
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
hr
|
||||
</td>
|
||||
<td align="left" >
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
hu
|
||||
</td>
|
||||
<td align="left" >
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
hy
|
||||
</td>
|
||||
<td align="left" >
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
id
|
||||
</td>
|
||||
<td align="left" >
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
is
|
||||
</td>
|
||||
<td align="left" >
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
it
|
||||
</td>
|
||||
<td align="left" >
|
||||
|
||||
[@masterix21](https://github.com/masterix21)
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
ja
|
||||
</td>
|
||||
<td align="left" >
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
ka
|
||||
</td>
|
||||
<td align="left" >
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
kk
|
||||
</td>
|
||||
<td align="left" >
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
km
|
||||
</td>
|
||||
<td align="left" >
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
kn
|
||||
</td>
|
||||
<td align="left" >
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
ko
|
||||
</td>
|
||||
<td align="left" >
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
lt
|
||||
</td>
|
||||
<td align="left" >
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
lv
|
||||
</td>
|
||||
<td align="left" >
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
mk
|
||||
</td>
|
||||
<td align="left" >
|
||||
|
||||
[@keljtanoski](https://github.com/keljtanoski)
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
mn
|
||||
</td>
|
||||
<td align="left" >
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
mr
|
||||
</td>
|
||||
<td align="left" >
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
ms
|
||||
</td>
|
||||
<td align="left" >
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
nb
|
||||
</td>
|
||||
<td align="left" >
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
ne
|
||||
</td>
|
||||
<td align="left" >
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
nl
|
||||
</td>
|
||||
<td align="left" >
|
||||
|
||||
[@WhereIsLucas](https://github.com/WhereIsLucas)
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
nn
|
||||
</td>
|
||||
<td align="left" >
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
oc
|
||||
</td>
|
||||
<td align="left" >
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
pl
|
||||
</td>
|
||||
<td align="left" >
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
ps
|
||||
</td>
|
||||
<td align="left" >
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
pt
|
||||
</td>
|
||||
<td align="left" >
|
||||
|
||||
[@jorgercosta](https://github.com/jorgercosta)
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
pt_BR
|
||||
</td>
|
||||
<td align="left" >
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
ro
|
||||
</td>
|
||||
<td align="left" >
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
ru
|
||||
</td>
|
||||
<td align="left" >
|
||||
|
||||
[@andrey-helldar](https://github.com/andrey-helldar)
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
sc
|
||||
</td>
|
||||
<td align="left" >
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
si
|
||||
</td>
|
||||
<td align="left" >
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
sk
|
||||
</td>
|
||||
<td align="left" >
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
sl
|
||||
</td>
|
||||
<td align="left" >
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
sq
|
||||
</td>
|
||||
<td align="left" >
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
sr_Cyrl
|
||||
</td>
|
||||
<td align="left" >
|
||||
|
||||
[@LukaLatkovic](https://github.com/LukaLatkovic)
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
sr_Latn
|
||||
</td>
|
||||
<td align="left" >
|
||||
|
||||
[@LukaLatkovic](https://github.com/LukaLatkovic)
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
sr_Latn_ME
|
||||
</td>
|
||||
<td align="left" >
|
||||
|
||||
[@LukaLatkovic](https://github.com/LukaLatkovic)
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
sv
|
||||
</td>
|
||||
<td align="left" >
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
sw
|
||||
</td>
|
||||
<td align="left" >
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
tg
|
||||
</td>
|
||||
<td align="left" >
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
th
|
||||
</td>
|
||||
<td align="left" >
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
tk
|
||||
</td>
|
||||
<td align="left" >
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
tl
|
||||
</td>
|
||||
<td align="left" >
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
tr
|
||||
</td>
|
||||
<td align="left" >
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
ug
|
||||
</td>
|
||||
<td align="left" >
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
uk
|
||||
</td>
|
||||
<td align="left" >
|
||||
|
||||
[@MrAlKuz](https://github.com/MrAlKuz)
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
ur
|
||||
</td>
|
||||
<td align="left" >
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
uz_Cyrl
|
||||
</td>
|
||||
<td align="left" >
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
uz_Latn
|
||||
</td>
|
||||
<td align="left" >
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
vi
|
||||
</td>
|
||||
<td align="left" >
|
||||
|
||||
[@dinhquochan](https://github.com/dinhquochan)
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
zh_CN
|
||||
</td>
|
||||
<td align="left" >
|
||||
|
||||
[@overtrue](https://github.com/overtrue)
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
zh_HK
|
||||
</td>
|
||||
<td align="left" >
|
||||
|
||||
[@overtrue](https://github.com/overtrue)
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
zh_TW
|
||||
</td>
|
||||
<td align="left" >
|
||||
|
||||
[@overtrue](https://github.com/overtrue)
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
|
||||
[ [to top](#) ]
|
||||
+145
-146
@@ -2,408 +2,407 @@
|
||||
|
||||
# Completion status
|
||||
|
||||
> Translation of localizations is completed by **78%** (54.8K / 70.2K).
|
||||
|
||||
<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)
|
||||
[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)
|
||||
|
||||
</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)
|
||||
[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)
|
||||
|
||||
</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>
|
||||
|
||||
+100
-1510
File diff suppressed because it is too large.
Load diff
+53
-2
@@ -2,7 +2,58 @@
|
||||
|
||||
# ar
|
||||
|
||||
##### All missed: 0
|
||||
##### All missed: 3
|
||||
|
||||
All lines are translated 😊
|
||||
|
||||
### [validation-inline](https://github.com/Laravel-Lang/lang/blob/master/locales/ar/validation-inline.php)
|
||||
|
||||
##### Missing: 1
|
||||
|
||||
<table >
|
||||
<tr><td align="left" >
|
||||
current_password
|
||||
</td>
|
||||
<td align="left" >
|
||||
The password is incorrect.
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
|
||||
[ [go back](../status.md) | [to top](#) ]
|
||||
|
||||
### [validation](https://github.com/Laravel-Lang/lang/blob/master/locales/ar/validation.php)
|
||||
|
||||
##### Missing: 1
|
||||
|
||||
<table >
|
||||
<tr><td align="left" >
|
||||
current_password
|
||||
</td>
|
||||
<td align="left" >
|
||||
The password is incorrect.
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
|
||||
[ [go back](../status.md) | [to top](#) ]
|
||||
|
||||
### [ar](https://github.com/Laravel-Lang/lang/blob/master/locales/ar/ar.json)
|
||||
|
||||
##### Missing: 1
|
||||
|
||||
<table >
|
||||
<tr><td align="left" >
|
||||
If you're having trouble clicking the ":actionText" button, copy and paste the URL below
|
||||
into your web browser:
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
|
||||
[ [go back](../status.md) | [to top](#) ]
|
||||
|
||||
+309
-2249
File diff suppressed because it is too large.
Load diff
+296
-2526
File diff suppressed because it is too large.
Load diff
+330
-2549
File diff suppressed because it is too large.
Load diff
+294
-2508
File diff suppressed because it is too large.
Load diff
+222
-2445
File diff suppressed because it is too large.
Load diff
+281
-1995
File diff suppressed because it is too large.
Load diff
+323
-2201
File diff suppressed because it is too large.
Load diff
+342
-2579
File diff suppressed because it is too large.
Load diff
+367
-1924
File diff suppressed because it is too large.
Load diff
+478
-2331
File diff suppressed because it is too large.
Load diff
+2
-1796
File diff suppressed because it is too large.
Load diff
+226
-2215
File diff suppressed because it is too large.
Load diff
+224
-2464
File diff suppressed because it is too large.
Load diff
+225
-2328
File diff suppressed because it is too large.
Load diff
+364
-197
File diff suppressed because it is too large.
Load diff
+11
-2894
File diff suppressed because it is too large.
Load diff
+600
-141
File diff suppressed because it is too large.
Load diff
+53
-2
@@ -2,7 +2,58 @@
|
||||
|
||||
# fr
|
||||
|
||||
##### All missed: 0
|
||||
##### All missed: 3
|
||||
|
||||
All lines are translated 😊
|
||||
|
||||
### [validation-inline](https://github.com/Laravel-Lang/lang/blob/master/locales/fr/validation-inline.php)
|
||||
|
||||
##### Missing: 1
|
||||
|
||||
<table >
|
||||
<tr><td align="left" >
|
||||
current_password
|
||||
</td>
|
||||
<td align="left" >
|
||||
The password is incorrect.
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
|
||||
[ [go back](../status.md) | [to top](#) ]
|
||||
|
||||
### [validation](https://github.com/Laravel-Lang/lang/blob/master/locales/fr/validation.php)
|
||||
|
||||
##### Missing: 1
|
||||
|
||||
<table >
|
||||
<tr><td align="left" >
|
||||
current_password
|
||||
</td>
|
||||
<td align="left" >
|
||||
The password is incorrect.
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
|
||||
[ [go back](../status.md) | [to top](#) ]
|
||||
|
||||
### [fr](https://github.com/Laravel-Lang/lang/blob/master/locales/fr/fr.json)
|
||||
|
||||
##### Missing: 1
|
||||
|
||||
<table >
|
||||
<tr><td align="left" >
|
||||
If you're having trouble clicking the ":actionText" button, copy and paste the URL below
|
||||
into your web browser:
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
|
||||
[ [go back](../status.md) | [to top](#) ]
|
||||
|
||||
+240
-1952
File diff suppressed because it is too large.
Load diff
+259
-2309
File diff suppressed because it is too large.
Load diff
Loaded 100 of 975 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user