Victor Berchet
1c24271daf
refactor(compiler): [i18n] integrate review feedback
2017-01-24 14:47:04 -08:00
Victor Berchet
76e4911e8b
fix(core): fix placeholders handling in i18n.
...
Prior to this commit, translations were built in the serializers. This
could not work as a single translation can be used for different source
messages having different placeholder content.
Serializers do not try to replace the placeholders any more.
Placeholders are replaced by the translation bundle and the source
message is given as parameter so that the content of the placeholders is
taken into account.
Also XMB ids are now independent of the expression which is replaced by
a placeholder in the extracted file.
fixes #12512
2016-11-14 12:55:48 -08:00
Victor Berchet
08c038ebd9
fix(core): xmb serializer uses decimal messaged IDs
...
fixes #12511
2016-11-14 12:55:48 -08:00
Victor Berchet
778e6ad3b4
refactor: cleanup ICU message syntax
2016-11-08 15:44:18 -08: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
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
74b57dfa7d
refactor(i18n): remove circular dep
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
e811a5d97f
refactor(i18n): misc updates
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
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