$(document).on('sheet:open', '.sheet[data-name="m_language"]', async function (e) {

  console.log('app form_lang ready')

  let dt1=get_localstorage('lang');

  let dt=dt1.data;

  console.log(dt)

  console.log(ar.lang)

  let t_lang=``;

  ar.lang.forEach((v,i)=>{

    if(dt==v.code) {

      t_lang +=`<label class="radio mr-6" style="margin-left: 5px">

      <input value="`+v.code+`" onChange="lang_change('${v.code}')" type="radio" checked name="lang">

      <i class="icon-radio"></i>

    </label>`+v.lang;

    } else {

      t_lang +=`<label class="radio mr-6" style="margin-left: 5px">

      <input value="`+v.code+`" onChange="lang_change('${v.code}')" type="radio" name="lang">

      <i class="icon-radio"></i>

    </label>`+v.lang;

    }

  })

  $("#r_lang").html(t_lang);

});