How to adjust the header for language switch in Expanse theme?

So even though I’ve been developing for a while, I’m extremely new when it comes to liquid so this question is probably fairly simple (I might be wrong though). But just for some quick background information, I am currently using two Apps in my Expanse theme store. Meteor Mega Menus and Translation Lab. I intend on having just one mega menu (which already works perfectly when the store language is English) in the header. The problem is when switching to arabic, the URL of the website changes which then displays the original menu made on shopify instead of the mega menu created through the mega menu app. So the solution was to create 2 mega menus in the app, one for each language, and then write a little custom code that would display the proper mega menu depending on which language the user is on. Here is what I ended up with :

{% if [request.locale.name](http://request.locale.name/) == 'English' %}
  {% for link in linklists.header-menu-english.links %}
      <a href="{{ link.url }}">{{ link.title }}</a>
  {% endfor %}
{% else %}
  {% for link in linklists.header-menu-arabic.links %}
      <a href="{{ link.url }}">{{ link.title }}</a>
  {% endfor %}
{% endif %}

Now this would go somewhere in the sections header.liquid file, but the only reference to linklists I found there was in the second line of the file which goes :

{%- liquid
assign main_menu = linklists[section.settings.main_menu_link_list]

assign logo_alignment = ‘left’
assign nav_position = ‘below’

. . .

So my question is how exactly in this file would this bit of code be applied? Although I have decent html, css, javascript knowledge, it’s really hard for me to tell how complicated/simple this would be on liquid, even though the logic of it is fairly simple right? I’d greatly appreciate any help here. Thank you!