How to beat inflation?

Earn in higher value currency and spend it in lower value currency.

E.g: Earn in USD and spend it in INR

Don’t trade in same currency...