Skip to content

Commit c98bc8c

Browse files
committed
add ignores to reorder command
1 parent e94e21e commit c98bc8c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Commands/NovaLangReorder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function handle()
5252
$outputDirectory = storage_path('app/nova-lang/reorder');
5353
$this->filesystem->makeDirectory($outputDirectory, 0777, true, true);
5454

55-
$sourceKeys = array_keys(json_decode($this->filesystem->get($sourceFile), true));
55+
$sourceKeys = array_values(array_diff(array_keys(json_decode($this->filesystem->get($sourceFile), true)), static::IGNORED_KEYS));
5656

5757
$availableLocales = $this->getAvailableLocales();
5858

@@ -74,7 +74,7 @@ public function handle()
7474

7575
$localeTranslations = json_decode($this->filesystem->get($inputFile), true);
7676

77-
$localeKeys = array_keys($localeTranslations);
77+
$localeKeys = array_values(array_diff(array_keys($localeTranslations), static::IGNORED_KEYS));
7878

7979
$reorderedKeys = array_diff_assoc(array_values(array_intersect($sourceKeys, $localeKeys)), $localeKeys);
8080

0 commit comments

Comments
 (0)