chore: replace all cn comments of fe to en version by volc api (#320)

This commit is contained in:
tecvan
2025-07-31 10:32:15 +08:00
committed by GitHub
parent 716ec0cba8
commit 71f6245a01
2960 changed files with 15545 additions and 15545 deletions

View File

@@ -22,7 +22,7 @@ import { getExpirationTime } from '@/utils/time';
export const columnExpireAtConf: () => ColumnProps<PersonalAccessToken> =
() => ({
title: I18n.t('expire_time_1'), // 状态
title: I18n.t('expire_time_1'), // state
dataIndex: 'expire_at',
render: (expireTime: number) => getExpirationTime(expireTime),
});

View File

@@ -37,7 +37,7 @@ interface ResultProps {
onOk: () => void;
}
// 新建编辑 PAT
// New Edit PAT
export const ResultModal = ({ visible, onOk, data }: ResultProps) => {
const doCopyAsync = useMemoizedFn(() => {
const targetKey = data?.token;

View File

@@ -18,10 +18,10 @@ import dayjs from 'dayjs';
import { I18n, type I18nKeysNoOptionsType } from '@coze-arch/i18n';
const MAX_EXPIRATION_DAYS = 30;
// 1-30天有效期
// 1-30 days valid period
export const disabledDate = (date?: Date) => {
const today = dayjs().startOf('day'); // 当天的开始时间
const thirtyDaysLater = today.add(MAX_EXPIRATION_DAYS, 'day'); // 30天后的日期
const today = dayjs().startOf('day'); // Start time of the day
const thirtyDaysLater = today.add(MAX_EXPIRATION_DAYS, 'day'); // Date in 30 days
return (
dayjs(date).isBefore(today, 'day') ||