💥 npm install fix for the RC pair (reported by @Julien-Marcou)
The http-loader's peer dependency on @ngx-translate/core was ">=18", which npm's semver doesn't match against pre-release versions. Installing both packages at 18.0.0-rc.0 failed with ETARGET. The peer dep is now ">=18.0.0-rc.1", so RC combinations install cleanly — no more overrides workaround needed.
✨ Function-form parameters for translate() (suggested by @Silas770)
TranslateService.translate() and the standalone translate() function now accept arrow functions alongside plain values and Signals. No more separate computed() wrapper for derived inputs:
// Before — needed an extra computed()
model = signal({ currentKey: 'HELLO' });
keyComputed = computed(() => this.model().currentKey);
greeting = translate(this.keyComputed);
// Now — pass the arrow directly
model = signal({ currentKey: 'HELLO' });
greeting = translate(() => this.model().currentKey);Signals still work — Signal<T> is structurally () => T, so existing signal-based call sites compile and run unchanged. The key parameter also now accepts string[] for multi-key lookup, matching get(), instant(), and stream().
Thanks
Thanks to @Julien-Marcou and @Silas770 for the feedback — both reports are addressed in this release.
Keep the feedback coming!