fix: Upgrade TranslatableStringHelper service and create its interface.

This commit is contained in:
Pol Dellaiera
2021-11-18 09:10:13 +01:00
parent 9f06bc7126
commit cc9ce4167f
3 changed files with 55 additions and 76 deletions

View File

@@ -0,0 +1,17 @@
<?php
declare(strict_types=1);
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.
*/
public function localize(array $translatableStrings): ?string;
}