You can translate the component by passing a labels object to the PhoneInput. The library provides pre-packaged translations in the react-phone-number-input/locale directory.
A translation object must include country names (including unofficial codes like AC, TA, XK, and ZZ) and specific keys for UI elements:
country: used for the country <select/> aria-label.phone: label for the phone number input.ext: label for the extension input.ZZ: label for "International" (when no country is selected).
import russianLabels from 'react-phone-number-input/locale/ru'
<PhoneInput labels={russianLabels} .../>
Translation Object Format:
{
"country": "Phone number country",
"phone": "Phone",
"ext": "ext.",
"RO": "Romania",
"RS": "Serbia",
"RU": "Russia",
"ZZ": "International"
}