Internationalisation

International Telephone Input supports two ways of translating the plugin text (which includes over 200 country names and several other interface strings). The first way is to simply import one of the provided locales e.g. in the below example we import the Russian locale. The second way is to pass in your own translations - for more details, see the readme (search for the i18n section). View all of the provided locales in action on Storybook (using the React component).

Demo

Markup

<input id="phone" type="tel">

Code

import intlTelInput from "intl-tel-input";
import { ru } from "intl-tel-input/i18n"; // Russian

const input = document.querySelector("#phone");

intlTelInput(input, {
  i18n: ru,
  initialCountry: "ru",
  utilsScript: "/intl-tel-input/js/utils.js?1730730622316" // just for formatting/placeholders etc
});