aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/ui.js
diff options
context:
space:
mode:
authorSam Potts <sam@potts.es>2018-03-27 10:36:08 +1100
committerSam Potts <sam@potts.es>2018-03-27 10:36:08 +1100
commit9c1bc6ab08e4fe68565a12f76b58684f4c6a8354 (patch)
treef36ad0d9fbd5591038bba52822bad9c21121636d /src/js/ui.js
parent3d2ba8c00942075ae387a09ab5aade1f680142c7 (diff)
downloadplyr-9c1bc6ab08e4fe68565a12f76b58684f4c6a8354.tar.lz
plyr-9c1bc6ab08e4fe68565a12f76b58684f4c6a8354.tar.xz
plyr-9c1bc6ab08e4fe68565a12f76b58684f4c6a8354.zip
Fixes for fast forward and issues with event.preventDefault()
Diffstat (limited to 'src/js/ui.js')
-rw-r--r--src/js/ui.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/js/ui.js b/src/js/ui.js
index a4f22413..a3b3754a 100644
--- a/src/js/ui.js
+++ b/src/js/ui.js
@@ -5,6 +5,7 @@
import utils from './utils';
import captions from './captions';
import controls from './controls';
+import i18n from './i18n';
const ui = {
addStyleHook() {
@@ -94,7 +95,7 @@ const ui = {
// Setup aria attribute for play and iframe title
setTitle() {
// Find the current text
- let label = this.config.i18n.play;
+ let label = i18n.get('play', this.config);
// If there's a media title set, use that for the label
if (utils.is.string(this.config.title) && !utils.is.empty(this.config.title)) {
@@ -123,7 +124,7 @@ const ui = {
// Default to media type
const title = !utils.is.empty(this.config.title) ? this.config.title : 'video';
- iframe.setAttribute('title', this.config.i18n.frameTitle.replace('{title}', title));
+ iframe.setAttribute('title', i18n.get('frameTitle', this.config));
}
},