code4romania / website-factory

Mozilla Public License 2.0
17 stars 15 forks source link

App\Exceptions\LanguageNotInISO639: Language code `ua` not found in ISO 639-1. #623

Open sentry-io[bot] opened 8 months ago

sentry-io[bot] commented 8 months ago

Sentry Issue: WEBSITE-FACTORY-49

App\Exceptions\LanguageNotInISO639: Language code `ua` not found in ISO 639-1.
  File "/app/Services/ISO_639_1.php", line 969, in App\Services\ISO_639_1::getLanguage
    throw new LanguageNotInISO639($code);
  File "/app/Services/ISO_639_1.php", line 987, in App\Services\ISO_639_1::getCombinedLanguageName
    $language = self::getLanguage($code);
  File "/app/Models/Language.php", line 72, in App\Models\Language::getNameAttribute
    return ISO_639_1::getCombinedLanguageName($this->code);
  File "/app/Providers/LanguageServiceProvider.php", line 22, in App\Providers\LanguageServiceProvider::App\Providers\{closure}
    $language->code => $language->only([
  File "/app/Providers/LanguageServiceProvider.php", line 21, in App\Providers\LanguageServiceProvider::App\Providers\{closure}
    ->mapWithKeys(fn (Language $language) => [
...
(50 additional frame(s) were not displayed)
danut3101 commented 2 weeks ago

It is true. The ISO 639-1 code for Ukraine is uk, not ua. This should fixed in main database, or specific intance seed. There are no PR for such issue. ISO 639-1 contains no ua code!