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') ||

View File

@@ -40,16 +40,16 @@ export default defineConfig(
'src/components/**',
'src/pages/**',
'src/constants/**',
'src/utils/public-private-keys.ts', // window 提供的 api
'src/utils/docs.ts', // 线上未使用 仅 boe使用 即将删除
'src/utils/time.ts', // dayjs api 的调用
'src/utils/public-private-keys.ts', // Windows API
'src/utils/docs.ts', // Unused online, only boe used, about to be deleted
'src/utils/time.ts', // Dayjs API calls
'src/utils//analytics/index.ts',
'src/utils//analytics/chart.ts', // 有图表 dom 相关内容
'src/hooks/pat/action/**', // 操作类 hook
'src/hooks/oauth-app/action/**', // 操作类 hook
'src/hooks/use-arcosite.ts', // 线上未使用 仅 boe使用
'src/hooks/use-show-mask.ts', // 主要为获取 dom 的 scrollTop
'src/hooks/use-docs-path.ts', // useNavigate 相关内容
'src/hooks/pat/action/**', // Action class hook
'src/hooks/oauth-app/action/**', // Action class hook
'src/hooks/use-arcosite.ts', // Not used online, only boe used
'src/hooks/use-show-mask.ts', // Mainly scrollTop for getting dom
'src/hooks/use-docs-path.ts', // useNavigate related content
],
},
},