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

Runtime translations ignore i18nMissingTranslation settings #54672

Open
Nashuim opened this issue Mar 1, 2024 · 0 comments
Open

Runtime translations ignore i18nMissingTranslation settings #54672

Nashuim opened this issue Mar 1, 2024 · 0 comments
Labels
area: i18n feature Issue that requests a new feature
Milestone

Comments

@Nashuim
Copy link

Nashuim commented Mar 1, 2024

Which @angular/* package(s) are the source of the bug?

localize

Is this a regression?

No

Description

When translations are loaded using loadTranslations from @angular/localize the i18nMissingTranslation setting in the build options is ignored and a warning is logged for any missing translation or any error that occurs from calling $localize:

No translation found for "<MessageId>" ("<Message>").

Since the i18nMissingTranslation was created for build time compilation there should be a way to set this value for runtime translations as currently there's no way to ignore errors that happen in $localize .

Please provide the environment you discovered this bug in (run ng version)

Angular CLI: 17.2.1
Node: 18.18.2
Package Manager: npm 9.8.1
OS: win32 x64

Angular: 17.2.2
... animations, common, compiler, compiler-cli, core, forms
... localize, platform-browser, platform-browser-dynamic
... platform-server, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1702.1
@angular-devkit/build-angular   17.2.1
@angular-devkit/core            17.2.1
@angular-devkit/schematics      17.2.1
@angular/cli                    17.2.1
@angular/ssr                    17.2.1
@schematics/angular             17.2.1
rxjs                            7.8.1
typescript                      5.3.3
zone.js                         0.14.4
@ngbot ngbot bot added this to the needsTriage milestone Mar 3, 2024
@alan-agius4 alan-agius4 added the feature Issue that requests a new feature label Mar 4, 2024
@ngbot ngbot bot modified the milestones: needsTriage, Backlog Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: i18n feature Issue that requests a new feature
Projects
None yet
Development

No branches or pull requests

3 participants