feat: add danmuku plugin documentation and i18n setup guide

- Created a new documentation file for the danmuku plugin with code examples.
- Added comprehensive i18n setup instructions, including default language settings, language imports, and examples for adding and modifying languages.
- Updated the structure and content of the i18n documentation to enhance clarity and usability.
This commit is contained in:
Harvey Zack committed 2025-09-06 13:48:25 +08:00
1 parent 18475f08fd
commit 5b1cebb334
82 files changed
+268 -174

No files matched your search

+3 -3
View File
@@ -238,9 +238,9 @@ art.current = new Artplayer();
你也可以使用选项的类型
```ts{3}
import Artplayer from 'artplayer';
import Artplayer, { type Option } from 'artplayer';
const option: Artplayer['Option'] = {
const option: Option = {
container: '.artplayer-app',
url: './assets/sample/video.mp4',
};
@@ -319,7 +319,7 @@ const art8 = new Artplayer(option);
对于古老的浏览器,可以使用 `artplayer.legacy.js` 文件,可以兼容到:`IE 11`
```js
import Artplayer from 'artplayer/dist/artplayer.legacy.js'
import Artplayer from 'artplayer/legacy'
```
::: code-group