Page 1 of 1

Translate back button text

Posted: Mon Mar 24, 2014 10:18 am
by Sophie

Hello,

My app provides UI in several languages using the i18next plug-in.
It works fine but I wonder how it is possible to translate the text of the back button in the header.

Thank you in advance

Sophie.


Translate back button text

Posted: Mon Mar 24, 2014 11:44 am
by Maryna Brodina

Hello!
Looks like it's easier to change text on button using JS on page Load prevar backTransl = {"en-EN": "Back", "es-ES": "espalda"};
$('[data-rel="back"]').text(backTransl[lang]);/pre where lang is variable where language name is stored, for example "es-ES"