chore(i18n): update i18n (#15191)

#### PR Dependency Tree


* **PR #15191** 👈

This tree was auto-generated by
[Charcoal](https://github.com/danerwilliams/charcoal)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **New Features**
* Updated sign-in, sign-up, and email content to show the correct server
name for cloud and self-hosted setups.
* Added clearer workspace status messages for syncing, local workspaces,
and server-connected workspaces.
* Introduced localized text updates for more languages, including new
locale coverage.

* **Bug Fixes**
* Replaced outdated “Cloud” wording throughout the app with more
accurate “Sync” and self-hosted terminology.
* Improved account deletion, password reset, sharing, and storage
prompts for clearer user guidance.
* Updated workspace status labels and tooltips to better reflect the
current server connection.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
DarkSky
2026-07-03 18:37:20 +08:00
committed by GitHub
parent cebd7296b1
commit c36b5b201e
42 changed files with 306 additions and 1067 deletions
@@ -65,7 +65,7 @@ Generated by [AVA](https://avajs.dev).
<td>␊
<p␊
style="font-size:20px;line-height:28px;font-weight:600;font-family:Inter, Arial, Helvetica, sans-serif;margin-top:24px;margin-bottom:0;color:#141414">␊
Sign in to AFFiNE Cloud
Sign in to AFFiNE␊
</p>␊
</td>␊
</tr>␊
@@ -205,7 +205,7 @@ Generated by [AVA](https://avajs.dev).
<td>␊
<p␊
style="font-size:20px;line-height:28px;font-weight:600;font-family:Inter, Arial, Helvetica, sans-serif;margin-top:24px;margin-bottom:0;color:#141414">␊
Sign up to AFFiNE Cloud
Sign up to AFFiNE␊
</p>␊
</td>␊
</tr>␊
@@ -51,6 +51,13 @@ export class AuthService implements OnApplicationBootstrap {
};
}
private getServerName() {
return (
this.config.server.name ??
(env.selfhosted ? 'AFFiNE Self-hosted' : 'AFFiNE Cloud')
);
}
async onApplicationBootstrap() {
if (env.dev) {
await createDevUsers(this.models);
@@ -372,6 +379,7 @@ export class AuthService implements OnApplicationBootstrap {
props: {
url: link,
otp,
serverName: this.getServerName(),
},
});
}
@@ -75,7 +75,7 @@ export class ServerConfigResolver {
name:
this.config.server.name ??
(env.selfhosted
? 'AFFiNE SelfHosted Cloud'
? 'AFFiNE Self-hosted'
: env.namespaces.canary
? 'AFFiNE Canary Cloud'
: env.namespaces.beta
@@ -11,12 +11,13 @@ import {
export type SignInProps = {
url: string;
otp: string;
serverName?: string;
};
export default function SignIn(props: SignInProps) {
return (
<Template>
<Title>Sign in to AFFiNE Cloud</Title>
<Title>{`Sign in to ${props.serverName ?? 'AFFiNE'}`}</Title>
<Content>
<P>You are signing in to AFFiNE. Here is your code:</P>
<OnelineCodeBlock>{props.otp}</OnelineCodeBlock>
@@ -38,4 +39,5 @@ export default function SignIn(props: SignInProps) {
SignIn.PreviewProps = {
url: 'https://app.affine.pro/magic-link?token=123456&email=test@test.com',
otp: '123456',
serverName: 'AFFiNE Cloud',
};
@@ -11,12 +11,13 @@ import {
export type SignUpProps = {
url: string;
otp: string;
serverName?: string;
};
export default function SignUp(props: SignUpProps) {
return (
<Template>
<Title>Sign up to AFFiNE Cloud</Title>
<Title>{`Sign up to ${props.serverName ?? 'AFFiNE'}`}</Title>
<Content>
<P>You are signing up to AFFiNE. Here is your code:</P>
<OnelineCodeBlock>{props.otp}</OnelineCodeBlock>
@@ -38,4 +39,5 @@ export default function SignUp(props: SignUpProps) {
SignUp.PreviewProps = {
url: 'https://app.affine.pro/magic-link?token=123456&email=test@test.com',
otp: '123456',
serverName: 'AFFiNE Cloud',
};
+6 -1
View File
@@ -947,7 +947,7 @@ type EditorType {
name: String!
}
union ErrorDataUnion = AlreadyInSpaceDataType | BlobNotFoundDataType | CalendarProviderRequestErrorDataType | CopilotContextFileNotSupportedDataType | CopilotDocNotFoundDataType | CopilotFailedToAddWorkspaceFileEmbeddingDataType | CopilotFailedToGenerateEmbeddingDataType | CopilotFailedToMatchContextDataType | CopilotFailedToMatchGlobalContextDataType | CopilotFailedToModifyContextDataType | CopilotInvalidContextDataType | CopilotMessageNotFoundDataType | CopilotPromptNotFoundDataType | CopilotProviderNotSupportedDataType | CopilotProviderSideErrorDataType | DocActionDeniedDataType | DocHistoryNotFoundDataType | DocNotFoundDataType | DocUpdateBlockedDataType | ExpectToGrantDocUserRolesDataType | ExpectToRevokeDocUserRolesDataType | ExpectToUpdateDocUserRoleDataType | GraphqlBadRequestDataType | HttpRequestErrorDataType | ImageFormatNotSupportedDataType | InvalidAppConfigDataType | InvalidAppConfigInputDataType | InvalidEmailDataType | InvalidHistoryTimestampDataType | InvalidIndexerInputDataType | InvalidLicenseToActivateDataType | InvalidLicenseUpdateParamsDataType | InvalidOauthCallbackCodeDataType | InvalidOauthResponseDataType | InvalidPasswordLengthDataType | InvalidRuntimeConfigTypeDataType | InvalidSearchProviderRequestDataType | MemberNotFoundInSpaceDataType | MentionUserDocAccessDeniedDataType | MissingOauthQueryParameterDataType | NoCopilotProviderAvailableDataType | NoMoreSeatDataType | NotInSpaceDataType | QueryTooLongDataType | ResponseTooLargeErrorDataType | RuntimeConfigNotFoundDataType | SameSubscriptionRecurringDataType | SpaceAccessDeniedDataType | SpaceNotFoundDataType | SpaceOwnerNotFoundDataType | SpaceShouldHaveOnlyOneOwnerDataType | SsrfBlockedErrorDataType | SubscriptionAlreadyExistsDataType | SubscriptionNotExistsDataType | SubscriptionPlanNotFoundDataType | UnknownOauthProviderDataType | UnsupportedClientVersionDataType | UnsupportedSubscriptionPlanDataType | ValidationErrorDataType | VersionRejectedDataType | WorkspacePermissionNotFoundDataType | WrongSignInCredentialsDataType
union ErrorDataUnion = AlreadyInSpaceDataType | BlobNotFoundDataType | CalendarProviderRequestErrorDataType | CopilotContextFileNotSupportedDataType | CopilotDocNotFoundDataType | CopilotFailedToAddWorkspaceFileEmbeddingDataType | CopilotFailedToGenerateEmbeddingDataType | CopilotFailedToMatchContextDataType | CopilotFailedToMatchGlobalContextDataType | CopilotFailedToModifyContextDataType | CopilotInvalidContextDataType | CopilotMessageNotFoundDataType | CopilotPromptNotFoundDataType | CopilotProviderNotSupportedDataType | CopilotProviderSideErrorDataType | DocActionDeniedDataType | DocHistoryNotFoundDataType | DocNotFoundDataType | DocUpdateBlockedDataType | ExpectToGrantDocUserRolesDataType | ExpectToRevokeDocUserRolesDataType | ExpectToUpdateDocUserRoleDataType | GraphqlBadRequestDataType | HttpRequestErrorDataType | ImageFormatNotSupportedDataType | InvalidAppConfigDataType | InvalidAppConfigInputDataType | InvalidEmailDataType | InvalidHistoryTimestampDataType | InvalidIndexerInputDataType | InvalidLicenseToActivateDataType | InvalidLicenseUpdateParamsDataType | InvalidOauthCallbackCodeDataType | InvalidOauthResponseDataType | InvalidPasswordLengthDataType | InvalidRuntimeConfigTypeDataType | InvalidSearchProviderRequestDataType | MemberNotFoundInSpaceDataType | MentionUserDocAccessDeniedDataType | MissingOauthQueryParameterDataType | NoCopilotProviderAvailableDataType | NoMoreSeatDataType | NotInSpaceDataType | QueryTooLongDataType | ResponseTooLargeErrorDataType | RuntimeConfigNotFoundDataType | SameSubscriptionRecurringDataType | SpaceAccessDeniedDataType | SpaceNotFoundDataType | SpaceOwnerNotFoundDataType | SpaceShouldHaveOnlyOneOwnerDataType | SsrfBlockedErrorDataType | SubscriptionAlreadyExistsDataType | SubscriptionNotExistsDataType | SubscriptionPlanNotFoundDataType | UnknownOauthProviderDataType | UnsupportedClientVersionDataType | UnsupportedServerVersionDataType | UnsupportedSubscriptionPlanDataType | ValidationErrorDataType | VersionRejectedDataType | WorkspacePermissionNotFoundDataType | WrongSignInCredentialsDataType
enum ErrorNames {
ACCESS_DENIED
@@ -1084,6 +1084,7 @@ enum ErrorNames {
UNKNOWN_OAUTH_PROVIDER
UNSPLASH_IS_NOT_CONFIGURED
UNSUPPORTED_CLIENT_VERSION
UNSUPPORTED_SERVER_VERSION
UNSUPPORTED_SUBSCRIPTION_PLAN
USER_AVATAR_NOT_FOUND
USER_NOT_FOUND
@@ -2491,6 +2492,10 @@ type UnsupportedClientVersionDataType {
requiredVersion: String!
}
type UnsupportedServerVersionDataType {
requiredVersion: String!
}
type UnsupportedSubscriptionPlanDataType {
plan: String!
}