MCPcopy Create free account
hub / github.com/angular/angular / getLocaleDirection

Function getLocaleDirection

packages/common/src/i18n/locale_data_api.ts:725–728  ·  view source on GitHub ↗
(locale: string)

Source from the content-addressed store, hash-verified

723 * 3rd party alternatives like [`rtl-detect`](https://www.npmjs.com/package/rtl-detect) can work around this issue.
724 */
725export function getLocaleDirection(locale: string): 'ltr' | 'rtl' {
726 const data = ɵfindLocaleData(locale);
727 return data[ɵLocaleDataIndex.Directionality];
728}
729
730/**
731 * Retrieves the first value that is defined in an array, going backwards from an index position.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected