Search code examples
facebook-graph-apifacebookuser-registration

How to translate facebook location


I´m using the FB:registration Plugin and it returns me as location an Array with something like Munich, Cologne, etc. I want them translated into german and save them as München or Köln.

How is this possible?


Solution

  • Try using the google translate API:

    https://www.googleapis.com/language/translate/v2?key=INSERT-YOUR-KEY&q=Munich%20Cologne&source=en&target=de