@ngx-translate/core@18.1.0-rc.3 and @ngx-translate/http-loader@18.1.0-rc.3 are available on npm. This is a prerelease for testing.
Changes since rc.2
- Ordered fallback languages: configure
fallbackLangs, update the chain withsetFallbackLangs(), and read it throughgetFallbackLangs()or thefallbackLangssignal.fallbackLangstakes precedence over the singularfallbackLangoption, including when the array is empty. (#1685) - Configurable retry policies:
retryaccepts aTranslateRetryConfigwith a retry count, a fixed or calculated delay, and ashouldRetrypredicate. Policy class methods retain their instance context. Numeric retry settings remain supported; HTTP failures requirefailOnError: trueon the loader. (#1684) - HTTP loader error reporting:
onLoadErrorreceives the language, resource, request URL (when available), and original error for each failed resource attempt. It works with both failure modes;failOnErrorstill controls whether the error propagates. (#1679) - Optional resource flattening:
flatten: trueconverts nested translation objects to dotted keys before merging, so later resources override equivalent nested or flat keys. Arrays and null values stay intact, and empty HTTP responses are handled. (#1678) - Keep deleted languages deleted: stale in-flight loads no longer restore translations after
deleteLanguage(). (#1683)
npm install @ngx-translate/core@18.1.0-rc.3 @ngx-translate/http-loader@18.1.0-rc.3For earlier changes in this series, see rc.1 and rc.2.
Full changelog: v18.1.0-rc.2...v18.1.0-rc.3