Skip to content

Commit

Permalink
fix(deps): update dependency react-i18next to v14 (#5273)
Browse files Browse the repository at this point in the history
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [react-i18next](https://togithub.com/i18next/react-i18next) |
[`^12.3.1` ->
`^14.1.0`](https://renovatebot.com/diffs/npm/react-i18next/12.3.1/14.1.0)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/react-i18next/14.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/react-i18next/14.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/react-i18next/12.3.1/14.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/react-i18next/12.3.1/14.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>i18next/react-i18next (react-i18next)</summary>

###
[`v14.1.0`](https://togithub.com/i18next/react-i18next/blob/HEAD/CHANGELOG.md#1410)

[Compare
Source](https://togithub.com/i18next/react-i18next/compare/v14.0.8...v14.1.0)

- types(`Trans`): add typechecking on context prop
[1732](https://togithub.com/i18next/react-i18next/pull/1732) (might
brake if using "internal" `Trans` or `TransProps`)

###
[`v14.0.8`](https://togithub.com/i18next/react-i18next/blob/HEAD/CHANGELOG.md#1408)

[Compare
Source](https://togithub.com/i18next/react-i18next/compare/v14.0.7...v14.0.8)

- fix: issue
[1728](https://togithub.com/i18next/react-i18next/issues/1728) when
useSuspense is false and default ns
[1731](https://togithub.com/i18next/react-i18next/pull/1731)

###
[`v14.0.7`](https://togithub.com/i18next/react-i18next/blob/HEAD/CHANGELOG.md#1407)

[Compare
Source](https://togithub.com/i18next/react-i18next/compare/v14.0.6...v14.0.7)

- try to get rid of internal interpolationOverride handling for Trans
component, fixes
[1729](https://togithub.com/i18next/react-i18next/issues/1729)

###
[`v14.0.6`](https://togithub.com/i18next/react-i18next/blob/HEAD/CHANGELOG.md#1406)

[Compare
Source](https://togithub.com/i18next/react-i18next/compare/v14.0.5...v14.0.6)

- align context handling of Trans component with t function, fixes
[1729](https://togithub.com/i18next/react-i18next/issues/1729)

###
[`v14.0.5`](https://togithub.com/i18next/react-i18next/blob/HEAD/CHANGELOG.md#1405)

[Compare
Source](https://togithub.com/i18next/react-i18next/compare/v14.0.4...v14.0.5)

- Fix [1691](https://togithub.com/i18next/react-i18next/issues/1691) for
strict mode, by preserving change language binding
[1720](https://togithub.com/i18next/react-i18next/pull/1720)

###
[`v14.0.4`](https://togithub.com/i18next/react-i18next/blob/HEAD/CHANGELOG.md#1404)

[Compare
Source](https://togithub.com/i18next/react-i18next/compare/v14.0.3...v14.0.4)

- fix interpolation of the count prop
[1719](https://togithub.com/i18next/react-i18next/issues/1719)

###
[`v14.0.3`](https://togithub.com/i18next/react-i18next/blob/HEAD/CHANGELOG.md#1403)

[Compare
Source](https://togithub.com/i18next/react-i18next/compare/v14.0.2...v14.0.3)

- revert changes done in v14.0.2 since it breaks normal language change
render updates

###
[`v14.0.2`](https://togithub.com/i18next/react-i18next/blob/HEAD/CHANGELOG.md#1402)

[Compare
Source](https://togithub.com/i18next/react-i18next/compare/v14.0.1...v14.0.2)

- Fix/bug [1691](https://togithub.com/i18next/react-i18next/issues/1691)
make returned t function identical upon second effect run in strict mode
[1716](https://togithub.com/i18next/react-i18next/pull/1716)

###
[`v14.0.1`](https://togithub.com/i18next/react-i18next/blob/HEAD/CHANGELOG.md#1401)

[Compare
Source](https://togithub.com/i18next/react-i18next/compare/v14.0.0...v14.0.1)

- types: fix typo in `CustomInstanceExtensions`
[1713](https://togithub.com/i18next/react-i18next/pull/1713)

###
[`v14.0.0`](https://togithub.com/i18next/react-i18next/blob/HEAD/CHANGELOG.md#1400)

[Compare
Source](https://togithub.com/i18next/react-i18next/compare/v13.5.0...v14.0.0)

- types: reportNamespaces is now optional, should fix
[1693](https://togithub.com/i18next/react-i18next/issues/1693)

###
[`v13.5.0`](https://togithub.com/i18next/react-i18next/blob/HEAD/CHANGELOG.md#1350)

[Compare
Source](https://togithub.com/i18next/react-i18next/compare/v13.4.1...v13.5.0)

- self-closing components in translation strings should not attempt to
replace the component's children
[1695](https://togithub.com/i18next/react-i18next/issues/1695)

###
[`v13.4.1`](https://togithub.com/i18next/react-i18next/blob/HEAD/CHANGELOG.md#1341)

[Compare
Source](https://togithub.com/i18next/react-i18next/compare/v13.4.0...v13.4.1)

-   types: use CustomInstanceExtenstions to extend reportNamespaces

###
[`v13.4.0`](https://togithub.com/i18next/react-i18next/blob/HEAD/CHANGELOG.md#1340)

[Compare
Source](https://togithub.com/i18next/react-i18next/compare/v13.3.2...v13.4.0)

-   fix: separate cjs and mjs typings

###
[`v13.3.2`](https://togithub.com/i18next/react-i18next/blob/HEAD/CHANGELOG.md#1332)

[Compare
Source](https://togithub.com/i18next/react-i18next/compare/v13.3.1...v13.3.2)

-   types: fix consider importing '\*.js'

###
[`v13.3.1`](https://togithub.com/i18next/react-i18next/blob/HEAD/CHANGELOG.md#1331)

[Compare
Source](https://togithub.com/i18next/react-i18next/compare/v13.3.0...v13.3.1)

-   optimize defaultVariables feature introduced in last release

###
[`v13.3.0`](https://togithub.com/i18next/react-i18next/blob/HEAD/CHANGELOG.md#1330)

[Compare
Source](https://togithub.com/i18next/react-i18next/compare/v13.2.2...v13.3.0)

- Respect defaultVariables in the interpolation options
[1685](https://togithub.com/i18next/react-i18next/issues/1685)

###
[`v13.2.2`](https://togithub.com/i18next/react-i18next/blob/HEAD/CHANGELOG.md#1322)

[Compare
Source](https://togithub.com/i18next/react-i18next/compare/v13.2.1...v13.2.2)

- Fix missing TransWithoutContext type
[1672](https://togithub.com/i18next/react-i18next/pull/1672)

###
[`v13.2.1`](https://togithub.com/i18next/react-i18next/blob/HEAD/CHANGELOG.md#1321)

[Compare
Source](https://togithub.com/i18next/react-i18next/compare/v13.2.0...v13.2.1)

- types: Allow iterable ReactI18NextChildren as children
[1669](https://togithub.com/i18next/react-i18next/pull/1669)

###
[`v13.2.0`](https://togithub.com/i18next/react-i18next/blob/HEAD/CHANGELOG.md#1320)

[Compare
Source](https://togithub.com/i18next/react-i18next/compare/v13.1.2...v13.2.0)

- Don't use defaults prop as default key
[1664](https://togithub.com/i18next/react-i18next/pull/1664)

###
[`v13.1.2`](https://togithub.com/i18next/react-i18next/blob/HEAD/CHANGELOG.md#1312)

[Compare
Source](https://togithub.com/i18next/react-i18next/compare/v13.1.1...v13.1.2)

-   postpone usage of newer ES syntax

###
[`v13.1.1`](https://togithub.com/i18next/react-i18next/blob/HEAD/CHANGELOG.md#1311)

[Compare
Source](https://togithub.com/i18next/react-i18next/compare/v13.1.0...v13.1.1)

- Render all children regardless of type when using i18nIsDynamicList
prop [1661](https://togithub.com/i18next/react-i18next/pull/1661)

###
[`v13.1.0`](https://togithub.com/i18next/react-i18next/blob/HEAD/CHANGELOG.md#1310)

[Compare
Source](https://togithub.com/i18next/react-i18next/compare/v13.0.3...v13.1.0)

- Fix non-list dynamic content in Trans component
[1660](https://togithub.com/i18next/react-i18next/pull/1660)

###
[`v13.0.3`](https://togithub.com/i18next/react-i18next/blob/HEAD/CHANGELOG.md#1303)

[Compare
Source](https://togithub.com/i18next/react-i18next/compare/v13.0.2...v13.0.3)

- fix unescape is not consistently called for all values
[1657](https://togithub.com/i18next/react-i18next/issues/1657)

###
[`v13.0.2`](https://togithub.com/i18next/react-i18next/blob/HEAD/CHANGELOG.md#1302)

[Compare
Source](https://togithub.com/i18next/react-i18next/compare/v13.0.1...v13.0.2)

- export icu.macro
[1652](https://togithub.com/i18next/react-i18next/issues/1652)

###
[`v13.0.1`](https://togithub.com/i18next/react-i18next/blob/HEAD/CHANGELOG.md#1301)

[Compare
Source](https://togithub.com/i18next/react-i18next/compare/v13.0.0...v13.0.1)

- types: Fix performance issue in Trans component
[1646](https://togithub.com/i18next/react-i18next/pull/1646)

###
[`v13.0.0`](https://togithub.com/i18next/react-i18next/blob/HEAD/CHANGELOG.md#1300)

[Compare
Source](https://togithub.com/i18next/react-i18next/compare/v12.3.1...v13.0.0)

- Update types to support t function redesign
[1615](https://togithub.com/i18next/react-i18next/pull/1615)
-   requires i18next >= v23.0.1

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "after 5pm,every weekend" in timezone
America/Los_Angeles, Automerge - "after 5pm,every weekend" in timezone
America/Los_Angeles.

🚦 **Automerge**: Enabled.

♻ **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.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/valora-inc/wallet).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMDEuNCIsInVwZGF0ZWRJblZlciI6IjM3LjMwMS40IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJucG0iLCJyZW5vdmF0ZSJdfQ==-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Kathy Luo <kathyluo18@gmail.com>
  • Loading branch information
renovate[bot] and kathaypacific committed Apr 19, 2024
1 parent 1c45f69 commit e9ee848
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 42 deletions.
1 change: 1 addition & 0 deletions locales/base/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@
"moreInfo": "More Info",
"savedConfirmation": "Yes, I have written down my Phrase.",
"backupQuizWordCount": "What's the <0>{{ordinal}}</0> word of your Recovery Phrase?",
"backupQuizWordCountV1_83": "What's the <0>{{wordNumber}}</0> word of your Recovery Phrase?",
"importBackupFailed": "Importing Wallet Failed",
"backupQuizFailed": "The Recovery Phrase you entered is incorrect. Please try again.",
"invalidBackupPhrase": "Recovery Phrase is not valid",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
"qrcode": "^1.5.3",
"react": "18.2.0",
"react-async-hook": "^4.0.0",
"react-i18next": "^12.3.1",
"react-i18next": "^14.1.0",
"react-native": "0.71.17",
"react-native-adjust": "^4.38.0",
"react-native-android-open-settings": "^1.3.0",
Expand Down
4 changes: 2 additions & 2 deletions src/backup/BackupQuiz.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,8 @@ export class BackupQuiz extends React.Component<Props, State> {
{!isQuizComplete && (
<Text style={styles.bodyText}>
<Trans
i18nKey={'backupQuizWordCount'}
tOptions={{ ordinal: t(`ordinals.${currentWordIndex}`) }}
i18nKey={'backupQuizWordCountV1_83'}
tOptions={{ wordNumber: t(`ordinals.${currentWordIndex}`) }}
>
<Text style={styles.bodyTextBold}>X</Text>
</Trans>
Expand Down
2 changes: 1 addition & 1 deletion src/backup/__snapshots__/BackupQuiz.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -871,7 +871,7 @@ exports[`BackupQuiz renders correctly 1`] = `
}
}
>
backupQuizWordCount, {"ordinal":"ordinals.1"}
backupQuizWordCountV1_83, {"wordNumber":"ordinals.1"}
<Text
style={
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ exports[`EscrowedPaymentReminderSummaryNotification renders correctly 1`] = `
}
testID="undefined/Details"
>
escrowedPaymentReminderSummaryDetails, {"context":"exactly2Items"}
escrowedPaymentReminderSummaryDetails
</Text>
<View
style={
Expand Down Expand Up @@ -526,7 +526,7 @@ exports[`EscrowedPaymentReminderSummaryNotification when more than 2 requests re
}
testID="undefined/Details"
>
escrowedPaymentReminderSummaryDetails, {"context":"exactly2Items"}
escrowedPaymentReminderSummaryDetails
</Text>
<View
style={
Expand Down
2 changes: 1 addition & 1 deletion src/notifications/SummaryNotification.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ export default function SummaryNotification<T>(props: Props<T>) {
details={
<Trans
i18nKey={detailsI18nKey}
tOptions={{ context: getContext(items.length) }}
components={items.slice(0, PREVIEW_SIZE).map(itemRenderer)}
context={getContext(items.length)}
/>
}
icon={icon}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ exports[`SummaryNotification renders correctly 1`] = `
}
testID="undefined/Details"
>
someI18nKey, {"context":"moreThan3Items"}
someI18nKey
</Text>
<View
style={
Expand Down
43 changes: 9 additions & 34 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1040,7 +1040,7 @@
resolved "https://registry.yarnpkg.com/@babel/regjsgen/-/regjsgen-0.8.0.tgz#f0ba69b075e1f05fb2825b7fad991e7adbb18310"
integrity sha512-x/rqGMdzj+fWZvCOYForTghzbtqPDZ5gPwaoNGHdgDfF2QA/XZbCBp4Moo5scrkAMPhB7z26XM/AaHuIJdgauA==

"@babel/runtime@^7.0.0", "@babel/runtime@^7.12.5", "@babel/runtime@^7.20.0", "@babel/runtime@^7.20.6", "@babel/runtime@^7.23.2", "@babel/runtime@^7.4.4", "@babel/runtime@^7.6.3", "@babel/runtime@^7.8.4":
"@babel/runtime@^7.0.0", "@babel/runtime@^7.12.5", "@babel/runtime@^7.20.0", "@babel/runtime@^7.23.2", "@babel/runtime@^7.23.9", "@babel/runtime@^7.4.4", "@babel/runtime@^7.6.3", "@babel/runtime@^7.8.4":
version "7.24.4"
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.24.4.tgz#de795accd698007a66ba44add6cc86542aff1edd"
integrity sha512-dkxf7+hn8mFBwKjs9bvBlArzLVxVbS8usaPUDd5p2a9JCL9tB8OaOVN1isD4+Xyk4ns89/xeOmbQvgdK7IIVdA==
Expand Down Expand Up @@ -15174,12 +15174,12 @@ react-freeze@^1.0.0:
resolved "https://registry.yarnpkg.com/react-freeze/-/react-freeze-1.0.0.tgz#b21c65fe1783743007c8c9a2952b1c8879a77354"
integrity sha512-yQaiOqDmoKqks56LN9MTgY06O0qQHgV4FUrikH357DydArSZHQhl0BJFqGKIZoTqi8JizF9Dxhuk1FIZD6qCaw==

react-i18next@^12.3.1:
version "12.3.1"
resolved "https://registry.yarnpkg.com/react-i18next/-/react-i18next-12.3.1.tgz#30134a41a2a71c61dc69c6383504929aed1c99e7"
integrity sha512-5v8E2XjZDFzK7K87eSwC7AJcAkcLt5xYZ4+yTPDAW1i7C93oOY1dnr4BaQM7un4Hm+GmghuiPvevWwlca5PwDA==
react-i18next@^14.1.0:
version "14.1.0"
resolved "https://registry.yarnpkg.com/react-i18next/-/react-i18next-14.1.0.tgz#44da74fbffd416f5d0c5307ef31735cf10cc91d9"
integrity sha512-3KwX6LHpbvGQ+sBEntjV4sYW3Zovjjl3fpoHbUwSgFHf0uRBcbeCBLR5al6ikncI5+W0EFb71QXZmfop+J6NrQ==
dependencies:
"@babel/runtime" "^7.20.6"
"@babel/runtime" "^7.23.9"
html-parse-stringify "^3.0.1"

"react-is@^16.12.0 || ^17.0.0 || ^18.0.0", react-is@^16.13.0, react-is@^16.13.1, react-is@^16.7.0, react-is@^16.8.4:
Expand Down Expand Up @@ -17101,7 +17101,7 @@ string-length@^4.0.1:
char-regex "^1.0.2"
strip-ansi "^6.0.0"

"string-width-cjs@npm:string-width@^4.2.0":
"string-width-cjs@npm:string-width@^4.2.0", string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3:
version "4.2.3"
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
Expand Down Expand Up @@ -17136,15 +17136,6 @@ string-width@^3.0.0, string-width@^3.1.0:
is-fullwidth-code-point "^2.0.0"
strip-ansi "^5.1.0"

string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3:
version "4.2.3"
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
dependencies:
emoji-regex "^8.0.0"
is-fullwidth-code-point "^3.0.0"
strip-ansi "^6.0.1"

string-width@^5.0.1, string-width@^5.1.2:
version "5.1.2"
resolved "https://registry.yarnpkg.com/string-width/-/string-width-5.1.2.tgz#14f8daec6d81e7221d2a357e668cab73bdbca794"
Expand Down Expand Up @@ -17216,14 +17207,7 @@ string_decoder@^1.0.0, string_decoder@^1.0.3, string_decoder@^1.1.1, string_deco
dependencies:
safe-buffer "~5.1.0"

"strip-ansi-cjs@npm:strip-ansi@^6.0.1":
version "6.0.1"
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
dependencies:
ansi-regex "^5.0.1"

strip-ansi@6.0.1, strip-ansi@^6.0.0, strip-ansi@^6.0.1:
"strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@6.0.1, strip-ansi@^6.0.0, strip-ansi@^6.0.1:
version "6.0.1"
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
Expand Down Expand Up @@ -19337,7 +19321,7 @@ wordwrap@0.0.2:
resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-0.0.2.tgz#b79669bb42ecb409f83d583cad52ca17eaa1643f"
integrity sha1-t5Zpu0LstAn4PVg8rVLKF+qhZD8=

"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0":
"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0:
version "7.0.0"
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
Expand Down Expand Up @@ -19372,15 +19356,6 @@ wrap-ansi@^6.2.0:
string-width "^4.1.0"
strip-ansi "^6.0.0"

wrap-ansi@^7.0.0:
version "7.0.0"
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
dependencies:
ansi-styles "^4.0.0"
string-width "^4.1.0"
strip-ansi "^6.0.0"

wrap-ansi@^8.1.0:
version "8.1.0"
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-8.1.0.tgz#56dc22368ee570face1b49819975d9b9a5ead214"
Expand Down

0 comments on commit e9ee848

Please sign in to comment.