I am creating a phone application for my website using cordova. I want to translate my website between Arabic and English.I implement it using google translator API in a java script.This is the code that I used
<script type="text/javascript">
function googleTranslateElementInit() {
new google.translate.TranslateElement({pageLanguage: '', includedLanguages: 'ar,en'}, 'google_translate_element');
}
</script>
<script type="text/javascript" src="https://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
This code works well for my index.html page(home page).But the problem is translation only take place on my index.html page.When I redirect to any other pages from home page,I still remains in English.How can I translate entire pages in my application