Skip to content

Commit b04a77f

Browse files
committed
renamed caouecs
1 parent 12a6223 commit b04a77f

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,9 @@ Total lines translated ![17,134 (91.8%)](https://img.shields.io/badge/17,134-91%
125125

126126
## Missing Languages
127127

128-
The following languages are supported for the main Laravel framework by the excellent [caouecs/laravel-lang](https://github.com/caouecs/Laravel-lang) package. We would love for our package to make these languages available for Nova as well. If you are able to contribute to any of these or other languages, please read our [contributing guidelines](CONTRIBUTING.md) and raise a PR.
128+
The following languages are supported for the main Laravel framework by the excellent [laravel-lang/lang](https://github.com/laravel-lang/lang) package. We would love for our package to make these languages available for Nova as well. If you are able to contribute to any of these or other languages, please read our [contributing guidelines](CONTRIBUTING.md) and raise a PR.
129129

130-
Parity with `caouecs/laravel-lang` ![42/75 (56%)](https://img.shields.io/badge/42%2F75-56%25-red?style=flat-square)
130+
Parity with `laravel-lang/lang` ![42/76 (55.3%)](https://img.shields.io/badge/42%2F76-55%25-red?style=flat-square)
131131

132132
| Code | Language | Lines translated |
133133
| --- | --- | --- |
@@ -154,6 +154,7 @@ Parity with `caouecs/laravel-lang` ![42/75 (56%)](https://img.shields.io/badge/4
154154
| `cnr` | Montenegrin | ![0 (0%)](https://img.shields.io/badge/0-0%25-lightgray?style=flat-square) |
155155
| `ne` | Nepali | ![0 (0%)](https://img.shields.io/badge/0-0%25-lightgray?style=flat-square) |
156156
| `nn` | Norwegian Nynorsk | ![0 (0%)](https://img.shields.io/badge/0-0%25-lightgray?style=flat-square) |
157+
| `oc` | Occitan | ![0 (0%)](https://img.shields.io/badge/0-0%25-lightgray?style=flat-square) |
157158
| `ps` | Pashto | ![0 (0%)](https://img.shields.io/badge/0-0%25-lightgray?style=flat-square) |
158159
| `sc` | Sardinian | ![0 (0%)](https://img.shields.io/badge/0-0%25-lightgray?style=flat-square) |
159160
| `si` | Sinhala | ![0 (0%)](https://img.shields.io/badge/0-0%25-lightgray?style=flat-square) |

contributors.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -650,5 +650,10 @@
650650
"name": "Welsh",
651651
"complete": 0,
652652
"contributors": []
653+
},
654+
"oc": {
655+
"name": "Occitan",
656+
"complete": null,
657+
"contributors": []
653658
}
654659
}

src/Commands/NovaLangStats.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,10 +194,10 @@ public function handle()
194194
$missingPercent = $this->getPercent($parityCount, $caouecsCount);
195195
$icon = $this->getPercentIcon($parityCount.'%2F'.$caouecsCount, $missingPercent);
196196

197-
$totals = sprintf('Parity with `caouecs/laravel-lang` ![%d/%d (%s%%)](%s)', $parityCount, $caouecsCount, $missingPercent, $icon);
197+
$totals = sprintf('Parity with `laravel-lang/lang` ![%d/%d (%s%%)](%s)', $parityCount, $caouecsCount, $missingPercent, $icon);
198198

199199
$header = '## Missing Languages'.PHP_EOL.PHP_EOL.
200-
'The following languages are supported for the main Laravel framework by the excellent [caouecs/laravel-lang](https://github.com/caouecs/Laravel-lang) package. We would love for our package to make these languages available for Nova as well. If you are able to contribute to any of these or other languages, please read our [contributing guidelines](CONTRIBUTING.md) and raise a PR.'.PHP_EOL.PHP_EOL.
200+
'The following languages are supported for the main Laravel framework by the excellent [laravel-lang/lang](https://github.com/laravel-lang/lang) package. We would love for our package to make these languages available for Nova as well. If you are able to contribute to any of these or other languages, please read our [contributing guidelines](CONTRIBUTING.md) and raise a PR.'.PHP_EOL.PHP_EOL.
201201
$totals.PHP_EOL.PHP_EOL.
202202
'| Code | Language | Lines translated |'.PHP_EOL.
203203
'| --- | --- | --- |';
@@ -352,7 +352,7 @@ protected function directoryNovaSource(): string
352352

353353
protected function directoryCaouecsSource(): string
354354
{
355-
return base_path('vendor/caouecs/laravel-lang');
355+
return base_path('vendor/laravel-lang/lang');
356356
}
357357

358358
protected function caouecsMapping(string $caouecs): string
@@ -363,9 +363,11 @@ protected function caouecsMapping(string $caouecs): string
363363
'uz-cyrillic' => 'uz-Cyrl',
364364
'uz-latin' => 'uz-Latn',
365365
'sr-cyrillic' => 'sr',
366+
'sr-cyrl' => 'sr',
366367
'sr-latin' => 'sr-Latn',
367368
'sr' => 'sr-Latn',
368369
'me' => 'cnr',
370+
'sr-latn-me' => 'cnr',
369371
];
370372

371373
return $mapping[strtolower($caouecs)] ?? $caouecs;

0 commit comments

Comments
 (0)