mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-22 20:41:50 +08:00
feat(server): client version check (#9205)
Co-authored-by: forehalo <forehalo@gmail.com>
This commit is contained in:
@@ -7503,6 +7503,13 @@ export function useAFFiNEI18N(): {
|
||||
["error.WORKSPACE_MEMBERS_EXCEED_LIMIT_TO_DOWNGRADE"](options: {
|
||||
readonly limit: string;
|
||||
}): string;
|
||||
/**
|
||||
* `Unsupported client with version [{{clientVersion}}], required version is [{{requiredVersion}}].`
|
||||
*/
|
||||
["error.UNSUPPORTED_CLIENT_VERSION"](options: Readonly<{
|
||||
clientVersion: string;
|
||||
requiredVersion: string;
|
||||
}>): string;
|
||||
} { const { t } = useTranslation(); return useMemo(() => createProxy((key) => t.bind(null, key)), [t]); }
|
||||
function createComponent(i18nKey: string) {
|
||||
return (props) => createElement(Trans, { i18nKey, shouldUnescape: true, ...props });
|
||||
|
||||
@@ -1843,5 +1843,6 @@
|
||||
"error.LICENSE_NOT_FOUND": "License not found.",
|
||||
"error.INVALID_LICENSE_TO_ACTIVATE": "Invalid license to activate.",
|
||||
"error.INVALID_LICENSE_UPDATE_PARAMS": "Invalid license update params. {{reason}}",
|
||||
"error.WORKSPACE_MEMBERS_EXCEED_LIMIT_TO_DOWNGRADE": "You cannot downgrade the workspace from team workspace because there are more than {{limit}} members that are currently active."
|
||||
"error.WORKSPACE_MEMBERS_EXCEED_LIMIT_TO_DOWNGRADE": "You cannot downgrade the workspace from team workspace because there are more than {{limit}} members that are currently active.",
|
||||
"error.UNSUPPORTED_CLIENT_VERSION": "Unsupported client with version [{{clientVersion}}], required version is [{{requiredVersion}}]."
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user