| 1 | package Translate::Fluent::Elements::Text; | ||
| 2 | |||
| 3 | use Moo; | ||
| 4 | extends 'Translate::Fluent::Elements::Base'; | ||
| 5 | |||
| 6 | has text => ( | ||
| 7 | is => 'ro', | ||
| 8 | default => sub { undef }, | ||
| 9 | ); | ||
| 10 | |||
| 11 | |||
| 12 | sub translate { | ||
| 13 | my ($self, $variables) = @_; | ||
| 14 | |||
| 15 | return $self->text; | ||
| 16 | } | ||
| 17 | |||
| 18 | 1; | ||
| 19 | __END__ |