mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-11 13:56:15 -08:00
Add french language (#460)
* Create fr.json * Update index.js * Update i18n.d.ts * Update option.md * Update option.md * Update artplayer.d.ts
This commit is contained in:
1 parent
35d2028bcc
commit
d3862db0f3
6 files changed
+47
-7
No files matched your search
Vendored
+2
-2
@@ -401,7 +401,7 @@ export type Events = {
|
||||
restart: [];
|
||||
};
|
||||
|
||||
type I18nKeys = 'en' | 'zh-cn' | 'zh-tw' | 'pl' | 'cs' | 'es' | 'fa' | (string & Record<never, never>);
|
||||
type I18nKeys = 'en' | 'zh-cn' | 'zh-tw' | 'pl' | 'cs' | 'es' | 'fa' | 'fr' | (string & Record<never, never>);
|
||||
|
||||
type I18nValue = {
|
||||
'Video Info': string;
|
||||
@@ -1059,4 +1059,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`
|
||||
The default display language currently supports: `en`, `zh-cn`, `zh-tw`, `cs`, `pl`, `es`, `fa`, `fr`
|
||||
|
||||
<div className="run-code">▶ Run Code</div>
|
||||
|
||||
@@ -1211,4 +1211,4 @@ var art = new Artplayer({
|
||||
url: '/assets/sample/video.mp4',
|
||||
airplay: true,
|
||||
});
|
||||
```
|
||||
```
|
||||
@@ -1058,7 +1058,7 @@ var art = new Artplayer({
|
||||
- Type: `String`
|
||||
- Default: `navigator.language.toLowerCase()`
|
||||
|
||||
默认显示语言,目前支持:`en`, `zh-cn`, `zh-tw`, `cs`, `pl`, `es`, `fa`
|
||||
默认显示语言,目前支持:`en`, `zh-cn`, `zh-tw`, `cs`, `pl`, `es`, `fa`, `fr`
|
||||
|
||||
<div className="run-code">▶ Run Code</div>
|
||||
|
||||
@@ -1211,4 +1211,4 @@ var art = new Artplayer({
|
||||
url: '/assets/sample/video.mp4',
|
||||
airplay: true,
|
||||
});
|
||||
```
|
||||
```
|
||||
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"Video Info": "Informations de la vidéo",
|
||||
"Close": "Fermer",
|
||||
"Video Load Failed": "Téléchargement de la vidéo échoué",
|
||||
"Volume": "Volume",
|
||||
"Play": "Lire",
|
||||
"Pause": "Pause",
|
||||
"Rate": "Vitesse",
|
||||
"Mute": "Muet",
|
||||
"Video Flip": "Rotation de la vidéo",
|
||||
"Horizontal": "Horizontal",
|
||||
"Vertical": "Vertical",
|
||||
"Reconnect": "Reconnexion",
|
||||
"Show Setting": "Afficher les paramètres",
|
||||
"Hide Setting": "Cacher les paramètres",
|
||||
"Screenshot": "Capture d'écran",
|
||||
"Play Speed": "Vitesse de lecture",
|
||||
"Aspect Ratio": "Rapport d'aspect",
|
||||
"Default": "Défaut",
|
||||
"Normal": "Normal",
|
||||
"Open": "Ouvrir",
|
||||
"Switch Video": "Basculer la vidéo",
|
||||
"Switch Subtitle": "Basculer le sous-titre",
|
||||
"Fullscreen": "Plein écran",
|
||||
"Exit Fullscreen": "Quitter le plein écran",
|
||||
"Web Fullscreen": "Plein écran Web",
|
||||
"Exit Web Fullscreen": "Quitter le plein écran Web",
|
||||
"Mini Player": "Mini lecteur",
|
||||
"PIP Mode": "Mode PiP",
|
||||
"Exit PIP Mode": "Fermer le mode PiP",
|
||||
"PIP Not Supported": "Mode PiP non supporté",
|
||||
"Fullscreen Not Supported": "Plein écran non supporté",
|
||||
"Subtitle Offset": "Réglage des sous-titres",
|
||||
"Last Seen": "Dernière position",
|
||||
"Jump Play": "Continuer",
|
||||
"AirPlay": "AirPlay",
|
||||
"AirPlay Not Available": "AirPlay non disponible"
|
||||
}
|
||||
@@ -5,6 +5,7 @@ import pl from './pl.json';
|
||||
import cs from './cs.json';
|
||||
import es from './es.json';
|
||||
import fa from './fa.json';
|
||||
import fr from './fr.json';
|
||||
|
||||
export default class I18n {
|
||||
constructor(art) {
|
||||
@@ -17,6 +18,7 @@ export default class I18n {
|
||||
cs: cs,
|
||||
es: es,
|
||||
fa: fa,
|
||||
fr: fr,
|
||||
};
|
||||
|
||||
this.update(art.option.i18n);
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
type I18nKeys = 'en' | 'zh-cn' | 'zh-tw' | 'pl' | 'cs' | 'es' | 'fa' | (string & Record<never, never>);
|
||||
type I18nKeys = 'en' | 'zh-cn' | 'zh-tw' | 'pl' | 'cs' | 'es' | 'fa' | 'fr' | (string & Record<never, never>);
|
||||
|
||||
type I18nValue = {
|
||||
'Video Info': string;
|
||||
|
||||
Reference in new issue
Block a user