feat(compiler): deprecate i18n comments in favor of ng-container (#18998)

PR Close #18998
This commit is contained in:
Olivier Combe
2017-09-01 14:50:58 +02:00
committed by Miško Hevery
parent d52f42688a
commit 66a5dab85a
4 changed files with 18 additions and 21 deletions

View File

@ -405,6 +405,11 @@ export function main() {
});
describe('blocks', () => {
it('should console.warn if we use i18n comments', () => {
// TODO(ocombe): expect a warning message when we have a proper log service
extract('<!-- i18n --><p><b i18n-title="m|d" title="msg"></b></p><!-- /i18n -->');
});
it('should merge blocks', () => {
const HTML = `before<!-- i18n --><p>foo</p><span><i>bar</i></span><!-- /i18n -->after`;
expect(fakeTranslate(HTML))