getLocaleDirection
함수
사용 중단 권고v18.0부터
Retrieves the writing direction of a specified locale
사용 중단을 권고합니다.
@paramlocale
stringA locale code for the locale format rules to use.
@returns
"ltr" | "rtl"'rtl' or 'ltr'
상세 내용으로 이동
Retrieves the writing direction of a specified locale
사용 중단을 권고합니다.
Angular recommends relying on the Intl API for i18n.
For dates and numbers, let Intl.DateTimeFormat() and Intl.NumberFormat() determine the writing direction.
The Intl alternative getTextInfo.
has only partial support (Chromium M99 & Safari 17).
3rd party alternatives like rtl-detect can work around this issue.
Angular recommends relying on the Intl API for i18n.
For dates and numbers, let Intl.DateTimeFormat() and Intl.NumberFormat() determine the writing direction.
The Intl alternative getTextInfo.
has only partial support (Chromium M99 & Safari 17).
3rd party alternatives like rtl-detect can work around this issue.
stringA locale code for the locale format rules to use.
"ltr" | "rtl"'rtl' or 'ltr'