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

@@ -16,7 +16,7 @@
import { type LocalStorageCacheConfig } from './types';
// 统一维护 key 定义避免出现冲突
// Maintain key definitions uniformly to avoid conflicts
export const LOCAL_STORAGE_CACHE_KEYS = [
'coachmark',
'workspace-spaceId',

View File

@@ -37,8 +37,8 @@ class LocalStorageService extends EventEmitter {
}, throttleWait);
document.addEventListener('visibilitychange', () => {
/**
* 页签进入后台后,通过操作其它页签,可能导致 #state 状态不是最新的
* 所以页签重新激活后需要同步一次 localStorage 的数据
* After the tab enters the background, by operating other tabs, the #state status may not be the latest
* So after the tab is reactivated, the data of localStorage needs to be synchronized once.
*/
if (document.visibilityState === 'visible') {
this.#initState();

View File

@@ -27,7 +27,7 @@ const isValidDataItem = (data: unknown): data is CacheDataItems => {
const isObject = (value: unknown): value is object =>
!!value && typeof value === 'object' && value !== null;
// 判断本地缓存中的值是否与 LocalStorageCacheData 类型定义匹配
// Determines if a value in the local cache matches the LocalStorageCacheData type definition
const isValidCacheData = (value: unknown): value is LocalStorageCacheData => {
if (!isObject(value)) {
return false;