Devaluation lowers the external value of the domestic currency. Foreigners need less of their currency to buy domestic goods, so exports become cheaper abroad. Domestic residents need more domestic currency to buy foreign goods, so imports become expensive.