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

@@ -43,7 +43,7 @@ const Mask: FC<PropsWithChildren> = ({ children }) => (
</div>
);
// 在需要时渲染错误状态 & loading
// Rendering error states when needed & loading
const LoginCheckMask: FC<{ needLogin: boolean; loginOptional: boolean }> = ({
needLogin,
loginOptional,

View File

@@ -44,7 +44,7 @@ import { UserInfoField, type UserInfoFieldProps } from './user-info-field';
import styles from './index.module.less';
// 用户输入 username 自动检查的时间
// The time when the user enters the username to automatically check
export const CHECK_USER_NAME_DEBOUNCE_TIME = 1000;
const WrappedInputWithCount: React.FC<
@@ -213,7 +213,7 @@ export const UserInfoPanel = () => {
});
localStorage.setItem('i18next', newLang === 'en-US' ? 'en' : newLang);
updateProfileEvent.success();
// 更新语言设置需要刷新页面才能生效
// Updating the language settings requires a page refresh to take effect
setTimeout(() => {
window.location.reload();
}, 500);
@@ -310,7 +310,7 @@ export const UserInfoPanel = () => {
setAvatar(userInfo?.avatar_url ?? '');
}, [userInfo]);
// 在进入和离开时均刷新一次用户信息
// Refresh user information once upon entry and exit
useEffect(() => {
refreshUserInfo();
return () => {

View File

@@ -23,7 +23,7 @@ import s from './index.module.less';
export const USER_NAME_MAX_LEN = 20;
interface InputWithCountProps extends InputProps {
// 设置字数限制并显示字数统计
// Set word limits and display word count
getValueLength?: (value?: InputProps['value'] | string) => number;
}