Rework translations support based on metaclass