Skip to content
  • Julien Fastré's avatar
    create an helper + twig filter to show translatable string in current locale. · 57f2fa31
    Julien Fastré authored
    The twig filter is localize_translatable_string
    
    Example : {{ person.nationality|localize_translatable_string }}
    
    The helper may be called with $container->get('chill.main.helper.translatable_string'). The main function is ->localize(array $strings)
    
    Example:
    
    $container->get('chill.main.helper.translatable_string')->localize($country->getName()); #return the name in current locale
    
    close #299
    57f2fa31