src/Viserio/Component/Translation/Translator.php
protected function applyFilters(string $translation): string
    {
        if (\count($this->filters) === 0) {
            return $translation;
        }

        foreach ($this->filters as $filter) {
            $translation = $filter($translation);
        }

        return $translation;
    }
protected function applyFilters(string $translation): string
    {
        if (\count($this->filters) === 0) {
            return $translation;
        }

        foreach ($this->filters as $filter) {
            $translation = $filter($translation);
        }

        return $translation;
    }
Apply filter on string.

@param string $translation

@return string