Skip to content

pantoken / renderers/web-components/src / getDir

Fonksyon: getDir()

getDir(localeOrBundle): "ltr" | "rtl"

Alfa

Retounen direksyon tèks la pou yon lokal — sèvi ak rejis LOCALES pou lokal li konnen lokal yo, epi tounen sou "ltr" pou tag enkoni yo.

Paramèt

localeOrBundle

string | LocaleBundle

Retounen

"ltr" | "rtl"

Egzanp

ts
getDir("ar"); // → "rtl"
getDir("hu"); // → "ltr"