MCPcopy Index your code
hub / github.com/angular/angular / getLocaleDirection

Function getLocaleDirection

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

Source from the content-addressed store, hash-verified

698 * 3rd party alternatives like [`rtl-detect`](https://www.npmjs.com/package/rtl-detect) can work around this issue.
699 */
700export function getLocaleDirection(locale: string): 'ltr' | 'rtl' {
701 const data = ɵfindLocaleData(locale);
702 return data[ɵLocaleDataIndex.Directionality];
703}
704
705/**
706 * 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