Translation gain/loss on income statement under temporal method

I know how to calculate translation gain/loss for the income statement under the temporal method when retained earnings in the previous year is zero. How do we treat retained earnings in the previous year if it’s not zero for purposes of calculating translation gain/loss in the current year?