-
Notifications
You must be signed in to change notification settings - Fork 24.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(localize): trim extracted
equiv-text
values (#41180)
The ViewEngine message extraction would trim the values of the `equiv-text` attributes. This commit aligns the Ivy extraction of these attributes. Fixes #41176 PR Close #41180
- Loading branch information
1 parent
78e6713
commit ed6c09a
Showing
3 changed files
with
8 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 5 additions & 1 deletion
6
packages/localize/src/tools/test/extract/integration/test_files/src/a.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
declare const $localize: any; | ||
const file = 'a.ts'; | ||
export const messageA = $localize`Message in ${file}:a-file:!`; | ||
export const messageA = $localize`Message in ${ | ||
file | ||
}:a-file:!`; |