mirror of
https://github.com/videojs/video.js.git
synced 2025-02-08 12:05:47 +02:00
add plugin localization doc
This commit is contained in:
parent
2683c74c69
commit
9141a6256f
@ -122,6 +122,15 @@ During a Video.js player instantiation you can force it to localize to a specifi
|
||||
</video>
|
||||
```
|
||||
|
||||
Localization in Plugins
|
||||
-----------------------
|
||||
|
||||
When you're developing a plugin, you can also introduce new localized strings. Simply wrap the string with the `localize` function:
|
||||
|
||||
```javascript
|
||||
var details = '<div class="vjs-errors-details">' + this.localize('Technical details') + '</div>';
|
||||
```
|
||||
|
||||
Language Codes
|
||||
--------------
|
||||
The following is a list of official language codes.
|
||||
|
@ -43,4 +43,4 @@ If you've already initialized your video tag, you can activate a plugin at any t
|
||||
|
||||
video.examplePlugin({ exampleOption: true });
|
||||
|
||||
That's it. Head on over to the Video.js wiki and add your plugin to the list so everyone else can check it out.
|
||||
That's it. Head on over to the [Video.js wiki](https://github.com/videojs/video.js/wiki/Plugins) and add your plugin to the list so everyone else can check it out.
|
||||
|
Loading…
x
Reference in New Issue
Block a user