diff --git a/packages/core/src/connectors/aliyun-dm/index.ts b/packages/core/src/connectors/aliyun-dm/index.ts index 942b9ef34..7f5384d15 100644 --- a/packages/core/src/connectors/aliyun-dm/index.ts +++ b/packages/core/src/connectors/aliyun-dm/index.ts @@ -5,8 +5,14 @@ import { ConnectorMetadata } from '../types'; export const metadata: ConnectorMetadata = { id: 'aliyun-dm', type: ConnectorType.Email, - name: '阿里云邮件推送', + name: { + en: 'Aliyun Direct Mail', + zh_CN: '阿里云邮件推送', + }, logo: './logo.png', - description: - '邮件推送(DirectMail)是款简单高效的电子邮件群发服务,构建在阿里云基础之上,帮您快速、精准地实现事务邮件、通知邮件和批量邮件的发送。', + description: { + en: 'A simple and efficient email service to help you send transactional notifications and batch email.', + zh_CN: + '邮件推送(DirectMail)是款简单高效的电子邮件群发服务,构建在阿里云基础之上,帮您快速、精准地实现事务邮件、通知邮件和批量邮件的发送。', + }, }; diff --git a/packages/core/src/connectors/types.ts b/packages/core/src/connectors/types.ts index c406c5f22..0dd1fe0cc 100644 --- a/packages/core/src/connectors/types.ts +++ b/packages/core/src/connectors/types.ts @@ -1,11 +1,12 @@ +import { Languages } from '@logto/phrases'; import { ConnectorType } from '@logto/schemas'; export interface ConnectorMetadata { id: string; type: ConnectorType; - name: string; + name: Record; logo: string; - description: string; + description: Record; } // The name `Connector` is used for database, use `ConnectorInstance` to avoid confusing. diff --git a/packages/phrases/src/index.ts b/packages/phrases/src/index.ts index c10b277f8..a9b1308bd 100644 --- a/packages/phrases/src/index.ts +++ b/packages/phrases/src/index.ts @@ -4,6 +4,7 @@ import { Normalize, Resource } from './types'; export type LogtoErrorCode = Normalize; export type LogtoErrorI18nKey = `errors:${LogtoErrorCode}`; +export type Languages = keyof Resource; const resource: Resource = { en,