feat(compiler): deprecate i18n comments in favor of ng-container
(#18998)
PR Close #18998
This commit is contained in:

committed by
Miško Hevery

parent
d52f42688a
commit
66a5dab85a
@ -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))
|
||||
|
Reference in New Issue
Block a user