chore: unify version (#1123)

This commit is contained in:
Himself65
2023-02-19 02:40:39 -06:00
committed by GitHub
parent aa1de57d96
commit ae4105e961
26 changed files with 1286 additions and 1694 deletions

View File

@@ -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"
}

View File

@@ -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;