It is necessary in order to distinguish 2 different reasons for referencing the compiled-in locale. 1. Some code just needs to pass the locale value on to logic that actually uses it. 2. Other code uses the locale value to select locale-specific user-visible data and behavior. Code modified by this change is of the first kind and should use `goog.getLocale()` in the future. Note: there are still references to the `goog.LOCALE` in Angular codebase, but they are of second type. PR Close #43089
28 lines
659 B
TypeScript
28 lines
659 B
TypeScript
/**
|
|
* @license
|
|
* Copyright Google LLC All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
* found in the LICENSE file at https://angular.io/license
|
|
*/
|
|
|
|
|
|
/**
|
|
* Typings for google closure.
|
|
*/
|
|
declare namespace goog {
|
|
/**
|
|
* Note: Don't use this to check for advanced compilation,
|
|
* as it is sometimes true.
|
|
*/
|
|
export const DEBUG: boolean;
|
|
export const LOCALE: string;
|
|
export const getMsg: (input: string, placeholders?: {[key: string]: string}) => string;
|
|
export const getLocale: () => string;
|
|
}
|
|
|
|
/**
|
|
* Use this flag to check for advanced compilation.
|
|
*/
|
|
declare const COMPILED: boolean;
|