Consolidation of Foreign sub

Hi there, Can anyone advise how to treat intercompany loans during the consolidation of a foreign sub under ifrs? I am trying to calculate the fx gain/loss that goes to equity on translation of the subs net assets but I’m unsure what adjustments ...