mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-26 17:01:20 -08:00
Add Vietnamese localization for Artplayer
This commit is contained in:
1 parent
2aaef7db45
commit
17ece4c0c8
41 files changed
+2335
-1585
No files matched your search
@@ -87,6 +87,14 @@ var art = new Artplayer({
|
||||
return item.range[0] + 'x';
|
||||
},
|
||||
},
|
||||
{
|
||||
html: 'Button',
|
||||
icon: '<img width="22" heigth="22" src="/assets/img/state.svg">',
|
||||
tooltip: 'tooltip',
|
||||
onClick() {
|
||||
return 'Button clicked';
|
||||
}
|
||||
},
|
||||
],
|
||||
contextmenu: [
|
||||
{
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@ export as namespace artplayerPluginAutoThumbnail;
|
||||
type Option = {
|
||||
url?: string;
|
||||
width?: number;
|
||||
height?: number;
|
||||
number?: number;
|
||||
scale?: number;
|
||||
};
|
||||
|
||||
|
||||
Vendored
+7
-1
@@ -208,6 +208,11 @@ export type Setting = {
|
||||
*/
|
||||
onChange?(this: Artplayer, item: SettingOption, element: HTMLDivElement, event: Event): void;
|
||||
|
||||
/**
|
||||
* When range item change in real time
|
||||
*/
|
||||
onClick?(this: Artplayer, item: SettingOption, element: HTMLDivElement, event: Event): void;
|
||||
|
||||
[key: string]: any;
|
||||
};
|
||||
|
||||
@@ -667,6 +672,7 @@ type I18nKeys =
|
||||
| 'ru'
|
||||
| 'tr'
|
||||
| 'ar'
|
||||
| 'vi'
|
||||
| (string & Record<never, never>);
|
||||
|
||||
type I18nValue = {
|
||||
@@ -708,7 +714,7 @@ type I18nValue = {
|
||||
'AirPlay Not Available': string;
|
||||
};
|
||||
|
||||
export type I18n = Record<I18nKeys, Partial<I18nValue>>;
|
||||
export type I18n = Partial<Record<I18nKeys, Partial<I18nValue>>>;
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user