Assuming am trying to send a post request for my application from wordpress. I know how to do that via wordpress function.
Here is my question: lets assume I want translate a certain words in a variable to German. Does wordpress has a builting API that I can leverage or I should come up with my own php way via internationalization.
<?php
$post_to_translate ="Hello am wordpress fans";
// then post translated data to database
?>