Skip to content

Commit 384c740

Browse files
committed
fix
1 parent cfbaf7e commit 384c740

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/Commands/UntranslatedCommand.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,29 +28,29 @@ public function handle(): int
2828
$translator = $this->getTranslator();
2929

3030
$missing = $translator->getUntranslatedTranslations($source, $target);
31-
$count = $missing->count();
31+
$missingDot = $missing->dot();
32+
$count = $missingDot->count();
3233

3334
intro('Using driver: '.$translator->driver::class);
3435

3536
note("{$count} untranslated keys detected.");
3637

3738
table(
3839
headers: ['Key', "Source {$source}"],
39-
rows: $missing
40-
->dot()
40+
rows: $missingDot
4141
->map(fn ($value, $key) => [
4242
$key,
4343
(string) str((string) $value)->limit(50),
4444
])->toArray()
4545
);
4646

4747
if ($translate) {
48-
$translated = spin(function () use ($translator, $source, $target, $missing) {
48+
$translated = spin(function () use ($translator, $source, $target, $missingDot) {
4949

5050
return $translator->translateTranslations(
5151
source: $source,
5252
target: $target,
53-
keys: $missing->dot()->keys()->all()
53+
keys: $missingDot->keys()->all()
5454
);
5555

5656
}, "Translating the {$count} translations from '{$source}' to '{$target}'");
@@ -59,10 +59,10 @@ public function handle(): int
5959
headers: ['Key', "Source {$source}", "Target {$target}"],
6060
rows: $translated
6161
->dot()
62-
->map(function ($value, $key) use ($missing) {
62+
->map(function ($value, $key) use ($missingDot) {
6363
return [
6464
(string) $key,
65-
str($missing->getString($key))->limit(25)->value(),
65+
str((string) $missingDot->get($key))->limit(25)->value(),
6666
str((string) $value)->limit(25)->value(),
6767
];
6868
})

0 commit comments

Comments
 (0)