mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-28 18:41:20 -08:00
Add Indonesian (Bahasa Indonesia) Language (#477)
* Update artplayer.d.ts * Update option.md * Update option.md * Create id.json * Update index.js * Update i18n.d.ts
This commit is contained in:
6 files changed
+45
-5
No files matched your search
Vendored
+2
-2
@@ -402,7 +402,7 @@ export type Events = {
|
|||||||
restart: [];
|
restart: [];
|
||||||
};
|
};
|
||||||
|
|
||||||
type I18nKeys = 'en' | 'zh-cn' | 'zh-tw' | 'pl' | 'cs' | 'es' | 'fa' | 'fr' | (string & Record<never, never>);
|
type I18nKeys = 'en' | 'zh-cn' | 'zh-tw' | 'pl' | 'cs' | 'es' | 'fa' | 'fr' | 'id' (string & Record<never, never>);
|
||||||
|
|
||||||
type I18nValue = {
|
type I18nValue = {
|
||||||
'Video Info': string;
|
'Video Info': string;
|
||||||
@@ -1060,4 +1060,4 @@ export type Utils = {
|
|||||||
escape(str: string): string;
|
escape(str: string): string;
|
||||||
capitalize(str: string): string;
|
capitalize(str: string): string;
|
||||||
isStringOrNumber(val: any): boolean;
|
isStringOrNumber(val: any): boolean;
|
||||||
};
|
};
|
||||||
@@ -1058,7 +1058,7 @@ var art = new Artplayer({
|
|||||||
- Type: `String`
|
- Type: `String`
|
||||||
- Default: `navigator.language.toLowerCase()`
|
- Default: `navigator.language.toLowerCase()`
|
||||||
|
|
||||||
The default display language currently supports: `en`, `zh-cn`, `zh-tw`, `cs`, `pl`, `es`, `fa`, `fr`
|
The default display language currently supports: `en`, `zh-cn`, `zh-tw`, `cs`, `pl`, `es`, `fa`, `fr`, `id`
|
||||||
|
|
||||||
<div className="run-code">▶ Run Code</div>
|
<div className="run-code">▶ Run Code</div>
|
||||||
|
|
||||||
|
|||||||
@@ -1058,7 +1058,7 @@ var art = new Artplayer({
|
|||||||
- Type: `String`
|
- Type: `String`
|
||||||
- Default: `navigator.language.toLowerCase()`
|
- Default: `navigator.language.toLowerCase()`
|
||||||
|
|
||||||
默认显示语言,目前支持:`en`, `zh-cn`, `zh-tw`, `cs`, `pl`, `es`, `fa`, `fr`
|
默认显示语言,目前支持:`en`, `zh-cn`, `zh-tw`, `cs`, `pl`, `es`, `fa`, `fr`, `id`
|
||||||
|
|
||||||
<div className="run-code">▶ Run Code</div>
|
<div className="run-code">▶ Run Code</div>
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,38 @@
|
|||||||
|
{
|
||||||
|
"Video Info": "Informasi Video",
|
||||||
|
"Close": "Tutup",
|
||||||
|
"Video Load Failed": "Gagal Memuat Video",
|
||||||
|
"Volume": "Volume",
|
||||||
|
"Play": "Putar",
|
||||||
|
"Pause": "Jeda",
|
||||||
|
"Rate": "Kecepatan",
|
||||||
|
"Mute": "Senyap",
|
||||||
|
"Video Flip": "Memutar Video",
|
||||||
|
"Horizontal": "Horizontal",
|
||||||
|
"Vertical": "Vertikal",
|
||||||
|
"Reconnect": "Menyambung Kembali",
|
||||||
|
"Show Setting": "Tampilkan Pengaturan",
|
||||||
|
"Hide Setting": "Sembunyikan Pengaturan",
|
||||||
|
"Screenshot": "Tangkapan Layar",
|
||||||
|
"Play Speed": "Kecepatan Putar",
|
||||||
|
"Aspect Ratio": "Rasio Aspek",
|
||||||
|
"Default": "Default",
|
||||||
|
"Normal": "Normal",
|
||||||
|
"Open": "Buka",
|
||||||
|
"Switch Video": "Ganti Video",
|
||||||
|
"Switch Subtitle": "Ganti Subtitle",
|
||||||
|
"Fullscreen": "Layar Penuh",
|
||||||
|
"Exit Fullscreen": "Keluar dari Layar Penuh",
|
||||||
|
"Web Fullscreen": "Layar Penuh Web",
|
||||||
|
"Exit Web Fullscreen": "Keluar dari Layar Penuh Web",
|
||||||
|
"Mini Player": "Pemutar Mini",
|
||||||
|
"PIP Mode": "Mode PIP",
|
||||||
|
"Exit PIP Mode": "Keluar dari Mode PIP",
|
||||||
|
"PIP Not Supported": "PIP Tidak Didukung",
|
||||||
|
"Fullscreen Not Supported": "Layar Penuh Tidak Didukung",
|
||||||
|
"Subtitle Offset": "Pergeseran Subtitle",
|
||||||
|
"Last Seen": "Terakhir Dilihat",
|
||||||
|
"Jump Play": "Lompat Putar",
|
||||||
|
"AirPlay": "AirPlay",
|
||||||
|
"AirPlay Not Available": "AirPlay Tidak Tersedia"
|
||||||
|
}
|
||||||
@@ -6,6 +6,7 @@ import cs from './cs.json';
|
|||||||
import es from './es.json';
|
import es from './es.json';
|
||||||
import fa from './fa.json';
|
import fa from './fa.json';
|
||||||
import fr from './fr.json';
|
import fr from './fr.json';
|
||||||
|
import id from './id.json';
|
||||||
|
|
||||||
export default class I18n {
|
export default class I18n {
|
||||||
constructor(art) {
|
constructor(art) {
|
||||||
@@ -19,6 +20,7 @@ export default class I18n {
|
|||||||
es: es,
|
es: es,
|
||||||
fa: fa,
|
fa: fa,
|
||||||
fr: fr,
|
fr: fr,
|
||||||
|
id: id,
|
||||||
};
|
};
|
||||||
|
|
||||||
this.update(art.option.i18n);
|
this.update(art.option.i18n);
|
||||||
|
|||||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
type I18nKeys = 'en' | 'zh-cn' | 'zh-tw' | 'pl' | 'cs' | 'es' | 'fa' | 'fr' | (string & Record<never, never>);
|
type I18nKeys = 'en' | 'zh-cn' | 'zh-tw' | 'pl' | 'cs' | 'es' | 'fa' | 'fr' | `id` (string & Record<never, never>);
|
||||||
|
|
||||||
type I18nValue = {
|
type I18nValue = {
|
||||||
'Video Info': string;
|
'Video Info': string;
|
||||||
|
|||||||
Reference in new issue
Block a user