Update dependency @ngx-translate/core to v18#1803
Open
renovate[bot] wants to merge 1 commit into
Open
Conversation
6dbe003 to
24e2b39
Compare
24e2b39 to
d1c2ce7
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^17.0.0→^18.0.0Release Notes
ngx-translate/core (@ngx-translate/core)
v18.0.0Compare Source
@ngx-translate/core@18.0.0and@ngx-translate/http-loader@18.0.0are now stable on npm (latest).v18 is the major API-cleanup release: standalone providers everywhere, signal-based internals, the
default→fallbackrename finalized, and the deprecated surface removed. It also resolves three long-standing semantic gotchas and baselines the workspace on Angular 22 / TypeScript 6.0.Highlights
TranslateModuleis gone — useprovideTranslateService()/provideChildTranslateService()(works in standalone and NgModule apps).*translateBlock="let t"structural directive for cleaner template translations.isLoading: Signal<boolean>— true while anyuse()load is in flight; read it for language-switching spinners.Breaking changes — required edits
TranslateModuleremoved. ReplaceTranslateModule.forRoot({...})/forChild({...})withprovideTranslateService({...})/provideChildTranslateService({...}). The pipe, directive, and service are standalone.Deprecated
default*symbols removed — rename:defaultLangfallbackLangsetDefaultLang()setFallbackLang()getDefaultLang()getFallbackLang()onDefaultLangChangeonFallbackLangChangeDefaultLangChangeEventFallbackLangChangeEventlangsgetLangs()setValue()(util)insertValue()Also removed:
useDefaultLanganddefaultLanguageconfig fields (along withTranslateModule).Deprecated (still works, warns once): using element text content as a key (
<span translate>Hello</span>). Use[translate]="'KEY'", thetranslatepipe, or*translateBlock. It will be removed next major.Potentially breaking — low impact (behavior changes)
use()no longer mutates state. On loader failure,currentLang()/lastUseLanguagestay at the prior value instead of switching to the failed language. UseisLoading()or the returned Observable's error channel to drive switching UI.translationChange$events, nor borrow keys from outer scopes. Isolation now means own events + own lookups + own language state. If you wanted shared translations with subtree-scoped state, useprovideChildTranslateService({ extend: true }).instant()"unloaded language" warning is deduplicated per isolated subtree (was once per service instance).ITranslateServicegainsisLoading: Signal<boolean>. If you mock it viaimplements/extends ITranslateService, addisLoading = signal(false).asReadonly(). See the "Mocking TranslateService" recipe in the README.Migration
Full step-by-step guide: https://ngx-translate.org → Getting Started → Migration Guide.
Angular compatibility: 18, 19, 20, 21, 22 · TypeScript: 6.0 · RxJS: ≥7
Configuration
📅 Schedule: (in timezone Europe/Zurich)
* 1-5 * * 1-5)* 5-7 * * 1-5)🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.