NAME
CatalystX::I18N::TraitFor::Response - Adds the Content-Language header to the Catalyst::Response object
SYNOPSIS
package
MyApp::Catalyst;
CatalystX::I18N::Role::Base/
;
__PACKAGE__->apply_response_class_roles(
qw/CatalystX::I18N::TraitFor::Response/
);
DESCRIPTION
This role simply adds the 'Content-Language' header to your response.
METHODS
content_language
$c
->response->content_language(
'de_AT'
,
'en'
);
Accepts a list of languages. This header will be automatically set if you use it in conjunction with the CatalystX::I18N::Role::Base role.