UNPKG

@inlang/paraglide-js

Version:

[![NPM Downloads](https://img.shields.io/npm/dw/%40inlang%2Fparaglide-js?logo=npm&logoColor=red&label=npm%20downloads)](https://www.npmjs.com/package/@inlang/paraglide-js) [![GitHub Issues](https://img.shields.io/github/issues-closed/opral/paraglide-js?lo

16 lines 570 B
/** * Get writing direction for a locale. * * Uses `Intl.Locale` text info when available and falls back to a * language-based RTL check for runtimes without `getTextInfo()`. * * @example * getTextDirection(); // "ltr" or "rtl" for current locale * getTextDirection("ar"); // "rtl" * getTextDirection("en"); // "ltr" * * @param {string} [locale] - Target locale. If not provided, uses `getLocale()` * @returns {"ltr" | "rtl"} */ export declare function getTextDirection(locale?: string): "ltr" | "rtl"; //# sourceMappingURL=get-text-direction.d.ts.map