Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: i18next/react-i18next
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v13.4.0
Choose a base ref
...
head repository: i18next/react-i18next
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v13.4.1
Choose a head ref
  • 3 commits
  • 5 files changed
  • 1 contributor

Commits on Nov 13, 2023

  1. update deps of ts example

    adrai committed Nov 13, 2023
    Copy the full SHA
    e874255 View commit details
  2. Copy the full SHA
    ef68a73 View commit details
  3. 13.4.1

    adrai committed Nov 13, 2023
    Copy the full SHA
    85aac9f View commit details
Showing with 25 additions and 18 deletions.
  1. +4 −0 CHANGELOG.md
  2. +6 −6 example/react-typescript/simple/package.json
  3. +4 −1 index.d.ts
  4. +9 −9 package-lock.json
  5. +2 −2 package.json
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### 13.4.1

- types: use CustomInstanceExtenstions to extend reportNamespaces

### 13.4.0

- fix: separate cjs and mjs typings
12 changes: 6 additions & 6 deletions example/react-typescript/simple/package.json
Original file line number Diff line number Diff line change
@@ -3,17 +3,17 @@
"version": "1.0.0",
"private": true,
"dependencies": {
"i18next": "^23.5.0",
"i18next": "^23.7.6",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-i18next": "^13.2.2"
"react-i18next": "^13.4.0"
},
"devDependencies": {
"@types/react": "^18.2.21",
"@types/react-dom": "^18.2.7",
"i18next-resources-for-ts": "1.3.2",
"@types/react": "^18.2.37",
"@types/react-dom": "^18.2.15",
"i18next-resources-for-ts": "1.4.0",
"react-scripts": "5.0.1",
"typescript": "^5.2.2"
"typescript": "^4.9.3"
},
"scripts": {
"start": "react-scripts start",
5 changes: 4 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
@@ -34,7 +34,10 @@ export interface ReportNamespaces {
}

declare module 'i18next' {
interface i18n {
// interface i18n {
// reportNamespaces: ReportNamespaces;
// }
interface CustomInstanceExtenstions {
reportNamespaces: ReportNamespaces;
}
}
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-i18next",
"version": "13.4.0",
"version": "13.4.1",
"description": "Internationalization for react done right. Using the i18next i18n ecosystem.",
"main": "dist/commonjs/index.js",
"types": "./index.d.mts",
@@ -106,7 +106,7 @@
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-testing-library": "^5.11.0",
"husky": "^8.0.3",
"i18next": "^23.7.2",
"i18next": "^23.7.6",
"jest": "^24.8.0",
"jest-cli": "^24.8.4",
"lint-staged": "^8.1.3",