Skip to content

Commit

Permalink
remove obsolete function
Browse files Browse the repository at this point in the history
  • Loading branch information
Philippe Damen committed Feb 2, 2024
1 parent 32d7b46 commit 80b5339
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/Translations/TranslationManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,20 +36,6 @@ public function createTranslationFiles(Collection $translations, string $locale)
}
}

public function checkTranslations(Collection $translations, string $locale) : bool
{
$localeTranslations = collect($this->getTranslations($locale));

$missingKeys = $translations->dot()->diffAssoc($localeTranslations->dot());
$extraKeys = $localeTranslations->dot()->diffAssoc($translations->dot());

if ($missingKeys->isNotEmpty() || $extraKeys->isNotEmpty()) {
return false;
}

return true;
}

protected function getVendorTranslations(string $locale) : Collection
{
if (! $this->filesystem->exists(lang_path('vendor'))) {
Expand Down

0 comments on commit 80b5339

Please sign in to comment.