import { messages } from './i18n' ; import { Localization , Message } from './localization' ; function loadMessageBundle ( ) { try { const layer = new Message ( messages ) ; return layer ; } catch ( e ) { console . error ( 'Cannot find messages in i18n module' ) ; return new Message ( { } ) ; } } export const nls = new Localization ( loadMessageBundle ( ) ) ; export { Localization , Message } from './localization' ;