File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -190,7 +190,7 @@ function getPluralizationRule(number, locale) {
190
190
191
191
let _locale = null ;
192
192
let _localeFallbacks = { } ;
193
- let _registeredTranslations = { } ;
193
+ const _registeredTranslations = { } ;
194
194
function setLocale ( locale ) {
195
195
_locale = locale ;
196
196
}
@@ -254,7 +254,7 @@ function registerDomain(domainTranslations) {
254
254
function getRegisteredMessage ( key , domain ) {
255
255
var _a ;
256
256
var _b ;
257
- let message = { id : key , translations : { } } ;
257
+ const message = { id : key , translations : { } } ;
258
258
for ( const domainName of [ domain , domain + '+intl-icu' ] ) {
259
259
if ( typeof _registeredTranslations [ domainName ] === 'undefined' ) {
260
260
continue ;
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ import { format } from './formatters/formatter';
43
43
let _locale : LocaleType | null = null ;
44
44
let _localeFallbacks : Record < LocaleType , LocaleType > = { } ;
45
45
46
- let _registeredTranslations : RegisteredTranslationsType = { } ;
46
+ const _registeredTranslations : RegisteredTranslationsType = { } ;
47
47
48
48
export function setLocale ( locale : LocaleType | null ) {
49
49
_locale = locale ;
@@ -181,11 +181,10 @@ export function registerDomain(domainTranslations: RegisteredTranslationsType) {
181
181
}
182
182
}
183
183
184
- function getRegisteredMessage ( key : string , domain : string ) : Message < TranslationsType , LocaleType >
185
- {
186
- let message : Message < TranslationsType , LocaleType > = { id : key , translations : { } } ;
184
+ function getRegisteredMessage ( key : string , domain : string ) : Message < TranslationsType , LocaleType > {
185
+ const message : Message < TranslationsType , LocaleType > = { id : key , translations : { } } ;
187
186
188
- for ( const domainName of [ domain , domain + '+intl-icu' ] ) {
187
+ for ( const domainName of [ domain , domain + '+intl-icu' ] ) {
189
188
if ( typeof _registeredTranslations [ domainName ] === 'undefined' ) {
190
189
continue ;
191
190
}
You can’t perform that action at this time.
0 commit comments