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:
几句レし authored and GitHub committed 2023-02-24 16:11:39 +08:00
1 parent f43a2921b7
commit a3425da515
6 files changed
+45 -5

No files matched your search

+2 -2
View File
@@ -402,7 +402,7 @@ export type Events = {
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 = {
'Video Info': string;
@@ -1060,4 +1060,4 @@ export type Utils = {
escape(str: string): string;
capitalize(str: string): string;
isStringOrNumber(val: any): boolean;
};
};
@@ -1058,7 +1058,7 @@ var art = new Artplayer({
- Type: `String`
- 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>
@@ -1058,7 +1058,7 @@ var art = new Artplayer({
- Type: `String`
- 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>
+38
View File
@@ -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"
}
+2
View File
@@ -6,6 +6,7 @@ import cs from './cs.json';
import es from './es.json';
import fa from './fa.json';
import fr from './fr.json';
import id from './id.json';
export default class I18n {
constructor(art) {
@@ -19,6 +20,7 @@ export default class I18n {
es: es,
fa: fa,
fr: fr,
id: id,
};
this.update(art.option.i18n);
+1 -1
View File
@@ -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 = {
'Video Info': string;