All texts internally used can be modified through an i18n
object. They should be made suited to the language of your site.
Defaults
Here is a list of default texts. "%s"
will be replaced a slide or page number.
prev | Previous slide |
---|---|
next | Next slide |
first | Go to first slide |
last | Go to last slide |
slideX | Go to slide %s |
pageX | Go to page %s |
play | Start autoplay |
pause | Pause autoplay |
All texts are currently used for accessibility enhancement.
Modifying i18n
Pass a new object to options as i18n. The given object will be merged to defaults.
new Splide( '#splide', {
i18n: {
prev: 'Previous slide',
next: 'Next slide',
}
} ).mount();