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.4
Release Notes
i18next/i18next
v19.5.4
Compare Source
v19.5.3
Compare Source
v19.5.2
Compare Source
v19.5.1
Compare Source
v19.5.0
Compare 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.5
Compare Source
v19.4.4
Compare Source
ReadCallback
1439v19.4.3
Compare Source
v19.4.2
Compare Source
v19.4.1
Compare Source
v19.4.0
Compare Source
v19.3.4
Compare Source
v19.3.3
Compare Source
v19.3.2
Compare Source
v19.3.1
Compare Source
options.interpolation.nestingOptionsSeparator
v19.3.0
Compare Source
options.interpolation.nestingOptionsSeparator: ','
to specify that separatorv19.2.0
Compare Source
v19.1.0
Compare Source
v19.0.3
Compare Source
v19.0.2
Compare Source
v19.0.1
Compare Source
v19.0.0
Compare Source
export default
for esm-first approach 1352v18.0.1
Compare Source
t
for better performancev18.0.0
Compare Source
When calling
i18next.changeLanguage()
bothi18next.language
andi18next.languages
will be set to the new language after callingloadResources
-> means when accessingt
function 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.isLanguageChangingTo
is set to the language calledv17.3.1
Compare Source
cleanCode
option to TypeScript def 1344v17.3.0
Compare Source
v17.2.0
Compare Source
v17.1.0
Compare 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.18
Compare Source
v17.0.17
Compare Source
v17.0.16
Compare Source
v17.0.15
Compare Source
v17.0.14
Compare Source
v17.0.13
Compare Source
v17.0.12
Compare Source
v17.0.11
Compare Source
v17.0.10
Compare Source
v17.0.9
Compare Source
v17.0.8
Compare Source
use(module)
types 1296v17.0.7
Compare Source
v17.0.6
Compare Source
v17.0.5
Compare Source
v17.0.4
Compare Source
v17.0.3
Compare Source
v17.0.2
Compare Source
v17.0.1
Compare Source
v17.0.0
Compare Source
const i18next = require('i18next').default;
import { changeLanguage } from 'i18next'; changeLanguage('de');
you will have toimport i18next from 'i18next'; i18next.changeLanguage('de');
v16.0.0
Compare Source
v15.1.3
Compare Source
v15.1.2
Compare Source
v15.1.1
Compare Source
v15.1.0
Compare Source
v15.0.10
Compare 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.