Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sentry-io bot opened this issue Feb 16, 2024 · 1 comment
Open
Assignees
Labels
bug 🐛 Something isn't working

Comments

@sentry-io
Copy link

sentry-io bot commented Feb 16, 2024

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)
@sentry-io sentry-io bot added the bug 🐛 Something isn't working label Feb 16, 2024
@danut3101
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants