吃饭就吐是什么原因| 排卵期是什么时候开始算| 黄色五行属什么| 为什么在| 阴道炎用什么药| 穿裙子搭配什么鞋子| 睡觉时间长是什么原因| 女性下面水少是什么原因| 胸口痛挂什么科| 肾有结晶是什么意思| 银行降息意味着什么| 凝血是什么意思| 双鱼和什么星座最配对| 瘦了是什么原因| 脑死亡是什么意思| 九月二十三是什么星座| 有点尿血是什么原因| 梦到别人给钱是什么意思| 4.28是什么星座| 王姓为什么出不了皇帝| 小月子吃什么水果| 骨折吃什么恢复的快| 做宫腔镜检查需要提前做什么准备| 拉屎为什么是黑色的| 价值是什么| 复方木尼孜其颗粒治什么病| 心神不定是什么生肖| 病毒性咽喉炎吃什么药| 宠物兔吃什么| 唐宋元明清前面是什么| 林冲为什么叫豹子头| 空腔是什么意思| 支原体弱阳性是什么意思| 董承和董卓什么关系| 11月16是什么星座| 钻石王老五是什么意思| 挂什么科| 久咳不愈是什么原因| 海关是什么意思| 父亲节出什么生肖| 过江龙是什么意思| hcg偏高是什么原因| 肚子痛拉肚子吃什么药| 玉五行属性是什么| 晚上胃疼是什么原因| 一个口一个塞念什么| 书五行属性是什么| b超和阴超有什么区别| 鼻子出汗是什么原因| 干咳嗽喉咙痒是什么原因| 粉色裤子配什么上衣好看| 甲钴胺是什么| 2019年出生属什么生肖| 眩晕挂号挂什么科| 两肺纹理增粗是什么意思| app是什么意思啊| 阿弥陀佛是什么意思| 大面念什么| 四风指什么| 过期的酸奶有什么用| 四两拨千斤是什么意思| 凝血酶是什么| fla是什么牌子| 月经一个月来两次什么原因| 135是什么意思| 阔绰什么意思| 怀孕药流吃什么药| 益生元是什么| 什么是矢量| 店招是什么意思| 金星原名叫什么| 颈部淋巴结肿大吃什么药| 猫可以吃什么水果| 头热是什么原因| 龟头流脓小便刺痛吃什么药| 处女座属于什么星象| 2017年五行属什么| 男士生育检查挂什么科| 调休是什么意思| 1990属马佩戴什么最佳| 腿为什么会抽筋| 心脏搭桥是什么病| 吃什么水果可以美白| 黄柏的功效与作用是什么| 掉头发什么原因| 保重适合对什么人说| 什么病不能吃秋葵| 1月22是什么星座| 7月30日什么星座| 做梦梦见老婆出轨是什么意思| 骨质疏松吃什么钙片好| 口苦是什么问题| 困是什么原因| 螃蟹为什么吐泡泡| 检查胃应该挂什么科| 外阴白斑用什么药最好| 吃什么可以散结节| 清真是什么意思啊| 鸟字旁有什么字| 盛世美颜是什么意思| 浅笑嫣然是什么意思| 一什么叮咛| 路冲是什么意思| 艾草有什么功效| 五月二十日是什么星座| 不动产是什么意思| 择期手术是什么意思| 宝宝肠胃炎吃什么药| 腰突挂什么科| 结节性红斑是什么原因引起的| 梦见手机丢了又找到了是什么意思| 吃什么促进恶露排干净| 什么是碱性水| 节瓜是什么瓜| 手指关节痛挂什么科| 苯磺酸氨氯地平片什么时候吃| 痛风买什么药| 肺实变是什么意思| 88年什么命| 什么时候满月| 月经量少是什么原因| 1953年属蛇的是什么命| 泳帽的作用是什么| 什么是生长纹| 处男是什么意思| 脚底板发热是什么原因| 湿热内蕴是什么意思| 眼底出血吃什么药| 什么水果去火| 包含是什么意思| 咽喉有异物感吃什么药| 腐败什么意思| 贫血吃什么药| 手腕疼挂什么科| 血脂高吃什么食物| 脚麻吃什么药| 舌苔厚白是什么原因| 桃李满天下是什么生肖| 大便带油花是什么原因| 眼开大财主是什么生肖| 明天是什么日子| cd3cd4cd8都代表什么| 长白班什么意思| 丝瓜有什么功效| 回族人为什么不吃猪肉| 转什么为什么成语| af什么意思| 尿白细胞定量高是什么意思| 拉肚子应该吃什么| 心魔是什么意思| 嘴角上扬是什么意思| 皮下男是什么意思| 开业送什么好| 男人前列腺炎有什么症状表现| 身上长癣是什么原因引起的| 枕大神经痛吃什么药| 太阳线是什么意思| 间质性肺炎是什么意思| 女人胆固醇高什么原因| 维生素b6是什么| 女性掉发严重是什么原因| 什么是独角兽企业| ofs是什么意思| 牛顿三大定律是什么| 晚上夜尿多吃什么药| 肩袖损伤吃什么药| 九五年属什么生肖| 梦见戴帽子是什么预兆| 什么叫黑科技| 什么的春天| 补气血吃什么药效果好| 查输卵管通不通做什么检查| 身上没力气没劲是什么原因| 月亮星座是什么| er是什么意思| 不拉屎是什么原因| 韭菜补什么| 肚子左下方是什么器官| 什么水果对皮肤好| 霏字五行属什么| 血红蛋白是什么意思| 下身瘙痒用什么药| 女人梦见猫是什么预兆| 七月十五有什么忌讳| 桑蚕丝被有什么好处| 肠易激综合征吃什么中成药| 什么的食物| 干你什么事| 千里马比喻什么人| 黄体酮吃了有什么副作用| 怕热爱出汗是什么原因| 怀孕初期不能吃什么| 什么茶不能喝| 吃东西恶心想吐是什么原因| 新房送什么礼物好| dw手表是什么档次| 照猫画虎什么意思| poscer是什么牌子的手表| 小腿酸胀吃什么药| 澳大利亚属于什么气候| 苯丙酮尿症是什么| 痛风该吃什么药好得快| mm是什么病| 土霉素治什么病| 治疗脚气用什么药| 理工男是什么意思啊| 羊奶和牛奶有什么区别| 啪啪是什么意思| 孕妇喝什么茶对胎儿好| pd是什么元素| 女性盆腔炎什么症状| 股票加杠杆是什么意思| 黄骨鱼是什么鱼| 对什么都不感兴趣| 今年25岁属什么生肖的| 四月九号是什么星座| 苹果a1661是什么型号| 射手座喜欢什么样的女生| 有尿意但是尿不出来是什么原因| 家人是什么意思| 秦始皇是什么民族| 手上长小水泡很痒是什么原因| 咖啡有什么功效| 深覆合是什么样子的| 5月31号是什么星座| 杀虫剂中毒有什么症状| 胃绞疼是什么原因| 梦见盖房子是什么预兆| 1975年属兔是什么命| 偏光和非偏光有什么区别| 唐筛临界风险是什么意思| 脑子萎缩是什么原因造成的| 故人什么意思| 深度水解奶粉是什么意思| 亦的意思是什么| 醋泡脚有什么好处| 守护者是什么意思| 只欠东风的上一句是什么| 绞丝旁一个奇念什么| 梦见自己大出血是什么征兆| 映景是什么意思| 八月十五是什么节日| 宝宝流鼻血是什么原因| 天降甘霖什么意思| 女生diy什么意思| 面色晄白是什么意思| 你姓什么| 正司级是什么级别| 煲什么汤去湿气最好| 肉刺用什么药膏能治好| 梦见打死猫有什么预兆| 夏吃姜有什么好处| 开光什么意思| 大腿两侧疼痛什么原因| 吃什么有助于消化| 白粉病用什么药| 十点是什么时辰| 扁桃体经常发炎是什么原因| 蝉蜕有什么功效| 客片什么意思| 眼睛有痣代表什么| mil是什么单位| 相火是什么意思| 什么的木筏| 百度

第四届世界互联网大会

Video.js Guides

百度 “我就是要在石头缝里栽树,在荒山上描绘山水。

These guides cover a range of topics for users of Video.js

Languages

Video.js includes localization support to present text in a language other than the default English where appropriate.

For an up-to-date list of the languages Video.js supports, see the languages folder (lang). Some translations may be less complete than others - see the translations needed doc for a table of strings that are missing from the translations available. Contributions are welcome to update those that are incomplete.

Using Video.js Languages

Video.js ships with multiple translations (in dist/lang/) in JavaScript files. Add the lang script for each language you need to support. Each of these files can be included in a web page to provide support for that language in all Video.js players:

<script src="//example.com/path/to/video.min.js"></script>
<script src="//example.com/path/to/lang/es.js"></script>

Contributing to Video.js Translations

We welcome new translations and improvements to existing ones! Please see the contributing document to get started contributing to Video.js and continue reading for specifics on how to contribute to translations of Video.js.

JSON Format

Video.js uses a JSON object to describe a language, where the keys are English and the values are the target language. For example, a Spanish translation might look like this:

{
  "Play": "Reproducción",
  "Pause": "Pausa",
  "Current Time": "Tiempo reproducido",
  "Duration": "Duración total",
  "Remaining Time": "Tiempo restante",
}

File Naming

Translations are found in the lang/ directory.

Each file's name should be the standard language code that is most appropriate, with a .json extension. For example, "es.json" for Spanish or "zh-CN.json" for simplified Chinese.

Updating an Existing Translation

If there is a missing translation, mistake, or room for improvement in an existing translation, don't hesitate to open a pull request!

  1. Edit the relevant JSON file and make the necessary changes.
  2. Verify the language compiles by running the language specific build npm run build:lang or the full build npm run build.
  3. Verify the translation appears properly in the player UI.
  4. Run npm run docs:lang to update the missing translation document.
  5. Commit and open a pull request on GitHub.

Writing a New Translation

The process for writing an entirely new translation is virtually identical to the process for updating an existing translation except that the new translation JSON file needs to be created.

The template for new language files is the English file (lang/en.json). This file is always up-to-date with strings that need translations.

The first step to writing a new translation is to copy the English file:

cp lang/en.json lang/${NEW_LANG_CODE}.json

Otherwise, the process is the same as updating an existing translation.

Adding Languages via the API

In addition to the stand-alone scripts provided by Video.js, the API supports manual definition of new languages via the addLanguage method. It takes two arguments: the standard language code and a language definition object.

videojs.addLanguage('es', {
  Play: 'Reproducción',
  Pause: 'Pausa',
  'Current Time': 'Tiempo reproducido',
  'Duration': 'Duración total',
  'Remaining Time': 'Tiempo restante',
  ...
});

addLanguage() will overwrite existing translations if the object includes strings previously translated. However text that has already been localised will not be updated after generation.

Per-Player Translations

In addition to providing languages to Video.js itself, individual Player instances can be provided custom language support via the languages option:

// Provide a custom definition of Spanish to this player.
videojs('my-player', {
  languages: {
    es: {
      Play: 'Reproducir'
    }
  }
});

Setting Player Language

The language used by a player instance may be set via the language option:

// Set the language to Spanish for this player.
videojs('my-player', {
  language: 'es'
});

The language method of the player can be used to set the language after instantiation with language('es'). However, this is generally not useful as it does not update text that is already in place.

Determining Player Language

The player language is set to one of the following in descending priority:

  • The language specified in options
  • The language specified by a lang attribute on the player element.
  • The language specified by the closest parent element with a lang attribute, up to and including the <html> element.
  • The browser language preference; the first language if more than one is configured
  • English

Internal Language Selection

  • Language codes are considered case-insensitively (e.g. en-US == en-us).
  • If there is no match for a language code with a subcode (e.g. en-us), a match for the primary code (e.g. en) is used if available.

References

For information on translation/localization in plugins, see the plugins guide.

Standard languages codes are defined by the IANA.

For all existing/supported languages, please see the languages folder (lang/) folder located in the project root.

j是什么 层出不穷什么意思 腺体增生是什么意思 画画可以画什么 99年属什么
补充胶原蛋白吃什么最好 睡觉憋气是什么原因引起的 萎缩性阴道炎用什么药 淋巴肿了吃什么消炎药 日值四离是什么意思
主诉是什么意思 什么情况会导致月经推迟不来 什么是纤维化 浪子是什么意思 梦见黑熊是什么预兆
nfl是什么意思 支气管炎性改变是什么意思 禁欲什么意思 a型血和ab型血生的孩子是什么血型 下巴脱臼是什么感觉
肠胃紊乱什么症状hcv9jop0ns9r.cn 栀子有什么作用与功效hcv8jop5ns9r.cn 剖腹产第三天可以吃什么hcv8jop5ns6r.cn 令加瓦读什么adwl56.com 哀转久绝的绝什么意思fenrenren.com
为什么会一直打嗝hcv9jop5ns6r.cn 吹泡泡什么意思0735v.com 晚上喝蜂蜜水有什么好处hcv9jop6ns7r.cn 为什么小腿会抽筋hcv8jop6ns5r.cn 首战告捷什么意思hcv8jop8ns4r.cn
秋葵不能和什么一起吃hcv9jop4ns6r.cn 心脏问题挂什么科hcv9jop2ns1r.cn 阳虚水泛是什么症状hcv8jop6ns5r.cn 狗可以吃什么hcv8jop7ns3r.cn 一个木一个号念什么hcv8jop7ns3r.cn
头皮屑多是什么原因引起的hcv9jop6ns3r.cn 什么时候不能喷芸苔素hcv9jop4ns0r.cn 孩子为什么长不高hcv9jop1ns8r.cn 心里不舒服挂什么科weuuu.com 甘少一横读什么hcv9jop6ns5r.cn
百度