chill-bundles/src/Bundle/ChillMainBundle/Templating/TranslatableStringHelperInterface.php
2021-05-06 21:37:54 +02:00

20 lines
498 B
PHP

<?php
namespace Chill\MainBundle\Templating;
interface TranslatableStringHelperInterface
{
/**
* return the string in current locale if it exists.
*
* If it does not exists; return the name in the first language available.
*
* Return a blank string if any strings are available.
* Return NULL if $translatableString is NULL
*
* @param array $translatableStrings
* @return string
*/
public function localize(array $translatableStrings);
}