mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-23 22:01:20 -08:00
add farsi language
This commit is contained in:
1 parent
2346bf1271
commit
a9af217408
11 files changed
+193
-145
No files matched your search
@@ -1046,7 +1046,7 @@ var art = new Artplayer({
|
||||
- Type: `String`
|
||||
- Default: `navigator.language.toLowerCase()`
|
||||
|
||||
Default display language, currently support: `en`、`zh-cn`、`zh-tw`、`cs`、`pl` 、`es`
|
||||
Default display language, currently support: `en`、`zh-cn`、`zh-tw`、`cs`、`pl` 、`es` 、`fa`
|
||||
|
||||
<div className="run-code">▶ Run Code</div>
|
||||
|
||||
|
||||
@@ -1046,7 +1046,7 @@ var art = new Artplayer({
|
||||
- 类型: `String`
|
||||
- 默认: `navigator.language.toLowerCase()`
|
||||
|
||||
默认显示语言,目前支持:`en`、`zh-cn`、`zh-tw`、`cs`、`pl` 、`es`
|
||||
默认显示语言,目前支持:`en`、`zh-cn`、`zh-tw`、`cs`、`pl` 、`es` 、`fa`
|
||||
|
||||
<div className="run-code">▶ Run Code</div>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"license": "MIT",
|
||||
"name": "artplayer",
|
||||
"version": "4.5.7",
|
||||
"version": "4.5.8",
|
||||
"main": "dist/artplayer.js",
|
||||
"types": "types/artplayer.d.ts",
|
||||
"homepage": "https://artplayer.org",
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"Video Info": "Información del video",
|
||||
"Close": "Cerrar",
|
||||
"Video Load Failed": "Falló carga de video",
|
||||
"Volume": "Volumen",
|
||||
"Play": "Reproduciendo",
|
||||
"Pause": "Pausa",
|
||||
"Rate": "Velocidad",
|
||||
"Mute": "Silencio",
|
||||
"Video Flip": "Rotar video",
|
||||
"Horizontal": "Horizontal",
|
||||
"Vertical": "Vertical",
|
||||
"Reconnect": "Reconectando",
|
||||
"Show Setting": "Mostrar ajustes",
|
||||
"Hide Setting": "Ocultar ajustes",
|
||||
"Screenshot": "Captura de Pantalla",
|
||||
"Play Speed": "Velocidad de reproducción",
|
||||
"Aspect Ratio": "Relación de aspecto",
|
||||
"Default": "Por defecto",
|
||||
"Normal": "Normal",
|
||||
"Open": "Abrir",
|
||||
"Switch Video": "Cambiar video",
|
||||
"Switch Subtitle": "Cambiar subtítulo",
|
||||
"Fullscreen": "Pantalla completa",
|
||||
"Exit Fullscreen": "Salir de Pantalla completa",
|
||||
"Web Fullscreen": "Pantalla completa Web",
|
||||
"Exit Web Fullscreen": "Salir de Pantalla completa",
|
||||
"Mini Player": "Mini reproductor",
|
||||
"PIP Mode": "Modo PiP",
|
||||
"Exit PIP Mode": "Cerrar modo PiP",
|
||||
"PIP Not Supported": "Modo PiP no compatible",
|
||||
"Fullscreen Not Supported": "Pantalla completa no soportada",
|
||||
"Subtitle Offset": "Ajuste subtítulo",
|
||||
"Last Seen": "Visto última vez",
|
||||
"Jump Play": "Saltar",
|
||||
"AirPlay": "AirPlay",
|
||||
"AirPlay Not Available": "AirPlay no disponible"
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
{
|
||||
"Video Info": "اطلاعات ویدیو",
|
||||
"Video Info": "اطلاعات ویدیو",
|
||||
"Close": "بستن",
|
||||
"Video Load Failed": "بارگذاری ناموفق",
|
||||
"Play":"پخش"
|
||||
"Play": "پخش",
|
||||
"Volume": "میزان صدا",
|
||||
"Pause": "توقف",
|
||||
"Rate": "نرخ",
|
||||
@@ -35,4 +35,4 @@
|
||||
"Jump Play": "جامپ پلی",
|
||||
"AirPlay": "ایر پلی",
|
||||
"AirPlay Not Available": "عدم پشتیبانی از ایرپلی"
|
||||
}
|
||||
}
|
||||
@@ -5,16 +5,17 @@ import pl from './pl.json';
|
||||
import cs from './cs.json';
|
||||
import es from './es.json';
|
||||
import fa from './fa.json';
|
||||
|
||||
export default class I18n {
|
||||
constructor(art) {
|
||||
this.art = art;
|
||||
this.languages = {
|
||||
'zh-cn': zhCn,
|
||||
'zh-tw': zhTw,
|
||||
'pl': pl,
|
||||
'cs': cs,
|
||||
'es': es,
|
||||
'fa':fa
|
||||
pl: pl,
|
||||
cs: cs,
|
||||
es: es,
|
||||
fa: fa,
|
||||
};
|
||||
this.init();
|
||||
}
|
||||
|
||||
+1
-1
@@ -243,7 +243,7 @@ type Option = {
|
||||
/**
|
||||
* Player language
|
||||
*/
|
||||
lang?: 'en' | 'zh-cn' | 'zh-tw' | 'cs' | 'pl' | 'es' | (string & Record<never, never>);
|
||||
lang?: 'en' | 'zh-cn' | 'zh-tw' | 'cs' | 'pl' | 'es' | 'fa' | (string & Record<never, never>);
|
||||
|
||||
/**
|
||||
* Player default volume
|
||||
|
||||
Reference in new issue
Block a user