This is the archived documentation for Angular v6. Please visit angular.io to see documentation for the current version of Angular.

getLocaleId

The locale id for the chosen locale (e.g en-GB).

getLocaleId(locale: string): string
      
      getLocaleId(locale: string): string
    

Parameters

locale

Type: string.

Returns

string