Jabi
17dfbbed84
enable piped argument on function calls ( #233 )
2021-04-14 10:00:44 +02:00
Kim Biesbjerg
c60705d5fa
run prettier on code
2020-05-28 19:36:21 +02:00
Kim Biesbjerg
85cd1e4a46
fix(directive-parser) add support for bound attributes
2020-05-28 19:35:26 +02:00
Kim Biesbjerg
2adec54c00
fix(directive-parser) refactor + correct handling of whitespace
2020-05-28 00:09:53 +02:00
Alexander von Weiss
619b3c56ea
fix(pipe-parser): add support for more sophisticated expressions that worked in version 4.2.0 with the regex based parser ( #185 )
...
* fix(pipe-parser): add support for more sophisticated expressions
2020-05-20 15:18:31 +02:00
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
33d8c26a28
extract strings when TranslateService is accessed directly via constructor parameter. Closes #50 and #106
2020-03-22 13:33:40 +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
Jens Habegger
a17ad9c373
Parse Pipes with Angular Compiler AST, enable ternary operator parsing ( #159 )
...
(feature) Use AST-based approach to translate pipe parsing. Also enables parsing translate pipes from any position in a pipe chain. Fixes #111 , Fixes #154 . (Thanks @TekSiDoT)
2020-03-08 09:54:44 +01:00
Kim Biesbjerg
306622b9a0
(chore) run prettier
2019-09-18 14:16:47 +02:00
Kim Biesbjerg
8c8fe8d131
make ts compiler options more strict
2019-09-18 13:36:08 +02:00
Kim Biesbjerg
7bf0c138b8
(refactor) rename constants
2019-09-17 14:24:01 +02:00
Kim Biesbjerg
a72dbf0494
(refactor) rename variables
2019-09-17 08:15:51 +02:00
Kim Biesbjerg
ab2b78eaec
(chore) rename function
2019-09-16 16:54:24 +02:00
Kim Biesbjerg
75ee2bdfda
fix return type
2019-09-16 16:49:47 +02:00
Kim Biesbjerg
4fe3c43624
- (chore) update packages
...
- (refactor) use tsquery for querying AST
- (feat) autodetect usage of marker function and remove --marker cli argument
- (bugfix) extract strings when TranslateService is declared directly as a class parameter. Closes https://github.com/biesbjerg/ngx-translate-extract/issues/83
- (bugfix) handle split strings: marker('hello ' + 'world') is now extracted as a single string: 'hello world'
2019-09-16 16:40:37 +02:00
Kim Biesbjerg
24ebd8f428
(bugfix) extract strings encapsulated with backticks. Closes #139
2019-08-26 12:29:52 +02:00
Kim Biesbjerg
ceb4be7e3d
Change default marker function to 'marker'
2019-07-17 12:52:33 +02:00
Kim Biesbjerg
6e161c83f8
replace DirectiveParser with new version that uses Angular compiler
2019-07-08 15:12:54 +02:00
Kim Biesbjerg
9e5dad362c
removed test parsers
2019-07-08 14:36:24 +02:00
Kim Biesbjerg
e133e0ce30
remove console log
2019-07-08 14:35:18 +02:00
Kim Biesbjerg
7ee0b7da71
refactor: use isPropertyAccessExpression
2019-07-08 14:33:35 +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
4fd7efa2dc
(refactor) simplify extraction of string literals
2019-06-13 11:23:37 +02:00
Kim Biesbjerg
02fc705bc0
(feat) add support for extracting binary expressions. example: translateService.instant(message || 'text if message is falsey')
2019-06-12 15:04:47 +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
b2ae17697d
Replace all occurences of escaped quotes.
2017-07-05 15:43:54 +02:00
Kim Biesbjerg
5259da8fe3
Add support for TranslateService's stream method. Closes #60
2017-07-05 15:18:41 +02:00
Kim Biesbjerg
4ee7258a31
Fix potential bug when extracting strings from file containing multiple classes
2017-05-10 14:10:13 +02:00
Kim Biesbjerg
d416c6b9fd
Add support for extracting strings from multiple classes per file. Closes #46
2017-05-09 20:08:44 +02:00
Kim Biesbjerg
3b9561916b
Fix crash when constructor parameter has no type. Closes #38
2017-05-05 11:31:30 +02:00
cvaliere
262a89206d
fix parser regexp ( #31 )
...
- fix template parser regexp (Closes #15 )
2017-04-06 08:50:23 +02:00
Kim Biesbjerg
030ab145d6
Add return types
2017-03-30 14:40:51 +02:00
Kim Biesbjerg
daaebede6f
Add support for marker functions, to be able to extract strings not directly passed to TranslateService. Closes #10
2017-03-30 14:37:30 +02:00
Kim Biesbjerg
3facc0c287
- Added typings for packages where typings existed
...
- Remove regexp ServiceParser and make AstServiceParser the default. #23
- Replaced CLI parser to add support for multiple input/output paths (supports file expansion, glob patterns and multiple values/parameters) #7
2017-03-20 15:29:41 +01:00
Kim Biesbjerg
c5d68cfcaa
Check if parameter has a type before attempting to access. Should fix #26
2017-03-20 15:17:46 +01:00
Kim Biesbjerg
d51674950c
Update pinned package versions
2017-03-07 15:38:45 +01:00
Kim Biesbjerg
1c3915ff43
Add experimental AstServiceParser
2017-01-28 15:22:08 +01:00
Kim Biesbjerg
303fb1b6de
Fix bug where keys were being extracted when not accessing TranslationService property
2017-01-28 15:06:05 +01:00
Kim Biesbjerg
fcd37fd000
Fix bug in PipeParser
2017-01-13 09:34:34 +01:00
Kim Biesbjerg
5c78a37ae0
Add support for node 4.3.2+
2016-12-23 05:45:06 +01:00
Kim Biesbjerg
d0730431d0
Move normalizeTemplateAttributes method to DirectiveParser
2016-12-23 04:07:01 +01:00
Kim Biesbjerg
9d87ff368c
Fix Pipe regex and add test
2016-12-20 16:42:05 +01:00