$.mask.definitions['Z'] = "[АВЕКМНОРСТУХ]";
$('.gosnomer').mask('Z000ZZ000?');
$('.gosnomer').mask('Z000ZZ009', {
translation: {
'Z': {
pattern: /[АВЕКМНОРСТУХ]/, optional: false
}
}
});
<script type="text/javascript">
var userLang = navigator.language || navigator.userLanguage;
window.location = "https://my.site.ru/" + userLang;
</script>