Fixed minor issue
This commit is contained in:
parent
36ccbb8d80
commit
417ee02087
|
@ -68,7 +68,9 @@ export class CultureService {
|
|||
import(`@angular/common/locales/${locale}.js`).catch(reason => {
|
||||
this.logger.error('Could not load locale: ' + locale);
|
||||
}).then(selectedDefaultLocale => {
|
||||
if (selectedDefaultLocale !== undefined) {
|
||||
registerLocaleData(selectedDefaultLocale.default);
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue