Localization

Localize all text inside the player

You can localize all text inside your Targetvideo player by setting up a localization object in the configuration parameters in the player's embed code.
With this object in place you can expand on basic translation capabilities of a player and add custom translations of specific words.

Setup a localization object with a Targetvideo player example

$bp("myDiv", {"id":"PLAYER_ID","width":"640","height":"360","video":"VIDEO_ID",
 "translate": {
	"ima_locale": "en",
	"loading_ad": "Loading ad...",
	"advertisement": "Advertisement",
	"ad_will_start": "Ad will start soon",
	"skip_ad": "Skip Ad",
	"skip_in": "Skip In",
	"toggle_play": "Toggle Playback",
	"prev_video": "Previous Video",
	"next_video": "Next Video",
	"toggle_hd": "Toggle Video Quality",
	"toggle_fullscreen": "Toggle Fullscreen",
	"toggle_mute": "Toggle Mute Video",
	"toggle_captions": "Toggle Captions",
	"play": "Play Video",
	"share": "Share Video",
	"playlist": "View Playlist",
	"pause": "Pause Video",
	"repeat": "Repeat",
	"open_brand": "Open Brand URL",
	"age_text": "The content in this video requires age verification, please enter your date of birth below:",
	"age_confirm": "CONFIRM",
	"age_not_valid": "You do not meet the minimum age requirement to view this content.",
	"close": "Close",
	"embed_code": "Embed Code",
	"share_link": "Share Link",
	"share_link_copied": "Link Copied",
	"share_on": "Share On",
    "read_more": "Read more!",
    "adblocker": "AD BLOCKER DETECTED!<br />We have detected that you are using an ad blocker which is preventing the player to display. To support this website and our publishers we ask you to please turn your ad blocker off so that you may enjoy this great content."
    "geo_error": "Video not available in your country",
	"video_not_published_error": "Video is not published yet",
  "video_not_exist_error": "Video does not exist",
	"videolist_empty_error": "Video list is empty",
	"video_ban_error": "Video is banned",
	"encoding_process_error": "Video encoding in progress",
	"carousel_not_exist_error":"Carousel does not exist"
}
});

Explanation of parameters

Parameter nameDescription
ima_locale stringGoogle IMA specific setting for localizing ads pushed through Google IMA SDK
loading_ad stringSet custom text for loading an ad
advertisement stringAdvertisement notice inside the player while a VAST ad is displaying
ad_will_start stringInfo on when a mid roll will appear inside the player
skip_ad stringText for the skip ad button inside the player
skip_in stringSkip in ... text when it countdowns to 0 when a user can skip an ad
toggle_play stringMouse over hover on the player button
prev_video stringMouse over hover on the previous video button
next_video stringMouse over hover on the next video button
toggle_hd stringMouse over hover on the HD toggle button
toggle_fullscreen stringMouse over hover on the player's fullscreen button
toggle_mute stringMouse over hover on the player's mute button
toggle_captions stringMouse over hover on the player's closed captions button
play stringSet custom text for play video
share stringSet custom text for share video
playlist stringSet custom text for the playlist button
pause stringSet custom text for pause video
repeat stringSet custom text for replay/repeat a video
open_brand stringSet custom text for mouse over on custom logo set
age_text stringSet custom text for age gate verification
age_confirm stringSet custom text for confirm button for age gate verification
age_not_valid stringSet custom text if user does not make age verification
close stringSet custom text for close
embed_code stringSet custom text for embed code
share_link stringSet custom text for share link
share_link_copied stringSet custom text for share link copied
share_on stringSet custom text for share on
read_more stringSet custom Read more text on video carousel units CTA buttons
adblocker stringSet custom text when player gets blocked by an ad blocker
geo_error stringSet custom text when video is not available in specific country
video_not_published_error stringSet custom text when video is not published yet.
video_not_published_error stringSet custom text when video is not published yet
video_not_exist_error stringSet custom text when video does not exist
videolist_empty_error stringSet custom text when video list is empty
video_ban_error stringSet custom text when video is banned
encoding_process_error stringSet custom text while video is encoding
carousel_not_exist_error stringSet custom text when carousel unit does not exist