Update dependency i18next to v19 #19
Open
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:
15.0.9->19.5.4Release Notes
i18next/i18next
v19.5.4Compare Source
v19.5.3Compare Source
v19.5.2Compare Source
v19.5.1Compare Source
v19.5.0Compare Source
language detectors can return an array of languages and let i18next figure out best match
rename option whitelist to supportedLngs
rename option nonExpicitWhitelist to nonExplicitSupportedLngs
rename function languageUtils.isWhitelisted to languageUtils.isSupportedCode
This changes are made with temporal backwards compatiblity and will warn your for deprecated usage of old terms to give users and plugin providers some time to adapt their code base.
The temporal backwards compatiblity will be removed in a follow up major release.
Learn more about why this change was made here.
v19.4.5Compare Source
v19.4.4Compare Source
ReadCallback1439v19.4.3Compare Source
v19.4.2Compare Source
v19.4.1Compare Source
v19.4.0Compare Source
v19.3.4Compare Source
v19.3.3Compare Source
v19.3.2Compare Source
v19.3.1Compare Source
options.interpolation.nestingOptionsSeparatorv19.3.0Compare Source
options.interpolation.nestingOptionsSeparator: ','to specify that separatorv19.2.0Compare Source
v19.1.0Compare Source
v19.0.3Compare Source
v19.0.2Compare Source
v19.0.1Compare Source
v19.0.0Compare Source
export defaultfor esm-first approach 1352v18.0.1Compare Source
tfor better performancev18.0.0Compare Source
When calling
i18next.changeLanguage()bothi18next.languageandi18next.languageswill be set to the new language after callingloadResources-> means when accessingtfunction meanwhile you will get still the translations for the previous language instead of the fallback.When is this breaking? this does not break any current test - but if you depend on accessing i18next.language or i18next.dir during language change and expect the new language this will break your app.
Reasoning: In react-i18next we get in a not ready state for loaded translations while we would prefer just waiting for the new language ready and trigger a rerender then - also a triggered rerender outside of the bound events would end in Suspense...
How can I get the language i18next will be set to?
i18next.isLanguageChangingTois set to the language calledv17.3.1Compare Source
cleanCodeoption to TypeScript def 1344v17.3.0Compare Source
v17.2.0Compare Source
v17.1.0Compare Source
DX improvements:
Both are a clear sign you render your app / call t to early not waiting for the callbacks or Promise.resolve on i18next.init, i18next.loadNamespace or i18next.changeLanguage.
v17.0.18Compare Source
v17.0.17Compare Source
v17.0.16Compare Source
v17.0.15Compare Source
v17.0.14Compare Source
v17.0.13Compare Source
v17.0.12Compare Source
v17.0.11Compare Source
v17.0.10Compare Source
v17.0.9Compare Source
v17.0.8Compare Source
use(module)types 1296v17.0.7Compare Source
v17.0.6Compare Source
v17.0.5Compare Source
v17.0.4Compare Source
v17.0.3Compare Source
v17.0.2Compare Source
v17.0.1Compare Source
v17.0.0Compare Source
const i18next = require('i18next').default;import { changeLanguage } from 'i18next'; changeLanguage('de');you will have toimport i18next from 'i18next'; i18next.changeLanguage('de');v16.0.0Compare Source
v15.1.3Compare Source
v15.1.2Compare Source
v15.1.1Compare Source
v15.1.0Compare Source
v15.0.10Compare Source
Renovate configuration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻️ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by WhiteSource Renovate. View repository job log here.