Commit a42e045
fix(@angular-devkit/build-angular): respect i18nDuplicateTranslation option when duplicates exist
Running the extract-i18n command will always log duplicate i18n message IDs as warnings, regardless of the value of the i18nDuplicateTranslation option. With this fix, command will log duplication errors and exit with code 1
Fixes #23635
(cherry picked from commit d16e358)1 parent 36c2a82 commit a42e045Copy full SHA for a42e045
File tree
Expand file treeCollapse file tree
10 files changed
+76
-12
lines changedOpen diff view settings
Filter options
- goldens/public-api
- angular_devkit/build_angular
- angular/build
- packages
- angular_devkit/build_angular/src/builders/extract-i18n
- angular/build/src
- builders/extract-i18n
- utils
Expand file treeCollapse file tree
10 files changed
+76
-12
lines changedOpen diff view settings
Collapse file
goldens/public-api/angular/build/index.api.md
Copy file name to clipboardExpand all lines: goldens/public-api/angular/build/index.api.md+1Lines changed: 1 addition & 0 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
158 | 158 | |
159 | 159 | |
160 | 160 | |
| 161 | + |
161 | 162 | |
162 | 163 | |
163 | 164 | |
|
Collapse file
goldens/public-api/angular_devkit/build_angular/index.api.md
Copy file name to clipboardExpand all lines: goldens/public-api/angular_devkit/build_angular/index.api.md+1Lines changed: 1 addition & 0 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
191 | 191 | |
192 | 192 | |
193 | 193 | |
| 194 | + |
194 | 195 | |
195 | 196 | |
196 | 197 | |
|
Collapse file
packages/angular/build/src/builders/extract-i18n/builder.ts
Copy file name to clipboardExpand all lines: packages/angular/build/src/builders/extract-i18n/builder.ts+10-3Lines changed: 10 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
90 | 90 | |
91 | 91 | |
92 | 92 | |
| 93 | + |
93 | 94 | |
94 | 95 | |
95 | 96 | |
96 | 97 | |
97 | | - |
| 98 | + |
98 | 99 | |
99 | 100 | |
100 | 101 | |
101 | | - |
102 | | - |
| 102 | + |
| 103 | + |
| 104 | + |
| 105 | + |
| 106 | + |
| 107 | + |
| 108 | + |
| 109 | + |
103 | 110 | |
104 | 111 | |
105 | 112 | |
|
Collapse file
packages/angular/build/src/builders/extract-i18n/options.ts
Copy file name to clipboardExpand all lines: packages/angular/build/src/builders/extract-i18n/options.ts+8-2Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
6 | 6 | |
7 | 7 | |
8 | 8 | |
| 9 | + |
9 | 10 | |
10 | 11 | |
11 | 12 | |
12 | | - |
| 13 | + |
13 | 14 | |
14 | 15 | |
15 | 16 | |
| ||
36 | 37 | |
37 | 38 | |
38 | 39 | |
39 | | - |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | + |
| 45 | + |
40 | 46 | |
41 | 47 | |
42 | 48 | |
|
Collapse file
packages/angular/build/src/builders/extract-i18n/schema.json
Copy file name to clipboardExpand all lines: packages/angular/build/src/builders/extract-i18n/schema.json+5Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
27 | 27 | |
28 | 28 | |
29 | 29 | |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | + |
30 | 35 | |
31 | 36 | |
32 | 37 | |
|
Collapse file
packages/angular/build/src/utils/i18n-options.ts
Copy file name to clipboardExpand all lines: packages/angular/build/src/utils/i18n-options.ts-2Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
6 | 6 | |
7 | 7 | |
8 | 8 | |
9 | | - |
10 | 9 | |
11 | 10 | |
12 | 11 | |
| ||
29 | 28 | |
30 | 29 | |
31 | 30 | |
32 | | - |
33 | 31 | |
34 | 32 | |
35 | 33 | |
|
Collapse file
packages/angular_devkit/build_angular/src/builders/extract-i18n/builder.ts
Copy file name to clipboardExpand all lines: packages/angular_devkit/build_angular/src/builders/extract-i18n/builder.ts+10-3Lines changed: 10 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
110 | 110 | |
111 | 111 | |
112 | 112 | |
| 113 | + |
113 | 114 | |
114 | 115 | |
115 | 116 | |
116 | 117 | |
117 | | - |
| 118 | + |
118 | 119 | |
119 | 120 | |
120 | 121 | |
121 | | - |
122 | | - |
| 122 | + |
| 123 | + |
| 124 | + |
| 125 | + |
| 126 | + |
| 127 | + |
| 128 | + |
| 129 | + |
123 | 130 | |
124 | 131 | |
125 | 132 | |
|
Collapse file
packages/angular_devkit/build_angular/src/builders/extract-i18n/options.ts
Copy file name to clipboardExpand all lines: packages/angular_devkit/build_angular/src/builders/extract-i18n/options.ts+8-2Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
6 | 6 | |
7 | 7 | |
8 | 8 | |
9 | | - |
| 9 | + |
| 10 | + |
10 | 11 | |
11 | 12 | |
12 | 13 | |
| ||
36 | 37 | |
37 | 38 | |
38 | 39 | |
39 | | - |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | + |
| 45 | + |
40 | 46 | |
41 | 47 | |
42 | 48 | |
|
Collapse file
packages/angular_devkit/build_angular/src/builders/extract-i18n/schema.json
Copy file name to clipboardExpand all lines: packages/angular_devkit/build_angular/src/builders/extract-i18n/schema.json+5Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
27 | 27 | |
28 | 28 | |
29 | 29 | |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | + |
30 | 35 | |
31 | 36 | |
32 | 37 | |
|
Collapse file
packages/angular_devkit/build_angular/src/builders/extract-i18n/works_spec.ts
Copy file name to clipboardExpand all lines: packages/angular_devkit/build_angular/src/builders/extract-i18n/works_spec.ts+28Lines changed: 28 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
147 | 147 | |
148 | 148 | |
149 | 149 | |
| 150 | + |
| 151 | + |
| 152 | + |
| 153 | + |
| 154 | + |
| 155 | + |
| 156 | + |
| 157 | + |
| 158 | + |
| 159 | + |
| 160 | + |
| 161 | + |
| 162 | + |
| 163 | + |
| 164 | + |
| 165 | + |
| 166 | + |
| 167 | + |
| 168 | + |
| 169 | + |
| 170 | + |
| 171 | + |
| 172 | + |
| 173 | + |
| 174 | + |
| 175 | + |
| 176 | + |
| 177 | + |
150 | 178 | |
151 | 179 | |
152 | 180 | |
|
0 commit comments