diff --git a/web/src/i18n/locales/en.json b/web/src/i18n/locales/en.json index 1ff11e1f..633ac9a4 100644 --- a/web/src/i18n/locales/en.json +++ b/web/src/i18n/locales/en.json @@ -1781,5 +1781,37 @@ "启用全部密钥": "Enable all keys", "以充值价格显示": "Show with recharge price", "美元汇率(非充值汇率,仅用于定价页面换算)": "USD exchange rate (not recharge rate, only used for pricing page conversion)", - "美元汇率": "USD exchange rate" + "美元汇率": "USD exchange rate", + "选择支付方式": "Choose payment channel", + "选择充值套餐": "Choose a top-up package", + "Creem 设置": "Creem Setting", + "Creem 介绍": "Creem is the payment partner you always deserved, we strive for simplicity and straightforwardness on our APIs.", + "Creem Setting Tips": "Creem only supports preset fixed-amount products. These products and their prices need to be created and configured in advance on the Creem website, so custom dynamic amount top-ups are not supported. Configure the product name and price on Creem, obtain the Product Id, and then fill it in for the product below. Set the top-up amount and display price for this product in the new API.", + "API 密钥": "API Secret", + "Webhook 密钥": "Webhook Secret", + "测试模式": "Test Mode", + "Creem API 密钥,敏感信息不显示": "Creem API key, sensitive information not displayed", + "用于验证回调 new-api 的 webhook 请求的密钥,敏感信息不显示": "The key used to validate webhook requests for the callback new-api, sensitive information is not displayed.", + "启用后将使用 Creem Test Mode": "", + "展示价格": "Display Pricing", + "Recharge Quota": "Recharge Quota", + "产品配置": "Product Configuration", +"产品名称": "Product Name", +"产品ID": "Product ID", +"暂无产品配置": "No product configuration", +"更新 Creem 设置": "Update Creem Settings", +"编辑产品": "Edit Product", +"添加产品": "Add Product", +"例如:基础套餐": "e.g.: Basic Package", +"例如:prod_6I8rBerHpPxyoiU9WK4kot": "e.g.: prod_6I8rBerHpPxyoiU9WK4kot", +"货币": "Currency", +"欧元": "EUR", +"USD (美元)": "USD (US Dollar)", +"EUR (欧元)": "EUR (Euro)", +"例如:4.99": "e.g.: 4.99", +"例如:100000": "e.g.: 100000", +"请填写完整的产品信息": "Please fill in complete product information", +"产品ID已存在": "Product ID already exists", +"更新成功": "Update successful", +"更新失败": "Update failed" } \ No newline at end of file diff --git a/web/src/i18n/locales/zh.json b/web/src/i18n/locales/zh.json index 5c7904fc..ba19e085 100644 --- a/web/src/i18n/locales/zh.json +++ b/web/src/i18n/locales/zh.json @@ -9,5 +9,7 @@ "语言": "语言", "展开侧边栏": "展开侧边栏", "关闭侧边栏": "关闭侧边栏", - "注销成功!": "注销成功!" + "注销成功!": "注销成功!", + "Creem 介绍": "Creem 是一个简单的支付处理平台,支持固定金额产品销售,以及订阅销售。", + "Creem Setting Tips": "Creem 只支持预设的固定金额产品,这产品以及价格需要提前在Creem网站内创建配置,所以不支持自定义动态金额充值。在Creem端配置产品的名字以及价格,获取Product Id 后填到下面的产品,在new-api为该产品设置充值额度,以及展示价格。" } diff --git a/web/src/pages/Setting/Payment/SettingsPaymentGatewayCreem.js b/web/src/pages/Setting/Payment/SettingsPaymentGatewayCreem.js index 3c2a4141..32e2e6fb 100644 --- a/web/src/pages/Setting/Payment/SettingsPaymentGatewayCreem.js +++ b/web/src/pages/Setting/Payment/SettingsPaymentGatewayCreem.js @@ -189,7 +189,7 @@ export default function SettingsPaymentGatewayCreem(props) { key: 'productId', }, { - title: t('价格'), + title: t('展示价格'), dataIndex: 'price', key: 'price', render: (price, record) => `${record.currency === 'EUR' ? '€' : '$'}${price}`, @@ -232,20 +232,17 @@ export default function SettingsPaymentGatewayCreem(props) { >