Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore:update next 12 #37

Merged
merged 1 commit into from
Nov 7, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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