While defining Parsley's locale in the backend like this:
Parsley.setLocale('de');
How can I get the locale value ('de' for example) in the front-end using javascript/jquery?
I tried a function like getLocale()... but it doesn't seems to work.
NOTE: I dont have access to the backend.
<script src="jquery.js"></script>
<script src="i18n/fr.js"></script>
<script src="i18n/it.js"></script>
<script src="parsley.min.js"></script>
<script type="text/javascript">
window.ParsleyValidator.setLocale('fr');
</script>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.