Localization functions
Break into blocks
Pass the entire request object

We don't need to worry about backwards compat because the filter will be
renamed anyway

See https://github.com/WP-API/WP-API/pull/579/files#r19854535