Tests about support of HTML tags in translations keys with GetText (#172)
- Verify that html tags are supported in translation keys - Add typed support of gettext-parser
This commit is contained in:
		| @@ -36,6 +36,12 @@ describe('DirectiveParser', () => { | ||||
| 		expect(keys).to.deep.equal(['Hello <strong translate>World</strong>']); | ||||
| 	}); | ||||
|  | ||||
| 	it('should not exclude html tags in children', () => { | ||||
| 		const contents = `<div translate>Hello <strong>World</strong></div>`; | ||||
| 		const keys = parser.extract(contents, templateFilename).keys(); | ||||
| 		expect(keys).to.deep.equal(['Hello <strong>World</strong>']); | ||||
| 	}); | ||||
|  | ||||
| 	it('should extract and parse inline template', () => { | ||||
| 		const contents = ` | ||||
| 			@Component({ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user