GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Docs
  • Tutorials
  • Playground
  • Reference
  • code
  • Internationalization (i18n) Guide

This view

  • Original page
  • New address

GeezerVison is showing angular.dev — getLocaleDirection • Angular

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'

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.