Add I18n.locale for views cache

[Fixes #4673]