简体中文
国际化与文案
Actions
No files
0 loaded file(s) · 0 B total
md
<FileList locale="en-US" base="https://pan.example.com" />在预设基础上覆盖单条文案:
md
<FileList
:labels="{ batch: '下载全部', loaded: '共 {count} 个文件' }"
base="https://pan.example.com"
/>内置预设:zh-CN、en-US。占位符支持 {count}、{percent}、{message}、{name},由 formatLabel() 替换。完整 key 列表通过 FileListLabels 导出:
ts
import type { FileListLabels } from 'vitepress-plugin-filelist/client'
import { fileListLocales, formatLabel, resolveLabels } from 'vitepress-plugin-filelist/client'