Move translation macro to shared header file