fix(ivy): use goog.LOCALE for Closure Compiler to define default LOCALE_ID (#31519)

Prior to this commit, default value for LOCALE_ID was not setup for Closure Compiler. In Closure Compiler, we can use `goog.LOCALE` as a default value, which will be replaced at build time with current locale.

PR Close #31519
This commit is contained in:
Andrew Kushnir
2019-07-11 14:54:49 -07:00
committed by Matias Niemelä
parent 40d785f0a0
commit 09576e9683
2 changed files with 11 additions and 1 deletions

1
packages/goog.d.ts vendored
View File

@ -16,6 +16,7 @@ declare namespace goog {
* as it is sometimes true.
*/
export const DEBUG: boolean;
export const LOCALE: string;
export const getMsg: (input: string, placeholders?: {[key: string]: string}) => string;
}