You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Summary
- Add `FormatPhoneNumber` in `internal/locale/phone.go` using
`nyaruka/phonenumbers` for international phone formatting (NATIONAL for
same-region, INTERNATIONAL for foreign numbers)
- Add `Locale` field to `Vendor` model (ISO 3166-1 alpha-2, empty =
system default via `DetectCountry()`)
- Add `cellTelephoneNumber` kind with explicit exhaustive switch cases
- Format phones in the TUI vendor table, CLI `show vendors` text output,
and extraction preview
- Preserve `Locale` through form round-trips; leave `FindOrCreateVendor`
untouched
- JSON `show vendors` output keeps raw phone values for machine
consumption
- Handle shared calling codes (+1 US/CA) by checking `+` prefix presence
for fictional numbers
closes#860
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments