add common base class

Refs https://github.com/cakephp/localized/commit/f4fae79a8fff92f62eddf827dd6fb4ade3fe3e35#commitcomment-5316140