This seems really verbose, it'd be better to do something like:
{% set credits={'tr':'Translation provided by Sefa Keleş.',
                       'fr':'Traduction par FrenchMozilla'}

and then {{ credits[request.locale] }} assuming we even want this in the template... this seems like something you could do in the .lang file, really, by "translating" a stock string.