Add caching to locale actions and basic tests