@@ -50,10 +50,10 @@ function extractNumberSymbols(content, localeInfo, currencySymbols) {
50
50
function extractCurrencySymbols ( content ) {
51
51
//eval script in the current context so that we get access to all the symbols
52
52
eval ( content . toString ( ) ) ;
53
- var currencySymbols = goog . i18n . currency . CurrencyInfo ;
54
- currencySymbols . __proto__ = goog . i18n . currency . CurrencyInfoTier2 ;
53
+ // var currencySymbols = goog.i18n.currency.CurrencyInfo;
54
+ // currencySymbols.__proto__ = goog.i18n.currency.CurrencyInfoTier2;
55
55
56
- return currencySymbols ;
56
+ return Object . assign ( { } , goog . i18n . currency . CurrencyInfoTier2 , goog . i18n . currency . CurrencyInfo ) ;
57
57
}
58
58
59
59
function extractDateTimeSymbols ( content , localeInfo ) {
@@ -79,7 +79,7 @@ function pluralExtractor(content, localeInfo) {
79
79
goog . LOCALE = localeIds [ i ] . match ( / [ ^ _ ] + / ) [ 0 ] ;
80
80
try {
81
81
eval ( contentText ) ;
82
- } catch ( e ) {
82
+ } catch ( e ) {
83
83
console . log ( "Error in eval(contentText): " + e . stack ) ;
84
84
}
85
85
if ( ! goog . i18n . pluralRules . select ) {
@@ -133,7 +133,7 @@ function canonicalizeForJsonStringify(unused_key, object) {
133
133
134
134
function serializeContent ( localeObj ) {
135
135
return JSON . stringify ( localeObj , canonicalizeForJsonStringify , ' ' )
136
- . replace ( new RegExp ( '[\\u007f-\\uffff]' , 'g' ) , function ( c ) { return '\\u' + ( '0000' + c . charCodeAt ( 0 ) . toString ( 16 ) ) . slice ( - 4 ) ; } )
136
+ . replace ( new RegExp ( '[\\u007f-\\uffff]' , 'g' ) , function ( c ) { return '\\u' + ( '0000' + c . charCodeAt ( 0 ) . toString ( 16 ) ) . slice ( - 4 ) ; } )
137
137
. replace ( / " @ @ | @ @ " / g, '' ) ;
138
138
}
139
139
0 commit comments