Victor Berchet
778e6ad3b4
refactor: cleanup ICU message syntax
2016-11-08 15:44:18 -08:00
Victor Berchet
af520947aa
test(AstSerializer): fix serializing void tags
2016-09-30 17:59:43 -07:00
Victor Berchet
040bf57966
fix(xlif): fix `<x>` ctype names
...
fixes #12000
see http://docs.oasis-open.org/xliff/v1.2/os/xliff-core.html#ctype
2016-09-30 17:59:43 -07:00
Victor Berchet
65a60b7456
style(I18N): Carriage returns in serialized files
2016-09-30 17:59:43 -07:00
Alex Eagle
41c8c30973
chore(lint): remove unused imports ( #11923 )
...
This was done automatically by tslint, which can now fix issues it finds.
The fixer is still pending in PR https://github.com/palantir/tslint/pull/1568
Also I have a local bugfix for https://github.com/palantir/tslint/issues/1569
which causes too many imports to be deleted.
2016-09-27 17:12:25 -07:00
Miško Hevery
979657989b
fix(packages): use ES modules for primary build ( #11120 )
2016-08-30 18:07:40 -07:00
Marc Laval
cbe0976426
test: improve perfs by removing unneeded TestBed.compileComponents() calls ( #11083 )
2016-08-25 14:56:14 -07:00
Igor Minar
3c2b2ff332
test: fix existing tests by removing usage of obsolete stuff like component level directives, AsyncCompleter and TestComponentBuilder
2016-08-23 09:59:00 -07:00
Hans
40e160c22c
fix(platform-browser-dynamic): Rename CACHED_TEMPLATE_PROVIDER to RESOURCE_CACHE_PROVIDER ( #10866 )
...
* fix(platform-browser-dynamic): Rename CACHED_TEMPLATE_PROVIDER to RESOURCE_CACHE_PROVIDER
Closes #9741
BREAKING CHANGE:
`CACHED_TEMPLATE_PROVIDER` is now renamed to `RESOURCE_CACHE_PROVIDER`
Before:
```js
import {CACHED_TEMPLATE_PROVIDER} from '@angular/platform-browser-dynamic';
```
After:
```js
import {RESOURCE_CACHE_PROVIDER} from '@angular/platform-browser-dynamic';
```
* Rename XHR -> ResourceLoader
2016-08-17 09:24:44 -07:00
Victor Berchet
f6a7d6504c
feat(i18n): xliff integration
2016-08-15 22:28:38 -07:00
Victor Berchet
96bf42261b
fix(XmlHelper): declaration
2016-08-15 22:21:40 -07:00
Victor Berchet
72bb38f83b
feat(i18n): xliff
2016-08-15 22:21:40 -07:00
Julie Ralph
4c9900dc3a
refactor(testing): remove deprecated testing functions ( #10832 )
...
Remove TestComponentBuilder, addProviders, and withProviders. These
were deprecated in rc5 - see the changelog for update information.
Note - this does not actually remove the functions, but makes them
internal only. They will be removed from the codebase entirely
at a later time.
2016-08-15 21:40:37 -07:00
Matias Niemelä
6580d67875
feat(i18n): pass translation config directly into ngc ( #10622 )
2016-08-12 14:45:36 -07:00
Victor Berchet
39c0f9ebb3
fix(ExtractorMerger): returns errors together with nodes (as a ParseTreeResult)
2016-08-11 23:24:22 -07:00
Victor Berchet
91dd672aa4
style(xmb): add a space after ICU message cases
2016-08-11 23:24:22 -07:00
Victor Berchet
50345b8c36
feat(i18n): add an HtmlParser decorator ( #10645 )
...
* fix(i18n): merge retains attributes w/o value
* feat(i18n): allow attributes on ng-container (i.e. i18n)
* feat(i18n): add an HtmlParser decorator
* style: clang format
2016-08-11 21:00:35 -07:00
Victor Berchet
43512aa5eb
fix(i18n): ICU placeholders are replaced by their translations ( #10586 )
...
They were replaced by the original message.
2016-08-09 21:05:04 -07:00
Victor Berchet
b65f66feff
feat(i18n): switch to sha1 for message fingerprinting
2016-08-09 09:52:11 -07:00
Victor Berchet
dd68ae3ef1
feat(ExtractorMerger): ignore implicit tags in translatable sections
2016-08-09 09:52:11 -07:00
Victor Berchet
1b04d70626
feat(ExtractorMerger): allow nested implicit tags
2016-08-09 09:52:11 -07:00
Victor Berchet
74b57dfa7d
refactor(i18n): remove circular dep
2016-08-05 13:39:54 -07:00
Victor Berchet
8c9c0986e9
refatcor(digestMessage): takes a `i18n.Message`
2016-08-05 13:39:54 -07:00
Victor Berchet
4028fcaa51
refactor(i18n): Drop `html.Message` and create `i18n.Message` right away
2016-08-05 13:39:54 -07:00
Victor Berchet
7a8ef1eae5
feat(i18n): merge translations
2016-08-05 13:39:54 -07:00
Victor Berchet
e811a5d97f
refactor(i18n): misc updates
2016-08-05 13:39:54 -07:00
Victor Berchet
df44e3e425
fix(i18n extractor): array manipulation
2016-08-05 13:39:54 -07:00
Victor Berchet
cdb1a237e5
refactor(compiler): html_parser -> ml_parser
2016-08-05 13:39:54 -07:00
Marc Laval
cd18de7a21
refactor(compiler): use Object.keys instead of Object.getOwnPropertyNames ( #10498 )
2016-08-04 10:35:41 -07:00
Victor Berchet
13c8211065
fix: String.split(str, n) stops after n separator ( #10408 )
2016-08-01 11:33:35 -07:00
Victor Berchet
e34a04d2ad
feat(xmb/xtb): support dtd
2016-07-29 14:18:34 -07:00
Victor Berchet
0eee1d5de3
feat(i18n): xtb serializer
2016-07-29 13:40:58 -07:00
Victor Berchet
1b77604ee2
refactor(compiler): re-arrange files
2016-07-29 13:40:58 -07:00
Victor Berchet
cc5cfe87c3
feat(i18n): xmb serializer
2016-07-29 13:40:58 -07:00
Victor Berchet
48f230a951
feat(I18nAst): introduce an intermediate AST
2016-07-29 13:40:58 -07:00
Victor Berchet
2be50bdbb0
refactor(i18n): message extractor
...
fixes #8802
2016-07-29 13:40:58 -07:00
Victor Berchet
28e8b2faab
feat(ICU): extract ICU messages
2016-07-29 13:40:58 -07:00
Victor Berchet
3050ae155c
feat(ICU): enable ICU extraction even when when in is not used
...
BREAKING CHANGES:
"{" is used a a delimiter for ICU messages then it could not be used in text nodes.
"{" should be escaped as "{{ '{' }}"
Before:
<span>some { valid } text</span>
After:
<span>some { invalid } text<span> <!-- throw parse error -->
<span>some {{ '{' }} valid } text</span>
2016-07-12 16:57:39 -07:00
Victor Berchet
402fd934d0
refactor: code cleanup
2016-07-12 15:26:03 -07:00
Victor Berchet
60e6f91a53
refactor(HmtlLexer): cleanup
2016-07-12 15:26:03 -07:00
Victor Berchet
25e070dd65
fix(HtmlParser): correctly propagate the interpolation config across layers
2016-07-12 15:26:03 -07:00
ScottSWu
ae75e3640a
chore(lint): Added license headers to most TypeScript files
...
Relates to #9380
2016-06-23 09:47:54 -07:00
Victor Berchet
c9c81e1fbc
fix(XmbSerializer): add meaning attribute, escape attribute values
2016-06-21 11:52:11 -07:00
Victor Berchet
58b18d7fe7
fix(partition): fix partition when `<!-- i18n -->` is the only child
2016-06-21 11:52:11 -07:00
Victor Berchet
04a50f5832
feat(MessageExtractor): do not expand ICU messages before extraction
2016-06-21 11:52:11 -07:00
Victor Berchet
1b28cf71f5
feat(compiler): make interpolation symbols configurable (`@Component` config) ( #9367 )
...
closes #9158
2016-06-20 09:52:41 -07:00
Victor Berchet
721f53f0d6
feat(I18N Expander): do not add extra `<ul>` & `<li>` around ICU messages ( #9283 )
...
fixes #9072
2016-06-17 11:38:24 -07:00
Victor Berchet
fe01e2efb7
feat(I18nExtractor): Add file paths to error messages ( #9177 )
...
* feat(I18nExtractor): Add file paths to error messages
relates to #9071
* feat(i18n): allow i18n start comments without meaning
* refactor(i18n): cleanup
* test(HtmlParser): Add depth to expansion forms
2016-06-14 17:50:23 -07:00
Victor Berchet
5267115481
feat(I18N): generate error on unknown cases
...
fixes #9094
2016-06-10 08:45:59 -07:00
Victor Berchet
43148d8233
feat(HtmlLexer): add support for alphabetic cases
2016-06-10 08:45:59 -07:00