Spaces:
Running
Running
File size: 311 Bytes
03608f2 | 1 2 3 4 5 | // Server-safe: runs inline in <head> before paint so Urdu users never see an LTR flash.
export const LOCALE_KEY = "wp-locale";
export const localeBootScript = `try{var l=localStorage.getItem("${LOCALE_KEY}");if(l==="ur"){document.documentElement.lang="ur";document.documentElement.dir="rtl"}}catch(e){}`;
|