Add tests and allow more liberal spacing with get/instant calls

This commit is contained in:
Kim Biesbjerg
2016-12-13 15:17:03 +01:00
parent ca8b122295
commit 8093370e94
9 changed files with 64 additions and 20 deletions

View File

@@ -25,7 +25,7 @@ export class PoCompiler implements CompilerInterface {
msgstr: collection.get(key)
};
return translations;
}, <any>{})
}, <any> {})
}
};
@@ -45,7 +45,7 @@ export class PoCompiler implements CompilerInterface {
.reduce((values, key) => {
values[key] = po.translations[this.domain][key].msgstr.pop();
return values;
}, <TranslationType>{});
}, <TranslationType> {});
return new TranslationCollection(values);
}