diff --git a/packages/core/src/routes/connector.ts b/packages/core/src/routes/connector.ts index 8673c615d..b63ccc912 100644 --- a/packages/core/src/routes/connector.ts +++ b/packages/core/src/routes/connector.ts @@ -130,11 +130,11 @@ export default function connectorRoutes(router: T) { assertThat( connectorFactory.metadata.isStandard !== true || metadata?.target, - 'connector.can_not_modify_target' + 'connector.should_specify_target' ); assertThat( connectorFactory.metadata.isStandard === true || metadata === undefined, - 'connector.cannot_change_metadata_for_non_standard_connector' + 'connector.cannot_overwrite_metadata_for_non_standard_connector' ); const { count } = await countConnectorByConnectorId(connectorId); @@ -215,7 +215,7 @@ export default function connectorRoutes(router: T) { assertThat( originalMetadata.isStandard === true || metadata === undefined, - 'connector.cannot_change_metadata_for_non_standard_connector' + 'connector.cannot_overwrite_metadata_for_non_standard_connector' ); if (syncProfile) { diff --git a/packages/phrases/src/locales/de/errors.ts b/packages/phrases/src/locales/de/errors.ts index a5097f1dd..4d1833d59 100644 --- a/packages/phrases/src/locales/de/errors.ts +++ b/packages/phrases/src/locales/de/errors.ts @@ -109,11 +109,12 @@ const errors = { multiple_instances_not_supported: 'Can not create multiple instance with picked standard connector.', invalid_type_for_syncing_profile: 'You can only sync user profile with social connectors.', - can_not_modify_target: 'The connector target can not be modified.', + can_not_modify_target: "The connector 'target' can not be modified.", + should_specify_target: "You should specify 'target'.", multiple_target_with_same_platform: 'You can not have multiple social connectors that have same target and platform.', - cannot_change_metadata_for_non_standard_connector: - "This connector's `metadata` cannot be changed.", + cannot_overwrite_metadata_for_non_standard_connector: + "This connector's 'metadata' cannot be overwritten.", }, passcode: { phone_email_empty: 'Telefonnummer oder E-Mail darf nicht leer sein.', diff --git a/packages/phrases/src/locales/en/errors.ts b/packages/phrases/src/locales/en/errors.ts index eed909db1..9f2a94e1e 100644 --- a/packages/phrases/src/locales/en/errors.ts +++ b/packages/phrases/src/locales/en/errors.ts @@ -108,11 +108,12 @@ const errors = { multiple_instances_not_supported: 'Can not create multiple instance with picked standard connector.', invalid_type_for_syncing_profile: 'You can only sync user profile with social connectors.', - can_not_modify_target: 'The connector target can not be modified.', + can_not_modify_target: "The connector 'target' can not be modified.", + should_specify_target: "You should specify 'target'.", multiple_target_with_same_platform: 'You can not have multiple social connectors that have same target and platform.', - cannot_change_metadata_for_non_standard_connector: - "This connector's `metadata` cannot be changed.", + cannot_overwrite_metadata_for_non_standard_connector: + "This connector's 'metadata' cannot be overwritten.", }, passcode: { phone_email_empty: 'Both phone and email are empty.', diff --git a/packages/phrases/src/locales/fr/errors.ts b/packages/phrases/src/locales/fr/errors.ts index 97ff0bec0..a1b4b2666 100644 --- a/packages/phrases/src/locales/fr/errors.ts +++ b/packages/phrases/src/locales/fr/errors.ts @@ -115,11 +115,12 @@ const errors = { multiple_instances_not_supported: 'Can not create multiple instance with picked standard connector.', // UNTRANSLATED invalid_type_for_syncing_profile: 'You can only sync user profile with social connectors.', // UNTRANSLATED - can_not_modify_target: 'The connector target can not be modified.', // UNTRANSLATED + can_not_modify_target: "The connector 'target' can not be modified.", // UNTRANSLATED + should_specify_target: "You should specify 'target'.", // UNTRANSLATED multiple_target_with_same_platform: 'You can not have multiple social connectors that have same target and platform.', // UNTRANSLATED - cannot_change_metadata_for_non_standard_connector: - "This connector's `metadata` cannot be changed.", // UNTRANSLATED + cannot_overwrite_metadata_for_non_standard_connector: + "This connector's 'metadata' cannot be overwritten.", // UNTRANSLATED }, passcode: { phone_email_empty: "Le téléphone et l'email sont vides.", diff --git a/packages/phrases/src/locales/ko/errors.ts b/packages/phrases/src/locales/ko/errors.ts index f1ee88d42..7c3f441e8 100644 --- a/packages/phrases/src/locales/ko/errors.ts +++ b/packages/phrases/src/locales/ko/errors.ts @@ -107,11 +107,12 @@ const errors = { multiple_instances_not_supported: 'Can not create multiple instance with picked standard connector.', // UNTRANSLATED invalid_type_for_syncing_profile: 'You can only sync user profile with social connectors.', // UNTRANSLATED - can_not_modify_target: 'The connector target can not be modified.', // UNTRANSLATED + can_not_modify_target: "The connector 'target' can not be modified.", // UNTRANSLATED + should_specify_target: "You should specify 'target'.", // UNTRANSLATED multiple_target_with_same_platform: 'You can not have multiple social connectors that have same target and platform.', // UNTRANSLATED - cannot_change_metadata_for_non_standard_connector: - "This connector's `metadata` cannot be changed.", // UNTRANSLATED + cannot_overwrite_metadata_for_non_standard_connector: + "This connector's 'metadata' cannot be overwritten.", // UNTRANSLATED }, passcode: { phone_email_empty: '휴대전화번호 그리고 이메일이 비어있어요.', diff --git a/packages/phrases/src/locales/pt-br/errors.ts b/packages/phrases/src/locales/pt-br/errors.ts index 71439ef8a..e22ca43cd 100644 --- a/packages/phrases/src/locales/pt-br/errors.ts +++ b/packages/phrases/src/locales/pt-br/errors.ts @@ -113,10 +113,11 @@ const errors = { invalid_type_for_syncing_profile: 'Você só pode sincronizar o perfil do usuário com conectores sociais.', can_not_modify_target: 'O destino do conector não pode ser modificado.', + should_specify_target: "You should specify 'target'.", // UNTRANSLATED multiple_target_with_same_platform: 'Você não pode ter vários conectores sociais com o mesmo destino e plataforma.', - cannot_change_metadata_for_non_standard_connector: - "This connector's `metadata` cannot be changed.", // UNTRANSLATED + cannot_overwrite_metadata_for_non_standard_connector: + "This connector's 'metadata' cannot be overwritten.", // UNTRANSLATED }, passcode: { phone_email_empty: 'Telefone e e-mail estão vazios.', diff --git a/packages/phrases/src/locales/pt-pt/errors.ts b/packages/phrases/src/locales/pt-pt/errors.ts index 919084e60..04f3183e0 100644 --- a/packages/phrases/src/locales/pt-pt/errors.ts +++ b/packages/phrases/src/locales/pt-pt/errors.ts @@ -110,11 +110,12 @@ const errors = { multiple_instances_not_supported: 'Can not create multiple instance with picked standard connector.', // UNTRANSLATED invalid_type_for_syncing_profile: 'You can only sync user profile with social connectors.', // UNTRANSLATED - can_not_modify_target: 'The connector target can not be modified.', // UNTRANSLATED + can_not_modify_target: "The connector 'target' can not be modified.", // UNTRANSLATED + should_specify_target: "You should specify 'target'.", // UNTRANSLATED multiple_target_with_same_platform: 'You can not have multiple social connectors that have same target and platform.', // UNTRANSLATED - cannot_change_metadata_for_non_standard_connector: - "This connector's `metadata` cannot be changed.", // UNTRANSLATED + cannot_overwrite_metadata_for_non_standard_connector: + "This connector's 'metadata' cannot be overwritten.", // UNTRANSLATED }, passcode: { phone_email_empty: 'O campos telefone e email estão vazios.', diff --git a/packages/phrases/src/locales/tr-tr/errors.ts b/packages/phrases/src/locales/tr-tr/errors.ts index a213c2254..a004106ed 100644 --- a/packages/phrases/src/locales/tr-tr/errors.ts +++ b/packages/phrases/src/locales/tr-tr/errors.ts @@ -109,11 +109,12 @@ const errors = { multiple_instances_not_supported: 'Can not create multiple instance with picked standard connector.', // UNTRANSLATED invalid_type_for_syncing_profile: 'You can only sync user profile with social connectors.', // UNTRANSLATED - can_not_modify_target: 'The connector target can not be modified.', // UNTRANSLATED + can_not_modify_target: "The connector 'target' can not be modified.", // UNTRANSLATED + should_specify_target: "You should specify 'target'.", // UNTRANSLATED multiple_target_with_same_platform: 'You can not have multiple social connectors that have same target and platform.', // UNTRANSLATED - cannot_change_metadata_for_non_standard_connector: - "This connector's `metadata` cannot be changed.", // UNTRANSLATED + cannot_overwrite_metadata_for_non_standard_connector: + "This connector's 'metadata' cannot be overwritten.", // UNTRANSLATED }, passcode: { phone_email_empty: 'Hem telefon hem de e-posta adresi yok.', diff --git a/packages/phrases/src/locales/zh-cn/errors.ts b/packages/phrases/src/locales/zh-cn/errors.ts index a4b3f66f4..cd65baf65 100644 --- a/packages/phrases/src/locales/zh-cn/errors.ts +++ b/packages/phrases/src/locales/zh-cn/errors.ts @@ -102,8 +102,9 @@ const errors = { multiple_instances_not_supported: '你选择的连接器不支持创建多实例。', invalid_type_for_syncing_profile: '只有社交连接器可以开启用户档案同步。', can_not_modify_target: '不可修改连接器 target。', + should_specify_target: '你需要声明 target 的值。', multiple_target_with_same_platform: '不能同时存在多个有相同 target 和平台类型的社交连接器。', - cannot_change_metadata_for_non_standard_connector: '不可配置该连接器的 metadata 参数。', + cannot_overwrite_metadata_for_non_standard_connector: '不可覆盖该连接器的 metadata 参数。', }, passcode: { phone_email_empty: '手机号与邮箱地址均为空',