fix: price i18n

This commit is contained in:
Tristan Yang
2023-01-09 10:52:03 +08:00
parent db3a942a47
commit af97379a84
3 changed files with 30 additions and 10 deletions
+11 -1
View File
@@ -48,5 +48,15 @@
"uploading": "Uploading"
},
"new_version": "<0>New Version</0> Available",
"mobile_app": "Check out our <0>Mobile APP</0>"
"mobile_app": "Check out our <0>Mobile APP</0>",
"price": {
"pro": {
"title": "VoceChat Pro",
"desc": "User Limit: 100"
},
"supreme": {
"title": "VoceChat Supreme",
"desc": "User Limit: No Limit"
}
}
}
+11 -1
View File
@@ -50,5 +50,15 @@
"uploading": "上传中"
},
"new_version": "有<0>新版本</0>",
"mobile_app": "欢迎下载使用<0>手机APP</0>"
"mobile_app": "欢迎下载使用<0>手机APP</0>",
"price": {
"pro": {
"title": "VoceChat 专业版",
"desc": "用户数限制: 100人"
},
"supreme": {
"title": "VoceChat 终极版",
"desc": "用户数限制: 无限制"
}
}
}
+8 -8
View File
@@ -1,5 +1,4 @@
// const BASE_URL = `${location.origin}/api`;
import i18n from '../i18n';
import { Price } from "../types/common";
// const BASE_URL = `http://localhost:3333/api`;
@@ -11,26 +10,27 @@ let prices: Price[] = [
{
type: "subscription",
// sub_type: "year", //day month year
title: "VoceChat Pro",
title: i18n.t("price.pro.title"),
limit: 100,
pid: "price_1MN8C7GGoUDRyc3jos06bCqM",
desc: "User Limit: 100"
desc: i18n.t("price.pro.desc"),
},
{
type: "payment",
title: "VoceChat Supreme",
title: i18n.t("price.supreme.title"),
limit: 99999,
pid: "price_1M5VoGGGoUDRyc3j6xhQou6D",
desc: "User Limit: No Limit"
desc: i18n.t("price.supreme.desc"),
}
];
export const LicensePriceList: Price[] =
process.env.NODE_ENV === "development"
// 开发环境加入两个测试价格
? [
...prices,
{
type: "payment",
title: "VoceChat Enterprise",
title: "Test VoceChat Enterprise",
limit: 99999,
pid: "price_1LkQGpGGoUDRyc3jGTh3GYHw",
desc: "test price"
@@ -49,7 +49,7 @@ export const PAYMENT_URL_PREFIX =
process.env.NODE_ENV === "production"
? `https://vera.nicegoodthings.com`
: `http://localhost:4000`;
export const CACHE_VERSION = `0.3.1`;
export const CACHE_VERSION = `0.3.32`;
export const GuestRoutes = ["/", "/chat", "/chat/channel/:channel_id"];
export const ContentTypes = {
text: "text/plain",