Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dfb36be6 authored by AVINASH GUSAIN's avatar AVINASH GUSAIN
Browse files

test translation

parent 894f281b
Loading
Loading
Loading
Loading
Loading
+10 −8
Original line number Diff line number Diff line
document.addEventListener('DOMContentLoaded', function() {
	// Select the #google-content element
    const googleContent = document.getElementById('google-content')

	// Create a new p element
    const translationKey = "If you see a \"Google hasn't verified this app\" message you can bypass it by clicking \"Advanced\". We're currently working on passing the certification Google demands to get rid of this message.";
    const translatedText = t(translationKey)
    
    // Debugging to see if the translation is correct
    console.log('Translated text:', translatedText)
    
    const newParagraph = document.createElement('p')
	newParagraph.textContent = '⚠️ ' + t("If you see a \"Google hasn't verified this app\" message you can bypass it by clicking \"Advanced\". We're currently working on passing the certification Google demands to get rid of this message.")
    newParagraph.textContent = '⚠️ ' + translatedText;

	// Insert the p element before the h3 element
    googleContent.insertBefore(newParagraph, googleContent.querySelector('h3'))

})