validate localization code and make it part of cache key