chore: replace all cn comments of fe to en version by volc api (#320)
This commit is contained in:
@@ -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 都是MIDI(Musical Instrument Digital Interface)文件的扩展名 - GPT
|
||||
// Both .midi and .mid are extensions for MIDI (Musical Instrument Digital Interface) files - GPT
|
||||
'.mid',
|
||||
'.midi',
|
||||
'.ac3',
|
||||
|
||||
@@ -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)),
|
||||
|
||||
Reference in New Issue
Block a user