Update provider.js

Cache the translated value for faster $digest-ing