Default Texts

Splide allows you to modify all texts used in the slider. It's better to translate them into your language for the sake of accessibility.

Here is the list of default texts:

KeyText
prevPrevious slide
nextNext slide
firstGo to first slide
lastGo to last slide
slideXGo to slide %s
pageXGo to page %s
playStart autoplay
pausePause autoplay

Splide will replace the %s placeholder with a slide index or a page index.

Modifying Texts

To change the default texts, pass an object to the i18n option, and Splide merges them into the default collection:

new Splide( '#splide', {
i18n: {
prev: 'Previous slide',
next: 'Next slide',
}
} );
JavaScript

If you have multiple sliders, the Splide.defaults property may be useful because these texts are generally common to all sliders.

Splide.defaults = {
i18n: {
prev: 'Previous slide',
next: 'Next slide',
},
};
JavaScript