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

@@ -17,7 +17,7 @@
import { FileTypeEnum, type TFileTypeConfig } from './const';
/**
* 文件类型
* file type
* {@link
* {@link https://www.iana.org/assignments/media-types/media-types.xhtml#image}
*/
@@ -37,7 +37,7 @@ export const FILE_TYPE_CONFIG: readonly TFileTypeConfig[] = [
'.ogg',
'.wma',
'.alac',
// .midi .mid 都是MIDIMusical Instrument Digital Interface)文件的扩展名 - GPT
// Both .midi and .mid are extensions for MIDI (Musical Instrument Digital Interface) files - GPT
'.mid',
'.midi',
'.ac3',

View File

@@ -16,7 +16,7 @@
import { FILE_TYPE_CONFIG } from './file-type';
// 获取文件信息
// Get file information
export const getFileInfo = (file: File) => {
const fileInfo = FILE_TYPE_CONFIG.find(({ judge, accept }) =>
judge ? judge(file) : accept.some(ext => file.name.endsWith(ext)),