securis/src/main/webapp/src/app/common/i18n.ts
.. .. @@ -79,6 +79,9 @@ 79 79 * $L.get('Hello {0}!!', 'John'); // This returns: "Hola John!!" if language is spanish 80 80 */ 81 81 get(msg: string) : string { 82 + if (msg == null) {83 + return '';84 + }82 85 msg = msg.trim(); 83 86 var trans_msg = msg; 84 87 .. .. @@ -121,6 +124,7 @@ 121 124 }) 122 125 export class LocaleServiceModule { 123 126 static withConfig(initLang?: string): ModuleWithProviders { 127 + console.log('Init lang with ' + initLang);124 128 return { 125 129 ngModule: LocaleServiceModule, 126 130 providers: [