rsanchez
2017-03-10 2762277c60db7df5ad3214b10a0dd93d4f2f1128
securis/src/main/webapp/src/app/common/i18n.ts
....@@ -79,6 +79,9 @@
7979 * $L.get('Hello {0}!!', 'John'); // This returns: "Hola John!!" if language is spanish
8080 */
8181 get(msg: string) : string {
82
+ if (msg == null) {
83
+ return '';
84
+ }
8285 msg = msg.trim();
8386 var trans_msg = msg;
8487
....@@ -121,6 +124,7 @@
121124 })
122125 export class LocaleServiceModule {
123126 static withConfig(initLang?: string): ModuleWithProviders {
127
+ console.log('Init lang with ' + initLang);
124128 return {
125129 ngModule: LocaleServiceModule,
126130 providers: [