getLocaleDirection

From Get docs
< @angular/commonAngular/docs/9/api/common/getlocaledirection


getLocaleDirection

function

Retrieves the writing direction of a specified locale

getLocaleDirection(locale: string): 'ltr' | 'rtl'

Parameters
locale string A locale code for the locale format rules to use.
Returns

'ltr' | 'rtl': 'rtl' or 'ltr'


See also


© 2010–2020 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v9.angular.io/api/common/getLocaleDirection