We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make a script that executes DOM content load. the user needs to include it using the async defer attributes. DOMContentLoaded() .
DOMContentLoaded()
generate a script version of the JSON translation objects that reads each languages translation as a variable with that language code.
finding the visitor langugae preference
<script> function myFunction() { var x = "Language of the browser: " + navigator.language; document.getElementById("demo").innerHTML = x; } </script>
then get the translation object according to browser locale and replace each elements textContent with the object value.
document.getElementById('consultaspanama-btn').textContent
The text was updated successfully, but these errors were encountered:
No branches or pull requests
make a script that executes DOM content load. the user needs to include it using the async defer attributes.
DOMContentLoaded()
.generate a script version of the JSON translation objects that reads each languages translation as a variable with that language code.
finding the visitor langugae preference
then get the translation object according to browser locale and replace each elements textContent with the object value.
document.getElementById('consultaspanama-btn').textContent
The text was updated successfully, but these errors were encountered: