pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://angular.dev/api/common/getLocaleDirection

'auto' && prefersDark)) { documentClassList.add(DARK_MODE_CLASS_NAME); } else { documentClassList.add(LIGHT_MODE_CLASS_NAME); } if (location.search.includes('uwu')) { documentClassList.add('uwu'); } getLocaleDirection • Angular
    • Overview
@angular/common

getLocaleDirection

function
deprecatedsince v18

Retrieves the writing direction of a specified locale

Deprecation warning

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.

API

function getLocaleDirection(locale: string): 'ltr' | 'rtl';
@deprecated

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.

@paramlocalestring

A locale code for the locale format rules to use.

@returns"ltr" | "rtl"

'rtl' or 'ltr'

Jump to details
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy