chore: unify version (#1123)
This commit is contained in:
@@ -26,12 +26,14 @@
|
||||
"url": "git+https://github.com/toeverything/AFFiNE.git"
|
||||
},
|
||||
"dependencies": {
|
||||
"i18next": "^21.9.1",
|
||||
"prettier": "^2.7.1",
|
||||
"react-i18next": "^11.18.4"
|
||||
"react": "^18.2.0",
|
||||
"i18next": "^22.4.10",
|
||||
"react-i18next": "^12.1.5"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^18.14.0",
|
||||
"@types/prettier": "^2.7.2",
|
||||
"prettier": "^2.8.4",
|
||||
"ts-node": "^10.9.1",
|
||||
"typescript": "^4.9.5"
|
||||
}
|
||||
|
||||
@@ -4,6 +4,13 @@ import { initReactI18next, Trans, useTranslation } from 'react-i18next';
|
||||
import { LOCALES } from './resources';
|
||||
import type en_US from './resources/en.json';
|
||||
|
||||
declare module 'i18next' {
|
||||
// Refs: https://www.i18next.com/overview/typescript#argument-of-type-defaulttfuncreturn-is-not-assignable-to-parameter-of-type-xyz
|
||||
interface CustomTypeOptions {
|
||||
returnNull: false;
|
||||
}
|
||||
}
|
||||
|
||||
// const localStorage = {
|
||||
// getItem() {
|
||||
// return undefined;
|
||||
|
||||
Reference in New Issue
Block a user