Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(@angular-devkit/build-angular): allow localization with development server #16053

Merged
merged 2 commits into from
Nov 8, 2019

Conversation

clydin
Copy link
Member

@clydin clydin commented Nov 4, 2019

No description provided.

@clydin clydin added target: patch This PR is targeted for the next patch release and removed cla: yes labels Nov 4, 2019
@angular angular deleted a comment from googlebot Nov 4, 2019
@clydin clydin force-pushed the ng-serve-i18n branch 7 times, most recently from 6a93776 to 41e52ba Compare November 6, 2019 17:20
@clydin clydin marked this pull request as ready for review November 6, 2019 17:25
@clydin clydin requested a review from filipesilva November 6, 2019 19:01
tests/legacy-cli/e2e/tests/i18n/legacy.ts Outdated Show resolved Hide resolved
tests/legacy-cli/e2e/tests/i18n/legacy.ts Outdated Show resolved Hide resolved
tests/legacy-cli/e2e/tests/i18n/legacy.ts Show resolved Hide resolved
@@ -40,7 +40,7 @@ function emittedFilesToInlineOptions(
es5,
outputPath,
missingTranslation,
setLocale: emittedFile.name === 'main',
setLocale: emittedFile.name === 'main' || emittedFile.name === 'vendor',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible for the locale to need to be set in lazy chunks?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From the point of view of Angular, we only need to set it in main.js so that we can pick it up in Angular services and pipes. And I guess, since it is global, that once it is set it will automatically be available to all lazy loaded chunks.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then what's the situation where it needs to be set in vendor?

@mgechev mgechev merged commit 862b28f into angular:master Nov 8, 2019
mgechev pushed a commit that referenced this pull request Nov 8, 2019
…nt server (#16053)

* fix(@angular-devkit/build-angular): allow localization with development server

* test: ensure i18n application E2E tests are executed
@clydin clydin deleted the ng-serve-i18n branch November 8, 2019 16:02
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Dec 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants