Language - viames/pair GitHub Wiki
Pair framework: Language
Pair\Models\Language stores language settings and country association.
Main methods
getDefaultCountry(): ?Country
Lifecycle/config:
_init()defines fields and validations
Implementation example
$lang = \Pair\Models\Language::findByCode('en');
$defaultCountry = $lang?->getDefaultCountry();
Notes
- Supports locale-aware defaults for formatting and content routing.
See also: Country, Locale, Translator.