/* скрываем ME301 меню на мобайле */
@media screen and (max-width: 980px) {
.t228 {
display: none!important;
}
}
/* убираем видимость мобайл меню на десктопе */
@media screen and (min-width: 980px) {
#rec333333333, #rec444444444 {
display: none!important;
}
}
</style>
<script>
// скрываем одну из версий меню в хедере
const ids = /ru$/.test(window.location.pathname) ? ['rec111111111', 'rec333333333'] : ['rec22222222', 'rec444444444'];
ids.forEach((id) => document.getElementById(id).style.display = 'none');
ids.forEach((id) => $('#' + id).hide());
// скрываем одну из версий меню в футере
const id = /ru$/.test(window.location.pathname) ? 'rec555555555' : 'rec666666666';
document.querySelector('#' + id).style.display = 'none';
$('#' + id).hide();
// добавляем хвост ru
$('div.t228__right_langs_lang a').last().attr('href', window.location.pathname + 'ru');
<!-- мобайл меню -->
$('div.t280__lang a').last().attr('href', window.location.pathname + 'ru');
// удаляем хвост ru
$('div.t228__right_langs_lang a').first().attr('href', window.location.pathname.slice(0, -2));
<!-- мобайл меню -->
$('div.t280__lang a').first().attr('href', window.location.pathname.slice(0, -2));
</script>