add missing method to make 'to' action work
[catagits/catbook-code.git] / lib / LolCatalyst / Lite / Snippet.pm
index 01edbe0..abccf30 100644 (file)
@@ -12,6 +12,11 @@ sub translated {
   $self->_translator->translate($self->text);
 }
 
+sub translated_to {
+  my ($self, $to) = @_;
+  $self->_translator->translate_to($to, $self->text);
+}
+
 __PACKAGE__->meta->make_immutable;
 
 1;