Skip to content

Commit ef77485

Browse files
clydinvikerman
authored andcommitted
fix(@angular-devkit/build-angular): make i18n translation files relative to workspace
All other paths within the workspace file are relative to the workspace root.
1 parent 610cda5 commit ef77485

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/angular_devkit/build_angular/src/utils/i18n-options.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ export async function configureI18nBuild<T extends BrowserBuilderSchema | Server
166166
const usedFormats = new Set<string>();
167167
for (const [locale, desc] of Object.entries(i18n.locales)) {
168168
if (i18n.inlineLocales.has(locale) && desc.file) {
169-
const result = loader(path.join(projectRoot, desc.file));
169+
const result = loader(path.join(context.workspaceRoot, desc.file));
170170

171171
for (const diagnostics of result.diagnostics.messages) {
172172
if (diagnostics.type === 'error') {

0 commit comments

Comments
 (0)