Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e24ca609e7 | ||
|
|
b2cb86954f | ||
|
|
19b2db6ce4 | ||
|
|
0df29b6e6b | ||
|
|
e9822bdbec | ||
|
|
7aeeef8dd2 | ||
|
|
8597c95b7e | ||
|
|
7a3059e163 | ||
|
|
69c3d7046b | ||
|
|
eb0b725069 | ||
|
|
6d4e4db84a | ||
|
|
9e79a32e7a | ||
|
|
a7773e4873 | ||
|
|
2f6077c276 | ||
|
|
d03c7e9220 | ||
|
|
3df3e76ea7 | ||
|
|
0f2d22e49a | ||
|
|
8b0e9d5d87 | ||
|
|
2d4bda681d | ||
|
|
e7dbde19a8 | ||
|
|
6952fc2c14 | ||
|
|
b819143ed8 | ||
|
|
075a4367be | ||
|
|
51431def38 | ||
|
|
c6c171aee4 | ||
|
|
96ae9bb803 | ||
|
|
dbbb9ca155 | ||
|
|
f3c391cd40 | ||
|
|
0abbea4210 | ||
|
|
b3e5ba1358 | ||
|
|
1362a04c4d | ||
|
|
73551dd24e | ||
|
|
1d2106a654 | ||
|
|
f07cafcff1 | ||
|
|
45f3408944 | ||
|
|
5afba60e48 | ||
|
|
914642ba67 | ||
|
|
e1e4be0a32 | ||
|
|
2fce7ae0cf | ||
|
|
cc7e6ac818 | ||
|
|
ceda6cfa74 | ||
|
|
dfb9f7b4b3 | ||
|
|
213c933476 | ||
|
|
43cef9d57f | ||
|
|
03c7d30fe6 | ||
|
|
68e739b3ab | ||
|
|
0191263147 | ||
|
|
b2ba5b72f4 | ||
|
|
1bc8d5de97 | ||
|
|
0ec5422442 | ||
|
|
a457cede78 | ||
|
|
81a7dd8aa0 | ||
|
|
c08715d032 | ||
|
|
8e248a6005 | ||
|
|
4a4433efa2 | ||
|
|
ce9e1d5cfe | ||
|
|
a3637af306 | ||
|
|
ce2c44bcff | ||
|
|
12d9b1476e | ||
|
|
b5b2ec9640 | ||
|
|
2e8c21ad50 | ||
|
|
2929138573 | ||
|
|
47910a11e6 | ||
|
|
1668069356 | ||
|
|
9b547375cf | ||
|
|
921b56e1ff | ||
|
|
05bcfd02b8 | ||
|
|
23c1858afc | ||
|
|
c77ea62158 | ||
|
|
751e1e6875 | ||
|
|
dd866d06f2 | ||
|
|
2627908aa6 | ||
|
|
fab64d9743 | ||
|
|
a9e51c6905 | ||
|
|
b2e227edda | ||
|
|
105d92def8 | ||
|
|
0a3c096a10 | ||
|
|
2d673e1628 | ||
|
|
3ddff83bb4 | ||
|
|
fdb76d69e0 | ||
|
|
517b72ce04 | ||
|
|
28a0256649 | ||
|
|
7607aad01b | ||
|
|
280425b74f | ||
|
|
82a605e195 | ||
|
|
dab4d008b9 | ||
|
|
763b436d11 | ||
|
|
34c0185eee | ||
|
|
c7960c8067 | ||
|
|
0e74e55161 | ||
|
|
ed6e5cff7a | ||
|
|
90dd9c9c83 | ||
|
|
bf9c7188d8 | ||
|
|
7b772dc3a5 | ||
|
|
84d7afc7f2 | ||
|
|
c0b4a34672 | ||
|
|
84f410b7c3 | ||
|
|
dc6b8fbd38 | ||
|
|
a9212ba917 | ||
|
|
c411bdc127 | ||
|
|
3aa9255349 | ||
|
|
c6194663a0 | ||
|
|
a851a3cad6 | ||
|
|
031c48d920 | ||
|
|
c30c103197 | ||
|
|
db421fb73a | ||
|
|
7188365196 | ||
|
|
3dda0438e1 | ||
|
|
14dfb128fa | ||
|
|
fd0847b7ff | ||
|
|
0118ef8d76 | ||
|
|
359bbd5749 | ||
|
|
6bcc49ed59 | ||
|
|
6802ce4def | ||
|
|
c74f1ab96b | ||
|
|
2c10dc9b27 | ||
|
|
a2cbe1e62b | ||
|
|
8582325a6d | ||
|
|
fc4835168e | ||
|
|
502b1c3261 | ||
|
|
e0d8c4576f | ||
|
|
1aad1f779e | ||
|
|
35b3ab6fc0 | ||
|
|
bfd8ac369c | ||
|
|
078b00cc7c | ||
|
|
76c21db53b | ||
|
|
cf10b07997 | ||
|
|
adf5652757 | ||
|
|
d5a9e83f21 | ||
|
|
2b67e76a0e | ||
|
|
060c2405d4 | ||
|
|
03c254f827 | ||
|
|
fad38bb509 | ||
|
|
3e391c7f10 | ||
|
|
e4c577be83 | ||
|
|
c257ff01ca | ||
|
|
fb6e8363e1 | ||
|
|
b9ab4d52c0 | ||
|
|
3f30d59818 | ||
|
|
abbd917c09 | ||
|
|
a5444db687 | ||
|
|
969f39bcb6 | ||
|
|
586fe5a009 | ||
|
|
b59e1f54c4 | ||
|
|
38e6258b3d | ||
|
|
ba5d43ca95 | ||
|
|
198e10333a | ||
|
|
dc4a253ec3 | ||
|
|
e8996e8cec | ||
|
|
e49c413377 | ||
|
|
ce9b12b057 | ||
|
|
308b6490bc | ||
|
|
3e5cf1d56d | ||
|
|
b83be8a8f6 | ||
|
|
cbb584eb0b | ||
|
|
fc6d851a51 | ||
|
|
b443f6a3cf | ||
|
|
87330db4b3 | ||
|
|
bb72d67b2c | ||
|
|
3ed7046da1 | ||
|
|
6d187368d1 | ||
|
|
c39e987326 | ||
|
|
63eefd6335 | ||
|
|
fb16c40f63 | ||
|
|
81a6bf9d2f | ||
|
|
4bfc3fe13f | ||
|
|
e358f2c869 | ||
|
|
d29cc715ba | ||
|
|
b8862067f2 | ||
|
|
11baf67e4c | ||
|
|
888cafc81e | ||
|
|
f9ecb974fe | ||
|
|
336405cf0a | ||
|
|
1dff849a02 | ||
|
|
5dc56d28da | ||
|
|
29cf77e6d1 | ||
|
|
33f7774aa9 | ||
|
|
82c79f4dbb | ||
|
|
b4c56d7d5c | ||
|
|
dfb2c7089f | ||
|
|
a4d9401ce5 | ||
|
|
1759a5eb4f | ||
|
|
2ed16e9b84 | ||
|
|
ad31f0bdff | ||
|
|
00f0a3e92a | ||
|
|
4c6d50c64b | ||
|
|
f44e1c392c | ||
|
|
7197c5815b | ||
|
|
6e436494d9 | ||
|
|
03d9b45529 | ||
|
|
fc2425dcd8 | ||
|
|
972281d9ca | ||
|
|
60345e6462 | ||
|
|
e29978235a | ||
|
|
5781af14e2 | ||
|
|
7fc5425e45 | ||
|
|
7147ccbae0 | ||
|
|
4e87f33ade | ||
|
|
08cae73d4f | ||
|
|
dabbf7ac99 | ||
|
|
ab2418a01a | ||
|
|
9fd292346a | ||
|
|
6bfad32d5a | ||
|
|
95d3e60db5 | ||
|
|
9406f965e3 | ||
|
|
f85776dce9 | ||
|
|
06bed0f8b1 | ||
|
|
1e73b6e710 | ||
|
|
b365b48687 | ||
|
|
f644887e9d | ||
|
|
8dc6720d05 | ||
|
|
51ffe5d8b5 | ||
|
|
0f7b377f61 | ||
|
|
40f9c9289d | ||
|
|
63ad3a6643 | ||
|
|
f95a97738c | ||
|
|
f521a7e0c3 | ||
|
|
aaa710deb6 | ||
|
|
fb51732375 | ||
|
|
76949cebde | ||
|
|
53f00b62f3 | ||
|
|
9df9831cdc | ||
|
|
20bf5c1308 | ||
|
|
51c04fcf77 | ||
|
|
c554eee8eb | ||
|
|
e9e3625e8d | ||
|
|
9d2d881645 | ||
|
|
d0438381e8 | ||
|
|
8dfa8be102 | ||
|
|
adf86c45a4 | ||
|
|
cba57cad91 | ||
|
|
b0f220bbcb | ||
|
|
6bc089c113 | ||
|
|
3a6f67e22c | ||
|
|
cc440db68a | ||
|
|
0d6d95445c | ||
|
|
7212418be3 | ||
|
|
cc1fb00881 | ||
|
|
bf15349940 | ||
|
|
e803aa984e | ||
|
|
b2298331fb | ||
|
|
09ad935287 | ||
|
|
ab852c3d29 | ||
|
|
5f31ed9e8e | ||
|
|
8f6560785e | ||
|
|
92fa2bda8c | ||
|
|
43b82eca02 | ||
|
|
755371bccc | ||
|
|
2df798a535 | ||
|
|
dea88ce69c | ||
|
|
64b6576cdd | ||
|
|
cbcd849624 | ||
|
|
fbca8cc862 | ||
|
|
8d89a21f1e | ||
|
|
a1647c62d5 | ||
|
|
05ce635f58 | ||
|
|
50c6329f59 | ||
|
|
b2ca80fb37 | ||
|
|
9e450472a8 | ||
|
|
046b098f38 | ||
|
|
b5d4cdd795 | ||
|
|
048feb0d8a | ||
|
|
c7c8226ed2 | ||
|
|
c9b5e06a2c | ||
|
|
71ef8f9286 | ||
|
|
985d723462 | ||
|
|
336a09b8be | ||
|
|
91907c193f | ||
|
|
1f758de74f | ||
|
|
833e292c0d | ||
|
|
14b4e1f305 | ||
|
|
4a73c7b181 | ||
|
|
e8d0a62e0b | ||
|
|
d3f28401e6 | ||
|
|
c1c6108571 | ||
|
|
7f19db2720 | ||
|
|
0c03abaddf | ||
|
|
1e1ff85c26 | ||
|
|
c7e11667b6 | ||
|
|
2c56c5a778 | ||
|
|
9a54b05281 | ||
|
|
08ff7bcb86 | ||
|
|
9525f213ea | ||
|
|
b4b72510c8 | ||
|
|
3b6510e86e | ||
|
|
6ac6ebeede | ||
|
|
2301e8a198 | ||
|
|
bae13f7791 | ||
|
|
6073c2bd1f | ||
|
|
883161477a | ||
|
|
642c935d18 | ||
|
|
3d6efbea45 | ||
|
|
7e77ca8a52 | ||
|
|
b11a6df004 | ||
|
|
b2992b77ae | ||
|
|
da347eb3a6 | ||
|
|
43d564081c | ||
|
|
7432c2c5e1 | ||
|
|
1372eb73e5 | ||
|
|
44df9991a7 | ||
|
|
abce69f071 | ||
|
|
6100d71a8a | ||
|
|
c749236577 | ||
|
|
1d79ddd183 | ||
|
|
f5431ec78d | ||
|
|
bb110d07d5 | ||
|
|
68df6d1b63 | ||
|
|
c8a9c01c29 | ||
|
|
c878474eb2 | ||
|
|
212911b815 | ||
|
|
a3232fdb21 | ||
|
|
de8b66d3de | ||
|
|
4a6cb10b8f | ||
|
|
326faa6490 | ||
|
|
574ca93dd4 | ||
|
|
63562e8ff8 | ||
|
|
a176757428 | ||
|
|
f8502efcc1 |
No files matched your search
@@ -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) and [Laravel Nova](https://nova.laravel.com).
|
||||
|
||||
<p align="center">
|
||||
[
|
||||
@@ -12,16 +11,17 @@ 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 6.1, we propose a new file by language: `validation-inline.php` ( see [#1268](https://github.com/Laravel-Lang/lang/issues/1268) )
|
||||
* in version 7, we propose new directory names to follow ISO-15897 ( see [#1269](https://github.com/Laravel-Lang/lang/issues/1269) )
|
||||
* in version 8, we propose new directory names to follow Php Intl ( see [#1453](https://github.com/Laravel-Lang/lang/pull/1453) )
|
||||
* 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 9.1, we include machine translations, with review by humans for some languages ( see [Discussions](https://github.com/Laravel-Lang/lang/discussions/1692) )
|
||||
|
||||
## Translation managers
|
||||
|
||||
* [LaravelLang](https://github.com/ARCANEDEV/LaravelLang) by [*@arcanedev-maroc*](https://github.com/ARCANEDEV) - Translations manager and checker for Laravel.
|
||||
* [Laravel-lang](https://github.com/overtrue/laravel-lang) by [*@overtrue*](https://github.com/overtrue) - Command to add languages in your project.
|
||||
* [Lang Publisher](https://github.com/andrey-helldar/laravel-lang-publisher) by [*@andrey-helldar*](https://github.com/andrey-helldar) - Easy installation and
|
||||
update of translation files for your project.
|
||||
* [Lang Publisher](https://github.com/andrey-helldar/laravel-lang-publisher) by [*@andrey-helldar*](https://github.com/andrey-helldar) - Easy installation and update of translation files for your project.
|
||||
|
||||
## Credits
|
||||
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
YANDEX_API_KEY=
|
||||
YANDEX_API_FOLDER_ID=
|
||||
|
||||
GIT_REPOSITORY=origin
|
||||
GIT_SOURCE_BRANCH=master
|
||||
GIT_TARGET_BRANCH=patch
|
||||
GIT_MESSAGE="[%s] Some message"
|
||||
@@ -0,0 +1,3 @@
|
||||
requests/
|
||||
|
||||
.env
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
use LaravelLang\Lang\Application;
|
||||
|
||||
$app = Application::make(
|
||||
return Application::make(
|
||||
realpath(__DIR__ . '/../../')
|
||||
);
|
||||
|
||||
return $app;
|
||||
+1
-2
@@ -1,11 +1,10 @@
|
||||
<?php
|
||||
|
||||
use LaravelLang\Lang\Processors\Excludes;
|
||||
use LaravelLang\Lang\Services\Filesystem\Php;
|
||||
|
||||
require __DIR__ . '/../vendor/autoload.php';
|
||||
|
||||
/** @var \LaravelLang\Lang\Application $app */
|
||||
$app = require_once __DIR__ . '/bootstrap/app.php';
|
||||
|
||||
$app->processor(Excludes::make(), Php::make());
|
||||
$app->processor(Excludes::make());
|
||||
+2
-4
@@ -2,13 +2,11 @@
|
||||
|
||||
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;
|
||||
|
||||
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(Json::make());
|
||||
$app->processor(Php::make());
|
||||
+23
-18
@@ -2,20 +2,20 @@
|
||||
|
||||
namespace LaravelLang\Lang;
|
||||
|
||||
use Dotenv\Dotenv;
|
||||
use Helldar\Support\Concerns\Makeable;
|
||||
use LaravelLang\Lang\Contracts\Application as ApplicationContract;
|
||||
use LaravelLang\Lang\Contracts\Filesystem;
|
||||
use LaravelLang\Lang\Contracts\Processable;
|
||||
use LaravelLang\Lang\Facades\Env;
|
||||
|
||||
final class Application implements ApplicationContract
|
||||
{
|
||||
use Makeable;
|
||||
|
||||
protected Filesystem $filesystem;
|
||||
|
||||
public function __construct(
|
||||
protected string $base_path
|
||||
) {
|
||||
$this->createDotenv()->safeLoad();
|
||||
}
|
||||
|
||||
public function basePath(): string
|
||||
@@ -61,22 +61,27 @@ final class Application implements ApplicationContract
|
||||
return null;
|
||||
}
|
||||
|
||||
public function filesystem(Filesystem $filesystem): ApplicationContract
|
||||
public function processor(Processable $processor): void
|
||||
{
|
||||
$this->filesystem = $filesystem->application($this);
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getFilesystem(): Filesystem
|
||||
{
|
||||
return $this->filesystem;
|
||||
}
|
||||
|
||||
public function processor(Processable $processor, Filesystem $filesystem): void
|
||||
{
|
||||
$this->filesystem($filesystem);
|
||||
|
||||
$processor->application($this)->run();
|
||||
}
|
||||
|
||||
protected function createDotenv(): Dotenv
|
||||
{
|
||||
return Dotenv::create(
|
||||
Env::getRepository(),
|
||||
$this->environmentPath(),
|
||||
$this->environmentFile()
|
||||
);
|
||||
}
|
||||
|
||||
protected function environmentPath(): string
|
||||
{
|
||||
return $this->path('app');
|
||||
}
|
||||
|
||||
protected function environmentFile(): string
|
||||
{
|
||||
return '.env';
|
||||
}
|
||||
}
|
||||
@@ -9,6 +9,11 @@ trait Contains
|
||||
return str_ends_with($filename, 'json');
|
||||
}
|
||||
|
||||
protected function isMarkdown(string $filename): bool
|
||||
{
|
||||
return str_ends_with($filename, 'md');
|
||||
}
|
||||
|
||||
protected function isPhp(string $filename): bool
|
||||
{
|
||||
return ! $this->isJson($filename);
|
||||
|
||||
@@ -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,45 @@
|
||||
<?php
|
||||
|
||||
namespace LaravelLang\Lang\Constants;
|
||||
|
||||
class Machines
|
||||
{
|
||||
public const LOCALES = [
|
||||
'az',
|
||||
'be',
|
||||
'bg',
|
||||
'bn',
|
||||
'bs',
|
||||
'ca',
|
||||
'cs',
|
||||
'cy',
|
||||
'da',
|
||||
'et',
|
||||
'eu',
|
||||
'fi',
|
||||
'gl',
|
||||
'he',
|
||||
'hi',
|
||||
'is',
|
||||
'ja',
|
||||
'ka',
|
||||
'kk',
|
||||
'kn',
|
||||
'lv',
|
||||
'mn',
|
||||
'mr',
|
||||
'ms',
|
||||
'sk',
|
||||
'sl',
|
||||
'sq',
|
||||
'sr_Cyrl',
|
||||
'sr_Latn',
|
||||
'sr_Latn_ME',
|
||||
'sw',
|
||||
'tg',
|
||||
'th',
|
||||
'tl',
|
||||
'uk',
|
||||
'ur',
|
||||
];
|
||||
}
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace LaravelLang\Lang\Constants;
|
||||
|
||||
class Referents
|
||||
final class Referents
|
||||
{
|
||||
public const ar = ['mohamedsabil83', 'Khuthaily'];
|
||||
|
||||
@@ -32,6 +32,8 @@ class Referents
|
||||
|
||||
public const uk = ['MrAlKuz'];
|
||||
|
||||
public const vi = ['dinhquochan'];
|
||||
|
||||
public const zh_CN = ['overtrue'];
|
||||
|
||||
public const zh_HK = ['overtrue'];
|
||||
|
||||
@@ -20,9 +20,5 @@ interface Application
|
||||
|
||||
public function cleanPath(string $path = null): ?string;
|
||||
|
||||
public function filesystem(Filesystem $filesystem): self;
|
||||
|
||||
public function getFilesystem(): Filesystem;
|
||||
|
||||
public function processor(Processable $processor, Filesystem $filesystem): void;
|
||||
public function processor(Processable $processor): void;
|
||||
}
|
||||
@@ -0,0 +1,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,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;
|
||||
}
|
||||
}
|
||||
@@ -2,6 +2,8 @@
|
||||
|
||||
namespace LaravelLang\Lang\Models;
|
||||
|
||||
use LaravelLang\Lang\Constants\Machines;
|
||||
|
||||
final class Locale extends Model
|
||||
{
|
||||
public function __construct(
|
||||
@@ -18,9 +20,11 @@ final class Locale extends Model
|
||||
public function getTitle(): ?string
|
||||
{
|
||||
if (! $this->isEmpty()) {
|
||||
$suffix = $this->getMissing() ? '❗' : '✔';
|
||||
$status = $this->getMissing() ? '❗' : '✔';
|
||||
|
||||
return $this->locale . ' ' . $suffix;
|
||||
$machine = $this->hasMachine() ? ' 🤖' : '';
|
||||
|
||||
return $this->locale . ' ' . $status . $machine;
|
||||
}
|
||||
|
||||
return null;
|
||||
@@ -35,4 +39,9 @@ final class Locale extends Model
|
||||
{
|
||||
return empty($this->locale);
|
||||
}
|
||||
|
||||
protected function hasMachine(): bool
|
||||
{
|
||||
return in_array($this->locale, Machines::LOCALES, true);
|
||||
}
|
||||
}
|
||||
@@ -5,7 +5,7 @@ namespace LaravelLang\Lang\Processors;
|
||||
use Helldar\Support\Facades\Helpers\Arr;
|
||||
use Helldar\Support\Facades\Helpers\Filesystem\File;
|
||||
|
||||
class Excludes extends Processor
|
||||
final class Excludes extends Processor
|
||||
{
|
||||
protected string $target_path = 'excludes';
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace LaravelLang\Lang\Processors;
|
||||
|
||||
use Helldar\Support\Facades\Helpers\Filesystem\Directory;
|
||||
|
||||
final class Json extends Processor
|
||||
{
|
||||
protected string $target_path = 'locales';
|
||||
@@ -16,9 +14,4 @@ final class Json extends Processor
|
||||
$this->process($target_path, 'en.json', $locale);
|
||||
}
|
||||
}
|
||||
|
||||
protected function locales(): array
|
||||
{
|
||||
return Directory::names($this->getTargetPath());
|
||||
}
|
||||
}
|
||||
@@ -2,7 +2,6 @@
|
||||
|
||||
namespace LaravelLang\Lang\Processors;
|
||||
|
||||
use Helldar\Support\Facades\Helpers\Filesystem\Directory;
|
||||
use Helldar\Support\Facades\Helpers\Filesystem\File;
|
||||
|
||||
final class Php extends Processor
|
||||
@@ -24,9 +23,4 @@ final class Php extends Processor
|
||||
{
|
||||
return File::names($this->getTargetPath($locale), fn ($filename) => $this->isPhp($filename));
|
||||
}
|
||||
|
||||
protected function locales(): array
|
||||
{
|
||||
return Directory::names($this->getTargetPath());
|
||||
}
|
||||
}
|
||||
@@ -4,6 +4,7 @@ namespace LaravelLang\Lang\Processors;
|
||||
|
||||
use Helldar\Support\Concerns\Makeable;
|
||||
use Helldar\Support\Facades\Helpers\Arr;
|
||||
use Helldar\Support\Facades\Helpers\Filesystem\Directory;
|
||||
use Helldar\Support\Tools\Stub;
|
||||
use LaravelLang\Lang\Application;
|
||||
use LaravelLang\Lang\Concerns\Contains;
|
||||
@@ -12,6 +13,7 @@ use LaravelLang\Lang\Contracts\Processable;
|
||||
use LaravelLang\Lang\Contracts\Stringable;
|
||||
use LaravelLang\Lang\Services\Filesystem\Base;
|
||||
use LaravelLang\Lang\Services\Filesystem\Json as JsonFilesystem;
|
||||
use LaravelLang\Lang\Services\Filesystem\Markdown as MarkdownFilesystem;
|
||||
use LaravelLang\Lang\Services\Filesystem\Php as PhpFilesystem;
|
||||
|
||||
abstract class Processor implements Processable
|
||||
@@ -103,6 +105,11 @@ abstract class Processor implements Processable
|
||||
return $this->getFilesystem($path)->load($path);
|
||||
}
|
||||
|
||||
protected function locales(): array
|
||||
{
|
||||
return Directory::names($this->getTargetPath());
|
||||
}
|
||||
|
||||
protected function getFilesystem(string $filename): Filesystem
|
||||
{
|
||||
$class = $this->getFilesystemClass($filename);
|
||||
@@ -116,7 +123,11 @@ abstract class Processor implements Processable
|
||||
|
||||
protected function getFilesystemClass(string $path): string
|
||||
{
|
||||
return $this->isJson($path) ? JsonFilesystem::class : PhpFilesystem::class;
|
||||
return match (true) {
|
||||
$this->isJson($path) => JsonFilesystem::class,
|
||||
$this->isMarkdown($path) => MarkdownFilesystem::class,
|
||||
default => PhpFilesystem::class,
|
||||
};
|
||||
}
|
||||
|
||||
protected function loadFilesystem(Filesystem|Base|string $filesystem): Filesystem
|
||||
@@ -128,7 +139,7 @@ abstract class Processor implements Processable
|
||||
{
|
||||
$stub = $this->getStubPath($source_filename);
|
||||
|
||||
$this->app->getFilesystem()->store($path, $content, $is_simple, $stub);
|
||||
$this->getFilesystem($path)->store($path, $content, $is_simple, $stub);
|
||||
}
|
||||
|
||||
protected function getStubPath(?string $filename): ?string
|
||||
|
||||
@@ -10,7 +10,7 @@ use LaravelLang\Lang\Services\Compilers\Referents as Compilator;
|
||||
use ReflectionClass;
|
||||
use ReflectionClassConstant;
|
||||
|
||||
class Referents extends Processor
|
||||
final class Referents extends Processor
|
||||
{
|
||||
use Template;
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace LaravelLang\Lang\Processors\Statuses;
|
||||
use LaravelLang\Lang\Contracts\Stringable;
|
||||
use LaravelLang\Lang\Services\Compilers\Status;
|
||||
|
||||
class Main extends Processor
|
||||
final class Main extends Processor
|
||||
{
|
||||
protected function saving(): void
|
||||
{
|
||||
@@ -16,6 +16,8 @@ class Main extends Processor
|
||||
|
||||
protected function compileContent(array $items): Stringable
|
||||
{
|
||||
return Status::make($this->app)->items($items);
|
||||
return Status::make($this->app)
|
||||
->extend($this->getCounts())
|
||||
->items($items);
|
||||
}
|
||||
}
|
||||
@@ -6,12 +6,14 @@ use Helldar\Support\Facades\Helpers\Arr;
|
||||
use Helldar\Support\Facades\Helpers\Filesystem\Directory;
|
||||
use Helldar\Support\Facades\Helpers\Filesystem\File;
|
||||
use Helldar\Support\Facades\Tools\Sorter;
|
||||
use LaravelLang\Lang\Concerns\Countable;
|
||||
use LaravelLang\Lang\Concerns\Excludes;
|
||||
use LaravelLang\Lang\Concerns\Template;
|
||||
use LaravelLang\Lang\Processors\Processor as BaseProcessor;
|
||||
|
||||
abstract class Processor extends BaseProcessor
|
||||
{
|
||||
use Countable;
|
||||
use Excludes;
|
||||
use Template;
|
||||
|
||||
@@ -52,10 +54,14 @@ abstract class Processor extends BaseProcessor
|
||||
|
||||
$is_validation = $this->isValidation($filename);
|
||||
|
||||
$this->addCount($source);
|
||||
|
||||
if ($diff = $this->compare($source, $target, $locale, $is_validation)) {
|
||||
$key = $this->getFileBasename($corrected);
|
||||
|
||||
$this->locales[$locale][$key] = $diff;
|
||||
|
||||
$this->addCount($diff, 'diff');
|
||||
} else {
|
||||
$this->locales[$locale] = [];
|
||||
}
|
||||
|
||||
@@ -0,0 +1,99 @@
|
||||
<?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_filename = $this->isJson($filename) ? 'en.json' : $filename;
|
||||
|
||||
$source = $this->source($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 $this->isJson($filename) ? $locale . '.json' : $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
|
||||
{
|
||||
|
||||
@@ -16,6 +16,8 @@ abstract class Compiler implements Stringable
|
||||
|
||||
protected array $items;
|
||||
|
||||
protected array $extend = [];
|
||||
|
||||
public function __construct(
|
||||
protected Application $app
|
||||
) {
|
||||
@@ -27,4 +29,11 @@ abstract class Compiler implements Stringable
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function extend(array $values): self
|
||||
{
|
||||
$this->extend = $values;
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
@@ -4,7 +4,7 @@ namespace LaravelLang\Lang\Services\Compilers;
|
||||
|
||||
use LaravelLang\Lang\Constants\Resource;
|
||||
|
||||
class Locale extends Compiler
|
||||
final class Locale extends Compiler
|
||||
{
|
||||
public function toString(): string
|
||||
{
|
||||
|
||||
@@ -4,7 +4,7 @@ namespace LaravelLang\Lang\Services\Compilers;
|
||||
|
||||
use LaravelLang\Lang\Constants\Resource;
|
||||
|
||||
class Referents extends Compiler
|
||||
final class Referents extends Compiler
|
||||
{
|
||||
public function toString(): string
|
||||
{
|
||||
|
||||
@@ -6,15 +6,13 @@ use Helldar\Support\Facades\Helpers\Str;
|
||||
use LaravelLang\Lang\Constants\Resource;
|
||||
use LaravelLang\Lang\Models\Locale;
|
||||
|
||||
class Status extends Compiler
|
||||
final class Status extends Compiler
|
||||
{
|
||||
protected int $columns = 8;
|
||||
|
||||
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++;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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,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\Git;
|
||||
|
||||
require __DIR__ . '/../vendor/autoload.php';
|
||||
|
||||
/** @var \LaravelLang\Lang\Application $app */
|
||||
$app = require_once __DIR__ . '/bootstrap/app.php';
|
||||
|
||||
$app->processor(Git::make());
|
||||
+1
-2
@@ -1,11 +1,10 @@
|
||||
<?php
|
||||
|
||||
use LaravelLang\Lang\Processors\Referents;
|
||||
use LaravelLang\Lang\Services\Filesystem\Markdown;
|
||||
|
||||
require __DIR__ . '/../vendor/autoload.php';
|
||||
|
||||
/** @var \LaravelLang\Lang\Application $app */
|
||||
$app = require_once __DIR__ . '/bootstrap/app.php';
|
||||
|
||||
$app->processor(Referents::make(), Markdown::make());
|
||||
$app->processor(Referents::make());
|
||||
@@ -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());
|
||||
@@ -21,7 +21,7 @@ final class PhpTest extends TestCase
|
||||
$this->assertSame(array_keys($source), array_keys($target), $this->messageForLocale($path, $locale));
|
||||
|
||||
if ($this->isInline($filename)) {
|
||||
$this->assertDoesntSee($path, ':attribute');
|
||||
$this->assertDoesntSee($path, [':attribute', ':Attribute']);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -43,14 +43,18 @@ abstract class TestCase extends BaseTestCase
|
||||
);
|
||||
}
|
||||
|
||||
protected function assertDoesntSee(string $path, string $content): void
|
||||
protected function assertDoesntSee(string $path, string|array $content): void
|
||||
{
|
||||
$file = File::make()->loadRaw($path);
|
||||
|
||||
$this->assertFalse(
|
||||
str_contains($file, $content),
|
||||
$this->messageAssertDoesntSee($path, $content)
|
||||
);
|
||||
$values = Arr::wrap($content);
|
||||
|
||||
foreach ($values as $value) {
|
||||
$this->assertFalse(
|
||||
str_contains($file, $value),
|
||||
$this->messageAssertDoesntSee($path, $value)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
protected function sort(array &$array): void
|
||||
|
||||
@@ -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());
|
||||
+8
-3
@@ -24,15 +24,20 @@
|
||||
"require-dev": {
|
||||
"php": "^8.0",
|
||||
"andrey-helldar/pretty-array": "^2.3",
|
||||
"andrey-helldar/support": "^3.4",
|
||||
"andrey-helldar/support": "^3.6",
|
||||
"guzzlehttp/guzzle": "^7.3",
|
||||
"phpunit/phpunit": "^9.5",
|
||||
"symfony/var-dumper": "^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",
|
||||
|
||||
+152
-57
@@ -7,6 +7,101 @@ 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).
|
||||
|
||||
## [9.1.0] - 2021-04-24
|
||||
|
||||
### Changed
|
||||
|
||||
* feature: [az] #1627 passwords.php validation.php validation-inline.php json file
|
||||
* feature: [be] #1628 passwords.php validation.php validation-inline.php json file
|
||||
* feature: [bg] #1669 #1712 validation.php validation-inline.php json file
|
||||
* feature: [bn] #1670 passwords.php validation.php validation-inline.php json file
|
||||
* feature: [bs] #1671 validation.php validation-inline.php json file
|
||||
* feature: [ca] #1672 validation.php validation-inline.php json file
|
||||
* feature: [cs] #1673 validation.php validation-inline.php json file
|
||||
* feature: [cy] #1674 passwords.php validation.php validation-inline.php json file
|
||||
* feature: [da] #1675 validation.php validation-inline.php json file
|
||||
* feature: [de] #1708 #1710 validation.php validation-inline.php
|
||||
* feature: [de_CH] #1709 validation.php validation-inline.php
|
||||
* feature: [et] #1679 passwords.php validation.php validation-inline.php json file
|
||||
* feature: [eu] #1680 passwords.php validation.php validation-inline.php json file
|
||||
* feature: [fi] #1682 validation.php validation-inline.php json file
|
||||
* feature: [fr] #1711 json file
|
||||
* feature: [gl] #1683 passwords.php validation.php validation-inline.php json file
|
||||
* feature: [he] #1684 validation.php validation-inline.php json file
|
||||
* feature: [hi] #1685 passwords.php validation.php validation-inline.php json file
|
||||
* feature: [hu] #1687 validation.php validation-inline.php json file
|
||||
* feature: [is] #1690 passwords.php validation.php validation-inline.php json file
|
||||
* feature: [ja] #1631 validation.php validation-inline.php json file
|
||||
* feature: [ka] #1632 validation.php validation-inline.php json file
|
||||
* feature: [kk] #1633 passwords.php validation.php validation-inline.php json file
|
||||
* feature: [kn] #1635 passwords.php validation.php validation-inline.php json file
|
||||
* feature: [lv] #1638 passwords.php validation.php validation-inline.php json file
|
||||
* feature: [mn] #1640 passwords.php validation.php validation-inline.php json file
|
||||
* feature: [mr] #1641 passwords.php validation.php validation-inline.php json file
|
||||
* feature: [ms] #1642 validation.php validation-inline.php json file
|
||||
* feature: [nl] #1644 json file exclude
|
||||
* feature: [sk] #1650 validation.php validation-inline.php json file
|
||||
* feature: [sl] #1651 validation.php validation-inline.php json file
|
||||
* feature: [sq] #1652 validation.php validation-inline.php json file
|
||||
* feature: [sr_Cyrl] #1654 validation.php validation-inline.php json file
|
||||
* feature: [sr_Latn] #1653 validation.php validation-inline.php json file
|
||||
* feature: [sr_Latn_ME] #1655 validation.php validation-inline.php json file
|
||||
* feature: [sw] #1657 passwords.php validation.php validation-inline.php json file
|
||||
* feature: [tg] #1658 passwords.php validation.php validation-inline.php json file
|
||||
* feature: [th] #1659 passwords.php validation.php validation-inline.php json file
|
||||
* feature: [tl] #1660 passwords.php validation.php validation-inline.php json file
|
||||
* feature: [uk] #1662 validation.php validation-inline.php json file
|
||||
* feature: [ur] #1663 passwords.php validation.php validation-inline.php json file
|
||||
* feature: [uz_Cyrl] #1664 validation.php validation-inline.php json file
|
||||
* feature: [uz_Latn] #1665 validation.php validation-inline.php json file
|
||||
|
||||
### Todo script
|
||||
|
||||
* feature: #1713 Added the ability to flag machine translation
|
||||
|
||||
## [9.0.1] - 2021-04-21
|
||||
|
||||
### Changed
|
||||
|
||||
* feature: [af] #1626 validation.php validation-inline.php json file
|
||||
* feature: [az] #1694 validation.php
|
||||
* feature: [de] #1622 #1623 validation.php validation-inline.php json file
|
||||
* feature: [de] #1696 #1700 #1705 validation.php validation-inline.php json file
|
||||
* feature: [de_CH] #1695 #1703 #1704 validation.php validation-inline.php json file
|
||||
* feature: [el] #1678 validation.php validation-inline.php json file
|
||||
* feature: [fa] #1693 json file
|
||||
* feature: [hr] #1686 validation.php validation-inline.php json file
|
||||
* feature: [hy] #1688 #1699 json file
|
||||
* feature: [id] #1616 #1621 #1689 validation.php validation-inline.php json file
|
||||
* feature: [km] #1634 #1698 validation.php validation-inline.php json file
|
||||
* feature: [ko] #1608 #1636 validation.php validation-inline.php json file
|
||||
* feature: [lt] #1637 validation.php validation-inline.php json file
|
||||
* feature: [mk] #1639 validation.php validation-inline.php json file
|
||||
* feature: [ne] #1643 validation.php validation-inline.php json file
|
||||
* feature: [pl] #1645 validation.php validation-inline.php json file
|
||||
* feature: [pt] #1646 validation.php validation-inline.php json file
|
||||
* feature: [pt_BR] #1647 validation.php validation-inline.php json file
|
||||
* feature: [ro] #1648 validation.php validation-inline.php json file
|
||||
* feature: [si] #1649 validation.php validation-inline.php json file
|
||||
* feature: [sv] #1656 validation.php validation-inline.php json file
|
||||
* feature: [tr] #1697 validation.php validation-inline.php json file
|
||||
* feature: [vi] #1617 #1624 validation.php validation-inline.php json file
|
||||
* feature: [zh_CN] #1666 validation.php validation-inline.php json file
|
||||
* feature: [zh_HK] #1667 validation.php validation-inline.php json file
|
||||
* feature: [zh_TW] #1668 validation.php validation-inline.php json file
|
||||
|
||||
### Documentation
|
||||
|
||||
* feature: #1618 readme
|
||||
|
||||
### Todo script
|
||||
|
||||
* feature: #1619 Added check for ":Attribute" when running tests
|
||||
* feature: #1620 Adding a percentage of translations
|
||||
* feature: #1625 Added processors for translating localizations
|
||||
* feature: #1629 Removed duplicate call line
|
||||
* feature: #1691 Added a script for creating commits separated by localizations
|
||||
|
||||
## [9.0.0] - 2021-04-14
|
||||
|
||||
New structure of files:
|
||||
@@ -183,18 +278,18 @@ For more information, see #1606 and #1607.
|
||||
|
||||
### Changed
|
||||
|
||||
* feature: #1383 #1411 [fr] json file
|
||||
* feature: #1385 [el] json file
|
||||
* feature: #1387 #1388 #1392 [ms] validation.php validation-inline.php passwords.php
|
||||
* feature: #1390 #1398 [ar] json file
|
||||
* feature: #1393 #1397 [ru] json file
|
||||
* feature: #1393 #1394 [en] add tags
|
||||
* feature: #1394 [es] json file
|
||||
* feature: #1395 [pl] json file
|
||||
* feature: #1400 [lt] json file
|
||||
* feature: #1402 #1413 [it] validation-inline.php auth.php passwords.php json file
|
||||
* feature: #1404 [pt] json file
|
||||
* feature: #1412 [de] json file
|
||||
* feature: [ar] #1390 #1398 json file
|
||||
* feature: [de] #1412 json file
|
||||
* feature: [el] #1385 json file
|
||||
* feature: [en] #1393 #1394 add tags
|
||||
* feature: [es] #1394 json file
|
||||
* feature: [fr] #1383 #1411 json file
|
||||
* feature: [it] #1402 #1413 validation-inline.php auth.php passwords.php json file
|
||||
* feature: [lt] #1400 json file
|
||||
* feature: [ms] #1387 #1388 #1392 validation.php validation-inline.php passwords.php
|
||||
* feature: [pl] #1395 json file
|
||||
* feature: [pt] #1404 json file
|
||||
* feature: [ru] #1393 #1397 json file
|
||||
|
||||
### Documentation
|
||||
|
||||
@@ -213,11 +308,11 @@ For more information, see #1606 and #1607.
|
||||
|
||||
### Changed
|
||||
|
||||
* feature: #1375 [pt_BR] json file
|
||||
* feature: #1379 [hr] passwords.php
|
||||
* feature: #1380 [ms] validation.php
|
||||
* feature: #1381 [id] json file
|
||||
* feature: #1382 [tr] json file
|
||||
* feature: [hr] #1379 passwords.php
|
||||
* feature: [id] #1381 json file
|
||||
* feature: [ms] #1380 validation.php
|
||||
* feature: [pt_BR] #1375 json file
|
||||
* feature: [tr] #1382 json file
|
||||
|
||||
### Todo script
|
||||
|
||||
@@ -227,74 +322,72 @@ For more information, see #1606 and #1607.
|
||||
|
||||
### Changed
|
||||
|
||||
* feature: #1339 #1369 [ar] json file
|
||||
* feature: #1352 [uz_*] validation auth password
|
||||
* feature: #1356 #1362 #1368 [ru] json file
|
||||
* feature: #1358 #1374 [pt] json file
|
||||
* feature: #1360 #1367 #1373 [pl] json file
|
||||
* feature: #1361 #1371 [es] json file
|
||||
* feature: #1361 #1368 [en] json file
|
||||
* feature: #1363 [sr_*] json file
|
||||
* feature: #1370 [de] json file
|
||||
* feature: [ar] #1339 #1369 json file
|
||||
* feature: [de] #1370 json file
|
||||
* feature: [en] #1361 #1368 json file
|
||||
* feature: [es] #1361 #1371 json file
|
||||
* feature: [fr] json file
|
||||
* feature: [pl] #1360 #1367 #1373 json file
|
||||
* feature: [pt] #1358 #1374 json file
|
||||
* feature: [ru] #1356 #1362 #1368 json file
|
||||
* feature: [sr_*] #1363 json file
|
||||
* feature: [uz_*] #1352 validation auth password
|
||||
|
||||
## [7.0.5] - 2020-09-23
|
||||
|
||||
### Changed
|
||||
|
||||
* feature: #1327 #1328 [tr] validation.php
|
||||
* feature: #1330 [nl] json file
|
||||
* feature: #1331 [nl] validation-inline.php
|
||||
* feature: #1332 [hu] validation.php
|
||||
* feature: #1333 Laravel 8 support
|
||||
* feature: #1335 #1354 Add support for Laravel JetStream
|
||||
* feature: #1341 [es] json files
|
||||
* feature: #1341 #1346 [en] json files
|
||||
* feature: #1342 [pt] json files
|
||||
* feature: #1345 [it] json files
|
||||
* feature: #1346 [ru] json files
|
||||
* feature: #1351 [pl] json files
|
||||
* feature: [en] #1341 #1346 json files
|
||||
* feature: [es] #1341 json files
|
||||
* feature: [hu] #1332 validation.php
|
||||
* feature: [it] #1345 json files
|
||||
* feature: [nl] #1330 #1331 json file validation-inline.php
|
||||
* feature: [pl] #1351 json files
|
||||
* feature: [pt] #1342 json files
|
||||
* feature: [ru] #1346 json files
|
||||
* feature: [tr] #1327 #1328 validation.php
|
||||
|
||||
## [7.0.4] - 2020-09-11
|
||||
|
||||
### Changed
|
||||
|
||||
* feature: [es] #1317 json file
|
||||
* feature: [fa] #1318 validation.password
|
||||
* feature: [id] #1323 #1324 json and validation-inline
|
||||
* feature: [ko] #1326 validation-inline
|
||||
* feature: [lt] #1320 validation-inline and validation
|
||||
* feature: [sr_*] #1316 validation-inline file
|
||||
* feature: new organization
|
||||
* feature: #1316 [sr_*] validation-inline file
|
||||
* feature: #1317 [es] json file
|
||||
* feature: #1318 [fa] validation.password
|
||||
* feature: #1320 [lt] validation-inline and validation
|
||||
* feature: #1323 #1324 [id] json and validation-inline
|
||||
* feature: #1326 [ko] validation-inline
|
||||
|
||||
## [7.0.3] - 2020-08-23
|
||||
|
||||
### Changed
|
||||
|
||||
* feature: #1302 #1306 #1307 [Ne] Translated to Nepali Language (Validation-inline and json)
|
||||
* feature: #1310 [da] passwords.throttlled
|
||||
* feature: #1312 [es] validation and validation-inline
|
||||
* feature: #1313 [sq] validation-inline and validation translations
|
||||
* feature: [da] #1310 passwords.throttlled
|
||||
* feature: [es] #1312 validation and validation-inline
|
||||
* feature: [ne] #1302 #1306 #1307 Translated to Nepali Language (Validation-inline and json)
|
||||
* feature: [sq] #1313 validation-inline and validation translations
|
||||
|
||||
## [7.0.2] - 2020-08-05
|
||||
|
||||
### Added
|
||||
|
||||
* Changelog file
|
||||
* # 1293 [da] Add json
|
||||
|
||||
### Changed
|
||||
|
||||
* feature: #1290 [pl] Translate validation-inline; tweak some validation translations
|
||||
* feature: #1291 [pt_BR] Update validation-inline
|
||||
* feature: #1292 [es] Update json
|
||||
* feature: #1294 Update readme
|
||||
* feature: #1295 [pt] Update json, validation-inline, validation and passwords
|
||||
* feature: #1297 [sq] Update auth, passwords and validation
|
||||
* feature: #1298 [si] Update passwords
|
||||
* feature: #1299 [zh_*] Update json and validation-inline
|
||||
* feature: #1300 [uk] validation-inline
|
||||
* feature: #1301 [uk] json
|
||||
* feature: [da] #1293 Add json
|
||||
* feature: [es] #1292 Update json
|
||||
* feature: [pl] #1290 Translate validation-inline; tweak some validation translations
|
||||
* feature: [pt] #1295 Update json, validation-inline, validation and passwords
|
||||
* feature: [pt_BR] #1291 Update validation-inline
|
||||
* feature: [si] #1298 Update passwords
|
||||
* feature: [sq] #1297 Update auth, passwords and validation
|
||||
* feature: [uk] #1300 #1301 validation-inline json file
|
||||
* feature: [zh_*] #1299 Update json and validation-inline
|
||||
|
||||
## [7.0.1] - 2020-07-14
|
||||
|
||||
@@ -312,7 +405,9 @@ For more information, see #1606 and #1607.
|
||||
|
||||
* feature: #1269 Rename locale folders following ISO 15897 format
|
||||
|
||||
[Unreleased]: https://github.com/caouecs/Laravel-lang/compare/9.0.0...master
|
||||
[Unreleased]: https://github.com/caouecs/Laravel-lang/compare/9.1.0...master
|
||||
[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
|
||||
|
||||
@@ -551,6 +551,8 @@ vi
|
||||
</td>
|
||||
<td align="left" >
|
||||
|
||||
[@dinhquochan](https://github.com/dinhquochan)
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
|
||||
+50
-48
@@ -2,10 +2,12 @@
|
||||
|
||||
# Completion status
|
||||
|
||||
> Translation of localizations is completed by **88%** (55K / 62.8K).
|
||||
|
||||
<table width="100%">
|
||||
<tr><td align="center" width="13%">
|
||||
|
||||
[af ❗](statuses/af.md)
|
||||
[af ✔](statuses/af.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
@@ -15,58 +17,58 @@
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
|
||||
[az ❗](statuses/az.md)
|
||||
[az ❗ 🤖](statuses/az.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
|
||||
[be ❗](statuses/be.md)
|
||||
[be ✔ 🤖](statuses/be.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
|
||||
[bg ❗](statuses/bg.md)
|
||||
[bg ✔ 🤖](statuses/bg.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
|
||||
[bn ❗](statuses/bn.md)
|
||||
[bn ✔ 🤖](statuses/bn.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
|
||||
[bs ❗](statuses/bs.md)
|
||||
[bs ✔ 🤖](statuses/bs.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
|
||||
[ca ❗](statuses/ca.md)
|
||||
[ca ❗ 🤖](statuses/ca.md)
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="center" width="13%">
|
||||
|
||||
[cs ❗](statuses/cs.md)
|
||||
[cs ❗ 🤖](statuses/cs.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
|
||||
[cy ❗](statuses/cy.md)
|
||||
[cy ✔ 🤖](statuses/cy.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
|
||||
[da ❗](statuses/da.md)
|
||||
[da ❗ 🤖](statuses/da.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
|
||||
[de ❗](statuses/de.md)
|
||||
[de ✔](statuses/de.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
|
||||
[de_CH ❗](statuses/de-ch.md)
|
||||
[de_CH ✔](statuses/de-ch.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
@@ -81,13 +83,13 @@
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
|
||||
[et ❗](statuses/et.md)
|
||||
[et ✔ 🤖](statuses/et.md)
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="center" width="13%">
|
||||
|
||||
[eu ❗](statuses/eu.md)
|
||||
[eu ✔ 🤖](statuses/eu.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
@@ -97,7 +99,7 @@
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
|
||||
[fi ❗](statuses/fi.md)
|
||||
[fi ✔ 🤖](statuses/fi.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
@@ -112,17 +114,17 @@
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
|
||||
[gl ❗](statuses/gl.md)
|
||||
[gl ❗ 🤖](statuses/gl.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
|
||||
[he ❗](statuses/he.md)
|
||||
[he ✔ 🤖](statuses/he.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
|
||||
[hi ❗](statuses/hi.md)
|
||||
[hi ✔ 🤖](statuses/hi.md)
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
@@ -143,12 +145,12 @@
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
|
||||
[id ❗](statuses/id.md)
|
||||
[id ✔](statuses/id.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
|
||||
[is ❗](statuses/is.md)
|
||||
[is ✔ 🤖](statuses/is.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
@@ -158,18 +160,18 @@
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
|
||||
[ja ❗](statuses/ja.md)
|
||||
[ja ❗ 🤖](statuses/ja.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
|
||||
[ka ❗](statuses/ka.md)
|
||||
[ka ❗ 🤖](statuses/ka.md)
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="center" width="13%">
|
||||
|
||||
[kk ❗](statuses/kk.md)
|
||||
[kk ❗ 🤖](statuses/kk.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
@@ -179,12 +181,12 @@
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
|
||||
[kn ❗](statuses/kn.md)
|
||||
[kn ❗ 🤖](statuses/kn.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
|
||||
[ko ❗](statuses/ko.md)
|
||||
[ko ✔](statuses/ko.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
@@ -194,7 +196,7 @@
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
|
||||
[lv ❗](statuses/lv.md)
|
||||
[lv ✔ 🤖](statuses/lv.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
@@ -204,18 +206,18 @@
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
|
||||
[mn ❗](statuses/mn.md)
|
||||
[mn ✔ 🤖](statuses/mn.md)
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="center" width="13%">
|
||||
|
||||
[mr ❗](statuses/mr.md)
|
||||
[mr ✔ 🤖](statuses/mr.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
|
||||
[ms ❗](statuses/ms.md)
|
||||
[ms ❗ 🤖](statuses/ms.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
@@ -230,7 +232,7 @@
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
|
||||
[nl ❗](statuses/nl.md)
|
||||
[nl ✔](statuses/nl.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
@@ -281,38 +283,38 @@
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
|
||||
[si ❗](statuses/si.md)
|
||||
[si ✔](statuses/si.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
|
||||
[sk ❗](statuses/sk.md)
|
||||
[sk ❗ 🤖](statuses/sk.md)
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="center" width="13%">
|
||||
|
||||
[sl ❗](statuses/sl.md)
|
||||
[sl ❗ 🤖](statuses/sl.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
|
||||
[sq ❗](statuses/sq.md)
|
||||
[sq ❗ 🤖](statuses/sq.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
|
||||
[sr_Cyrl ❗](statuses/sr-cyrl.md)
|
||||
[sr_Cyrl ❗ 🤖](statuses/sr-cyrl.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
|
||||
[sr_Latn ❗](statuses/sr-latn.md)
|
||||
[sr_Latn ❗ 🤖](statuses/sr-latn.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
|
||||
[sr_Latn_ME ❗](statuses/sr-latn-me.md)
|
||||
[sr_Latn_ME ❗ 🤖](statuses/sr-latn-me.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
@@ -322,18 +324,18 @@
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
|
||||
[sw ❗](statuses/sw.md)
|
||||
[sw ❗ 🤖](statuses/sw.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
|
||||
[tg ❗](statuses/tg.md)
|
||||
[tg ❗ 🤖](statuses/tg.md)
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="center" width="13%">
|
||||
|
||||
[th ❗](statuses/th.md)
|
||||
[th ❗ 🤖](statuses/th.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
@@ -343,12 +345,12 @@
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
|
||||
[tl ❗](statuses/tl.md)
|
||||
[tl ❗ 🤖](statuses/tl.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
|
||||
[tr ❗](statuses/tr.md)
|
||||
[tr ✔](statuses/tr.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
@@ -358,12 +360,12 @@
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
|
||||
[uk ❗](statuses/uk.md)
|
||||
[uk ❗ 🤖](statuses/uk.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
|
||||
[ur ❗](statuses/ur.md)
|
||||
[ur ❗ 🤖](statuses/ur.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
@@ -379,22 +381,22 @@
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
|
||||
[vi ❗](statuses/vi.md)
|
||||
[vi ✔](statuses/vi.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
|
||||
[zh_CN ❗](statuses/zh-cn.md)
|
||||
[zh_CN ✔](statuses/zh-cn.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
|
||||
[zh_HK ❗](statuses/zh-hk.md)
|
||||
[zh_HK ✔](statuses/zh-hk.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
|
||||
[zh_TW ❗](statuses/zh-tw.md)
|
||||
[zh_TW ✔](statuses/zh-tw.md)
|
||||
|
||||
</td>
|
||||
<td align="center" width="13%">
|
||||
|
||||
+2
-1811
File diff suppressed because it is too large.
Load diff
+2
-2785
File diff suppressed because it is too large.
Load diff
+2
-3085
File diff suppressed because it is too large.
Load diff
+2
-2962
File diff suppressed because it is too large.
Load diff
+2
-3015
File diff suppressed because it is too large.
Load diff
+2
-2948
File diff suppressed because it is too large.
Load diff
+2
-2439
File diff suppressed because it is too large.
Load diff
+2
-2543
File diff suppressed because it is too large.
Load diff
+2
-3106
File diff suppressed because it is too large.
Load diff
+2
-2254
File diff suppressed because it is too large.
Load diff
+2
-2372
File diff suppressed because it is too large.
Load diff
+2
-1796
File diff suppressed because it is too large.
Load diff
+2
-2722
File diff suppressed because it is too large.
Load diff
+2
-2987
File diff suppressed because it is too large.
Load diff
+2
-2846
File diff suppressed because it is too large.
Load diff
+2
-158
@@ -2,7 +2,7 @@
|
||||
|
||||
# fa
|
||||
|
||||
##### All missed: 447
|
||||
##### All missed: 408
|
||||
|
||||
|
||||
### validation-inline
|
||||
@@ -99,22 +99,10 @@ This :attribute may not be associated with this resource.
|
||||
|
||||
### json
|
||||
|
||||
##### Missing: 437
|
||||
##### Missing: 398
|
||||
|
||||
<table >
|
||||
<tr><td align="left" >
|
||||
30 Days
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
60 Days
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
90 Days
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
:amount Total
|
||||
</td>
|
||||
</tr>
|
||||
@@ -143,26 +131,6 @@ Action Initiated By
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
Action Name
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
Action Status
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
Action Target
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
Actions
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
Add row
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
Afghanistan
|
||||
</td>
|
||||
</tr>
|
||||
@@ -179,10 +147,6 @@ Algeria
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
All resources loaded.
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
American Samoa
|
||||
</td>
|
||||
</tr>
|
||||
@@ -523,10 +487,6 @@ Croatia
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
Cuba
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
Curaçao
|
||||
</td>
|
||||
</tr>
|
||||
@@ -599,26 +559,10 @@ Dominican Republic
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
Download
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
Ecuador
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
Edit
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
Edit :resource
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
Edit Attached
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
Egypt
|
||||
</td>
|
||||
</tr>
|
||||
@@ -627,10 +571,6 @@ El Salvador
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
Email Address
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
Equatorial Guinea
|
||||
</td>
|
||||
</tr>
|
||||
@@ -675,14 +615,6 @@ Finland
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
Force Delete
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
Force Delete Resource
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
Force Delete Selected
|
||||
</td>
|
||||
</tr>
|
||||
@@ -703,10 +635,6 @@ French Southern Territories
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
Full name
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
Gabon
|
||||
</td>
|
||||
</tr>
|
||||
@@ -731,10 +659,6 @@ Gibraltar
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
Go back
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
Great! You have accepted the invitation to join the :team team.
|
||||
</td>
|
||||
</tr>
|
||||
@@ -815,10 +739,6 @@ Iceland
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
ID
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
If necessary, you may log out of all of your other browser sessions across all of your devices. Some of your recent sessions are listed below; however, this list may not be exhaustive. If you feel your account has been compromised, you should also update your password.
|
||||
</td>
|
||||
</tr>
|
||||
@@ -851,10 +771,6 @@ Iran, Islamic Republic Of
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
Iraq
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
Ireland
|
||||
</td>
|
||||
</tr>
|
||||
@@ -879,10 +795,6 @@ January
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
Japan
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
Jersey
|
||||
</td>
|
||||
</tr>
|
||||
@@ -975,22 +887,6 @@ Load :perPage More
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
Log in
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
Log out
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
Log Out
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
Log Out Other Browser Sessions
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
Luxembourg
|
||||
</td>
|
||||
</tr>
|
||||
@@ -1119,14 +1015,6 @@ Netherlands
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
New
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
New :resource
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
New Caledonia
|
||||
</td>
|
||||
</tr>
|
||||
@@ -1135,10 +1023,6 @@ New Zealand
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
Next
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
Nicaragua
|
||||
</td>
|
||||
</tr>
|
||||
@@ -1343,18 +1227,6 @@ Reset Filters
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
resource
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
Resources
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
resources
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
Restore
|
||||
</td>
|
||||
</tr>
|
||||
@@ -1375,10 +1247,6 @@ Romania
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
Run Action
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
Russian Federation
|
||||
</td>
|
||||
</tr>
|
||||
@@ -1747,22 +1615,10 @@ United States Outlying Islands
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
Update
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
Update & Continue Editing
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
Update :resource
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
Update :resource: :title
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
Update attached :resource: :title
|
||||
</td>
|
||||
</tr>
|
||||
@@ -1807,18 +1663,10 @@ We're lost in space. The page you were trying to view does not exist.
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
Welcome Back!
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
Western Sahara
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
Whoops
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
With Trashed
|
||||
</td>
|
||||
</tr>
|
||||
@@ -1835,10 +1683,6 @@ Yemen
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
Yes
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="left" >
|
||||
You have been invited to join the :team team!
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
+2
-2936
File diff suppressed because it is too large.
Load diff
+2
-2421
File diff suppressed because it is too large.
Load diff
+2
-2793
File diff suppressed because it is too large.
Load diff
+2
-2987
File diff suppressed because it is too large.
Load diff
+2
-2671
File diff suppressed because it is too large.
Load diff
+2
-2492
File diff suppressed because it is too large.
Load diff
+2
-2259
File diff suppressed because it is too large.
Load diff
+2
-2310
File diff suppressed because it is too large.
Load diff
+2
-2987
File diff suppressed because it is too large.
Load diff
+2
-2348
File diff suppressed because it is too large.
Load diff
+2
-2854
File diff suppressed because it is too large.
Load diff
+2
-2778
File diff suppressed because it is too large.
Load diff
+2
-2926
File diff suppressed because it is too large.
Load diff
+4
-2751
File diff suppressed because it is too large.
Load diff
+2
-1788
File diff suppressed because it is too large.
Load diff
+2
-1710
File diff suppressed because it is too large.
Load diff
+2
-2987
File diff suppressed because it is too large.
Load diff
+2
-1566
File diff suppressed because it is too large.
Load diff
+2
-3050
File diff suppressed because it is too large.
Load diff
+2
-2846
File diff suppressed because it is too large.
Load diff
+2
-1752
File diff suppressed because it is too large.
Load diff
+2
-2276
File diff suppressed because it is too large.
Load diff
+2
-1260
File diff suppressed because it is too large.
Load diff
+2
-1434
File diff suppressed because it is too large.
Load diff
+2
-1372
File diff suppressed because it is too large.
Load diff
+2
-1656
File diff suppressed because it is too large.
Load diff
+2
-2310
File diff suppressed because it is too large.
Load diff
+2
-2969
File diff suppressed because it is too large.
Load diff
+2
-2504
File diff suppressed because it is too large.
Load diff
+2
-1626
File diff suppressed because it is too large.
Load diff
+2
-2189
File diff suppressed because it is too large.
Load diff
+2
-1892
File diff suppressed because it is too large.
Load diff
+2
-2926
File diff suppressed because it is too large.
Load diff
+2
-1892
File diff suppressed because it is too large.
Load diff
+2
-2144
File diff suppressed because it is too large.
Load diff
+2
-2185
File diff suppressed because it is too large.
Load diff
+2
-2987
File diff suppressed because it is too large.
Load diff
+2
-2845
File diff suppressed because it is too large.
Load diff
+2
-2585
File diff suppressed because it is too large.
Load diff
Loaded 100 of 342 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user