Right to left

In this demo, we add dir="rtl" to the plugin container to make the layout run from right to left (though the phone input and dropdown dial codes are still left-to-right as phone numbers should always be written/displayed that way). We also import and use the Arabic locale, and initialise the plugin with the initial country set to Egypt.

Demo

Markup

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

Code

import intlTelInput from "intl-tel-input";
import ar from "intl-tel-input/i18n/ar"; // arabic

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

intlTelInput(input, {
  i18n: ar,
  initialCountry: "eg",
  loadUtils: () => import("/intl-tel-input/js/utils.js?1757425287804") // for formatting/placeholders etc
});