i18n cleanup 5 #39233
Closed
i18n cleanup 5 #39233
Conversation
alfaproject
reviewed
Oct 13, 2020
alfaproject
reviewed
Oct 13, 2020
alfaproject
reviewed
Oct 13, 2020
alfaproject
reviewed
Oct 13, 2020
ceb2013
to
8bea557
AndrewKushnir
reviewed
Oct 14, 2020
AndrewKushnir
reviewed
Oct 14, 2020
packages/core/src/render3/instructions/i18n_icu_container_visitor.ts
Outdated
Show resolved
Hide resolved
petebacondarwin
reviewed
Oct 14, 2020
Typo in refactor(core): Use ~x instead of -x which can result in -0
paste -> past
petebacondarwin
reviewed
Oct 14, 2020
petebacondarwin
reviewed
Oct 14, 2020
petebacondarwin
reviewed
Oct 14, 2020
0824016
to
70a15ef
AndrewKushnir
approved these changes
Oct 15, 2020
LGTM, thanks Misko!
14 tasks
petebacondarwin
approved these changes
Oct 16, 2020
Moved code from `interfaces/i18n.ts` which was causing circular dependencies
alxhub
added a commit
that referenced
this issue
Oct 22, 2020
`TemplateFixture` used to have positional parameters and many tests got hard to read as number of parameters reach 10+ with many of them `null`. This refactoring changes `TemplateFixture` to take named parameters which improves usability and readability in tests. PR Close #39233
alxhub
added a commit
that referenced
this issue
Oct 22, 2020
`i18n_spec.ts` file was incorrectly in the `render3` folder rather than `render3/i18n` PR Close #39233
alxhub
added a commit
that referenced
this issue
Oct 22, 2020
…TView` debug (#39233) When looking at `TView` debug template only Element nodes were displayed as `TNode.Element` was used for both `RElement` and `RText`. Additionally no text was stored in `TNode.value`. The result was that the whole template could not be reconstructed. This refactoring creates `TNodeType.Text` and store the text value in `TNode.value`. The refactoring also changes `TNodeType` into flag-like structure make it more efficient to check many different types at once. PR Close #39233
alxhub
added a commit
that referenced
this issue
Oct 22, 2020
`COMMENT_MARKER` is a generic name which does not make it obvious that it is used for ICU use case. `ICU_MARKER` is more explicit as it is used exclusively with ICUs. PR Close #39233
alxhub
added a commit
that referenced
this issue
Oct 22, 2020
- Made `*OpCodes` array branded for safer type checking. - Simplify `I18NRemoveOpCodes` encoding. - Broke out `IcuCreateOpCodes` from `I18nMutableOpCodes`. PR Close #39233
alxhub
added a commit
that referenced
this issue
Oct 22, 2020
Moved code from `interfaces/i18n.ts` which was causing circular dependencies PR Close #39233
alxhub
added a commit
that referenced
this issue
Oct 22, 2020
`i18n_spec.ts` file was incorrectly in the `render3` folder rather than `render3/i18n` PR Close #39233
alxhub
added a commit
that referenced
this issue
Oct 22, 2020
…TView` debug (#39233) When looking at `TView` debug template only Element nodes were displayed as `TNode.Element` was used for both `RElement` and `RText`. Additionally no text was stored in `TNode.value`. The result was that the whole template could not be reconstructed. This refactoring creates `TNodeType.Text` and store the text value in `TNode.value`. The refactoring also changes `TNodeType` into flag-like structure make it more efficient to check many different types at once. PR Close #39233
alxhub
added a commit
that referenced
this issue
Oct 22, 2020
`COMMENT_MARKER` is a generic name which does not make it obvious that it is used for ICU use case. `ICU_MARKER` is more explicit as it is used exclusively with ICUs. PR Close #39233
alxhub
added a commit
that referenced
this issue
Oct 22, 2020
- Made `*OpCodes` array branded for safer type checking. - Simplify `I18NRemoveOpCodes` encoding. - Broke out `IcuCreateOpCodes` from `I18nMutableOpCodes`. PR Close #39233
alxhub
added a commit
that referenced
this issue
Oct 22, 2020
Moved code from `interfaces/i18n.ts` which was causing circular dependencies PR Close #39233
3 tasks
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.


This PR builds upon #39003. Only review the last
refactor(core):changes.PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: N/A
What is the new behavior?
Does this PR introduce a breaking change?
Other information
The text was updated successfully, but these errors were encountered: