Skip to content
Devix Open Source

Fifteen languages

The same picker in every language the package ships — and each one reads its own word for noon, so “midi” and “منتصف الليل” are times you can type.

Live preview
<div class="demo">
  <div class="demo-langs" role="group" aria-label="Language">
    <button type="button" data-lang="en-GB" data-word="noon" aria-pressed="true">English</button>
    <button type="button" data-lang="ar-EG" data-word="منتصف الليل">العربية</button>
    <button type="button" data-lang="ur-PK" data-word="دوپہر">اردو</button>
    <button type="button" data-lang="fr-FR" data-word="midi">Français</button>
    <button type="button" data-lang="de-DE" data-word="mitternacht">Deutsch</button>
    <button type="button" data-lang="es-ES" data-word="mediodía">Español</button>
    <button type="button" data-lang="pt-BR" data-word="meio-dia">Português</button>
    <button type="button" data-lang="it-IT" data-word="mezzogiorno">Italiano</button>
    <button type="button" data-lang="nl-NL" data-word="middernacht">Nederlands</button>
    <button type="button" data-lang="tr-TR" data-word="öğlen">Türkçe</button>
    <button type="button" data-lang="ru-RU" data-word="полдень">Русский</button>
    <button type="button" data-lang="pl-PL" data-word="południe">Polski</button>
    <button type="button" data-lang="hi-IN" data-word="दोपहर">हिन्दी</button>
    <button type="button" data-lang="id-ID" data-word="tengah malam">Indonesia</button>
    <button type="button" data-lang="zh-CN" data-word="中午">中文</button>
    <button type="button" data-lang="ja-JP" data-word="正午">日本語</button>
  </div>

  <div class="demo-field" id="holder">
    <label class="demo-label" for="at">Appointment</label>
    <input id="at" name="at" class="demo-input">
  </div>

  <p class="demo-hint">
    Type <code id="word">noon</code> into the field — the words are part of the language, not just the labels.
    Value: <code id="out">—</code>
  </p>
</div>