User:Iritscen/vector-2022.js: Difference between revisions

m
no edit summary
(added test code for LocaleDate)
mNo edit summary
Line 14: Line 14:
     return;
     return;
   
   
   if (lang == "en-US")
   if (lang != "en-US") // LocaleDate prints dates in U.S.-style by default
  {
    root.style.setProperty('--month-order', '1');
    root.style.setProperty('--day-order', '2');
  }
  else
   {
   {
     root.style.setProperty('--month-order', '2');
     root.style.setProperty('--month-order', '2');
     root.style.setProperty('--day-order', '1');
     root.style.setProperty('--day-order', '1');
    root.style.setProperty('--month-before', '/');
    root.style.setProperty('--day-before', '');
   }
   }
}
}