Kim Biesbjerg
3bf2aaca4e
Trim leading/trailing whitespace. Closes #175
2020-03-31 12:24:57 +02:00
Kim Biesbjerg
ecf629118a
Run prettier on code
2020-03-25 11:47:44 +01:00
Kim Biesbjerg
6ed962fa6e
Remove line breaks and tabs from extracted keys in templates. Closes #144 , #167
2020-03-22 10:23:45 +01:00
Kim Biesbjerg
131713d9db
(chore) refactor to use safe navigation operator
2020-03-08 10:07:27 +01:00
Kim Biesbjerg
306622b9a0
(chore) run prettier
2019-09-18 14:16:47 +02:00
Kim Biesbjerg
a72dbf0494
(refactor) rename variables
2019-09-17 08:15:51 +02:00
Kim Biesbjerg
6e161c83f8
replace DirectiveParser with new version that uses Angular compiler
2019-07-08 15:12:54 +02:00
Kim Biesbjerg
98b84447c7
refactor: use instanceof
2019-06-19 12:49:09 +02:00
Kim Biesbjerg
9a8abb3248
refactor(directive parser) remove cheerio in favor of angular's own compiler
2019-06-18 15:54:58 +02:00
Kim Biesbjerg
e0178b5a97
(bugfix) fix unmatched selector error when template didnt contain any html
2019-06-13 12:32:18 +02:00
Kim Biesbjerg
cb53f6f3b1
(fix) utils import path
2019-06-12 12:59:45 +02:00
Kim Biesbjerg
53eb4d1202
(refactor) get rid of AbstractTemplateParser
2019-06-12 11:50:23 +02:00
Kim Biesbjerg
102286a209
- (feat) add concept of post processors
...
- (feat) add 'key as default value' post processor (closes #109 )
- (chore) move clean functionality to a post processor
- (chore) move sort functionality to a post processor
- (refactor) get rid of leading underscore on protected properties/methods
2019-06-11 23:06:47 +02:00
Dominik Herbst
4892ea5146
Configured cheerio to work with non-HTML standard elements to fix issues with custom component tags. ( #79 )
2017-11-07 15:13:01 +01:00
Kim Biesbjerg
d0730431d0
Move normalizeTemplateAttributes method to DirectiveParser
2016-12-23 04:07:01 +01:00
Kim Biesbjerg
43df1f0fb8
Fix bug in DirectiveParser: should not extract translate pipe in html tag
2016-12-10 04:14:13 +01:00
Kim Biesbjerg
6a76e7b5cb
Add option to merge extracted strings with existing translations (Thanks to @ocombe)
2016-12-09 19:29:48 +01:00
Kim Biesbjerg
59ef277c64
Refactor and clean code
2016-12-09 14:40:21 +01:00
Kim Biesbjerg
73801a9cc5
Add StringCollection to make it easier to work with strings
2016-12-09 05:18:04 +01:00
Kim Biesbjerg
e5f937d7f6
Support alternate ng2-translate attribute in DirectiveParser. Add more tests
2016-12-08 16:09:06 +01:00
Kim Biesbjerg
23d2a5eb9d
Add tests for AbstractTemplateParser and DirectiveParser
2016-12-08 13:53:13 +01:00
Kim Biesbjerg
2c3b5e580d
Extract direct text nodes only when parsing directive
2016-12-07 16:30:24 +01:00
Kim Biesbjerg
e26d522604
Grab html instead of text when parsing directive
2016-12-07 16:03:46 +01:00
Kim Biesbjerg
e6b03f8582
Fix regex. Add *.js to globPatterns
2016-12-07 12:38:16 +01:00
Kim Biesbjerg
cf93eeebf8
Trim whitespace
2016-12-07 06:31:05 +01:00
Kim Biesbjerg
7ca714f029
Formatting
2016-12-07 06:16:18 +01:00
Kim Biesbjerg
f4b5dbed24
Move _normalizeTemplateAttributes to AbstractTemplateParser
2016-12-07 06:14:50 +01:00
Kim Biesbjerg
1ee298f737
Refactor code. Add DirectiveParser (Thanks ocombe\!)
2016-12-07 06:10:48 +01:00
Olivier Combe
24214729c1
Adding a directive parser, and refactoring code a bit
2016-12-06 18:43:21 +01:00