code4romania / code4romania/website-factory

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

Open
#623 1 comment 0 reactions 1 assignee Claimed by @andreiio View on GitHub
bug :bug:
Dominant language
PHP
Stars
26
Forks
18
Avg merge
1m
Merged PRs (30d)
14

Description

Sentry Issue: [WEBSITE-FACTORY-49](https://code4romania.sentry.io/issues/4983966077/?referrer=github_integration)

```
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)
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.