Spaces:
Running
Running
Download web/src/lib/i18n/boot.ts from Aynkhn/WorkPilot-AI: direct link, hf CLI and curl.
- Browser
- Download file 311 Bytes
-
https://huggingface.co/spaces/Aynkhn/WorkPilot-AI/resolve/main/web/src/lib/i18n/boot.ts
- Command line
-
hf download hf://spaces/Aynkhn/WorkPilot-AI/web/src/lib/i18n/boot.ts
-
curl -L -o boot.ts https://huggingface.co/spaces/Aynkhn/WorkPilot-AI/resolve/main/web/src/lib/i18n/boot.ts
311 Bytes
| // 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){}`; | |