fix(compiler-cli): compute source-mappings for localized strings (#38645)
Previously, localized strings had very limited or incorrect source-mapping information available. Now the i18n AST nodes and related output AST nodes include source-span information about message-parts and placeholders - including closing tag placeholders. This information is then used when generating the final localized string ASTs to ensure that the correct source-mapping is rendered. See #38588 (comment) PR Close #38645
This commit is contained in:

committed by
atscott

parent
7a6a061a9e
commit
7e0b3fd953
@ -41,7 +41,7 @@ import {_extractMessages} from '../i18n_parser_spec';
|
||||
new i18n.IcuPlaceholder(null!, '', null!),
|
||||
],
|
||||
null!);
|
||||
const tag = new i18n.TagPlaceholder('', {}, '', '', [container], false, null!, null);
|
||||
const tag = new i18n.TagPlaceholder('', {}, '', '', [container], false, null!, null, null);
|
||||
const icu = new i18n.Icu('', '', {tag}, null!);
|
||||
|
||||
icu.visit(visitor);
|
||||
|
Reference in New Issue
Block a user