Use localization API for all localization

Messages no longer has a static interface.