mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-30 03:51:25 -08:00
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:
1 parent
18475f08fd
commit
5b1cebb334
82 files changed
+268
-174
No files matched your search
@@ -238,9 +238,9 @@ art.current = new Artplayer();
|
||||
You can also use the option type
|
||||
|
||||
```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',
|
||||
};
|
||||
@@ -317,7 +317,7 @@ The production build of `artplayer.js` is only compatible with the latest major
|
||||
For ancient browsers, you can use the `artplayer.legacy.js` file, which is compatible up to: `IE 11`
|
||||
|
||||
```js
|
||||
import Artplayer from 'artplayer/dist/artplayer.legacy.js'
|
||||
import Artplayer from 'artplayer/legacy'
|
||||
```
|
||||
|
||||
::: code-group
|
||||
|
||||
Reference in new issue
Block a user