Skip to content

Commit

Permalink
chore:update next 12
Browse files Browse the repository at this point in the history
  • Loading branch information
JCQuintas committed Nov 7, 2021
1 parent 1805f07 commit b44d2dc
Show file tree
Hide file tree
Showing 19 changed files with 1,880 additions and 2,640 deletions.
4 changes: 2 additions & 2 deletions data/example-template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
"start": "next start"
},
"dependencies": {
"next": "11.1.2",
"next": "12.0.3",
"ni18n": "link:../../"
},
"devDependencies": {
"eslint-config-next": "^11.1.2",
"eslint-config-next": "^12.0.3",
"prettier": "^2.4.1"
}
}
5 changes: 4 additions & 1 deletion data/example-template/pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import '../public/styles.css'
import { appWithI18Next } from 'ni18n'
import { ni18nConfig } from '../ni18n.config'
import type { AppProps } from 'next/app'

const MyApp = ({ Component, pageProps }) => <Component {...pageProps} />
const MyApp = ({ Component, pageProps }: AppProps) => (
<Component {...pageProps} />
)

export default appWithI18Next(MyApp, ni18nConfig)
5 changes: 3 additions & 2 deletions data/example-template/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,16 @@
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": false,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve"
"jsx": "preserve",
"incremental": true
},
"include": [
"next-env.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions examples/cached-translations/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
"start": "next start"
},
"dependencies": {
"next": "11.1.2",
"next": "12.0.3",
"ni18n": "link:../../",
"i18next-chained-backend": "^3.0.2",
"i18next-http-backend": "^1.2.6",
"i18next-localstorage-backend": "^3.1.3"
},
"devDependencies": {
"eslint-config-next": "^11.1.2",
"eslint-config-next": "^12.0.3",
"prettier": "^2.4.1"
}
}
462 changes: 149 additions & 313 deletions examples/cached-translations/yarn.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions examples/custom-backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
"start": "concurrently -n B,F -c green,yellow \"node server/index.js\" \"next start\""
},
"dependencies": {
"next": "11.1.2",
"next": "12.0.3",
"ni18n": "link:../../",
"i18next-http-backend": "^1.2.6"
},
"devDependencies": {
"eslint-config-next": "^11.1.2",
"eslint-config-next": "^12.0.3",
"prettier": "^2.4.1",
"concurrently": "^6.2.0"
}
Expand Down
457 changes: 150 additions & 307 deletions examples/custom-backend/yarn.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions examples/custom-language-selection/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
"start": "next start"
},
"dependencies": {
"next": "11.1.2",
"next": "12.0.3",
"ni18n": "link:../../"
},
"devDependencies": {
"eslint-config-next": "^11.1.2",
"eslint-config-next": "^12.0.3",
"prettier": "^2.4.1"
}
}
462 changes: 149 additions & 313 deletions examples/custom-language-selection/yarn.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions examples/custom-location/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
"start": "next start"
},
"dependencies": {
"next": "11.1.2",
"next": "12.0.3",
"ni18n": "link:../../"
},
"devDependencies": {
"eslint-config-next": "^11.1.2",
"eslint-config-next": "^12.0.3",
"prettier": "^2.4.1"
}
}
Loading

0 comments on commit b44d2dc

Please sign in to comment.