You are returnreturning the translation in your function, not printing it. usingUsing <?php echo date_translation(); ?>
should solve the problem.
(given that functions.php is initiated at the time you use the function)
Edit: In order to follow Wordpress convention, you chouldshould call the function get_date_translation()
. If you want the function to echo the result instead, you should call it the_date_translation()