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/build): only issue invalid i18n config error for duplicate subPaths with inlined locales #29422

Merged
merged 1 commit into from
Jan 21, 2025

Conversation

alan-agius4
Copy link
Collaborator

@alan-agius4 alan-agius4 commented Jan 20, 2025

The i18n configuration validation was incorrectly flagging errors for identical subPaths when both locales were not inlined within the same build. This was due to the validation not properly accounting for the inlining of locales.

This commit fixes this issue by ensuring that the validation only checks for duplicate subPaths when the locales are inlined.

Closes #29398

@alan-agius4 alan-agius4 requested a review from clydin January 20, 2025 15:01
@alan-agius4 alan-agius4 added action: review The PR is still awaiting reviews from at least one requested reviewer target: patch This PR is targeted for the next patch release labels Jan 20, 2025
@zip-fa

This comment was marked as resolved.

…te `subPaths` with inlined locales

The i18n configuration validation was incorrectly flagging errors for identical `subPaths` when both locales were not inlined within the same build. This was due to the validation not properly accounting for the inlining of locales.

This commit fixes this issue by ensuring that the validation only checks for duplicate `subPaths` when the locales are inlined.

Closes angular#29398
@alan-agius4 alan-agius4 force-pushed the i18n-subpath-validation branch from 9687e11 to 399eb32 Compare January 21, 2025 07:23
@alan-agius4 alan-agius4 added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Jan 21, 2025
@alan-agius4 alan-agius4 merged commit 334ec0f into angular:main Jan 21, 2025
31 checks passed
@alan-agius4 alan-agius4 deleted the i18n-subpath-validation branch January 21, 2025 20:08
@alan-agius4
Copy link
Collaborator Author

The changes were merged into the following branches: main, 19.1.x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action: merge The PR is ready for merge by the caretaker area: @angular/build target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Invalid i18n configuration: Locales 'ru' and 'en' cannot have the same subPath: ''.
3 participants