Google Translate API for .NET 0.1 Release!

Update 1

Google Translate API for .NET updated to 0.1.1

  • Add more languages.
  • Fixed some bugs.


Now this project is a part of the Google APIs for .NET which include more Google APIs such as Search API etc.

I will never update here anymore.

You can get the latest source code and released files at the Google APIs for .NET.

I’ve just released an updated CLS compatible version of Google Translated API there. (CLS compatible version)


It’s my first Open Source project.

Provides a simple, unofficial, .NET Framework API for using Google Translate.

Support 20+ languages.

It can translate text or html format, and can detect the language of the given text.

Now implement all the function that google has launched.

Example :

class Example
    public static void Main()
        string text = "我喜欢跑步。";
        string translated = Translator.Translate(text, Language.Chinese_Simplified, Language.English);
        // I like running.

More result:

Arabic صور اداة ترجمة.
Bulgarian Google превежда инструмент.
Chinese Simplified Google翻译工具。
Chinese Traditional Google翻譯工具。
Croatian Google Translate tool.
Czech Google přeloží nástroje.
Danish Google oversætter værktøj.
Dutch Google vertalen tool.
English Google translate tool.
Finnish Google kääntää työkalu.
French Outil de traduction Google.
German Google Translate-Tool.
Greek Google μεταφράζει εργαλείο.
Hindi Google अनुवाद उपकरण है .
Italian Google Translate strumento.
Japanese Google翻訳ツールを使用します。
Korean 구글 번역 도구를합니다.
Norwegian Google Translate.
Polish Narzędzie Google tłumaczyć.
Portuguese Traduz Google ferramenta.
Romanian Google traduce instrument.
Russian Google переводит инструмент.
Spanish Traductor Google herramienta.
Swedish Google översätter verktyg
You can download here:

Tags: , , , , ,

43 Responses to “Google Translate API for .NET 0.1 Release!”

  1. BK Says:

    I tried this in a C# project and it worked great. The translate() function is not accessible in VB.NET however. When I use the exact same call as I did in C#, I am told: ‘Translate’ is ambiguous because multiple kinds of members with this name exist in class ‘Google.API.Translate.Translator’.

  2. iron9light Says:

    There’s a CLSCompliant version.
    Tell me if anyone want it.

    Change the # => @ in the email address above.

  3. Google Search API for .NET 0.1 alpha « Iron9light’s Tech Weblog Says:

    […] Iron9light’s Tech Weblog Just another weblog « Google Translate API for .NET 0.1 Release! […]

  4. John Says:

    I get the same as BK.
    ‘Language’ is ambiguous in the namespace ‘Google.API’.

  5. iron9light Says:

    Now this project is a part of the Google APIs for .NET( which include more Google APIs such as Search API etc.
    I will never update here anymore.
    You can get the latest source code and released files at the Google APIs for .NET.
    I’ve just released an updated CLS compatible version of Google Translated API there.

  6. Paul Says:

    thanks 4 the translate API; i’ve been strugling to do the same thing with the webclient; simple can get the encoding right. I have made a change to
    you’re source; makeing GetLanguage() and GetLanguageCode() public. Which would be nice if you could change. Other than that brilliant.

  7. iron9light Says:

    To Paul,
    Thanks for your advice.
    As a software package, you always need to consider which one will be explicit or not. This is a problem.
    Here, I made them invisible cause I don’t think other one will use them directly.
    Luckily, it’s open source, and it’s under MIT.
    You can change it as you wish. Yes, you can.

  8. Tarik Says:

    What I have to do to make in work in Web Application for 2.0. Is it possible?

  9. iron9light Says:

    To Tarik:
    1. Install .NET 3.5 (NOT update your ASP.NET project).
    2. Put the two dll files into the app’s folder.
    3. Add reference to “GoogleTranslateAPI.dll”
    4. Using the three static methods in Translator to do anything you want.

  10. molondon Says:

    Hi Great thing this, i would like to incorporate it into my free tools at my web address,

    i was wondering if you could implement a dictionary style interface as well as the translate, i know if you type something in google it will come back with whether it is noun verb etc and give example sentences.

    Please try my tools and let me know what you think, there are a few bugs but am working on them when i get chance.

    Cheers Mo

  11. Dinesh Says:

    I have been using translater API using ASP .net 3.5.
    For this I am getting following exception.Also got some security exception. Basically I am not very good in .net as Java Developer.
    So I tried to run your API using .Net and then intigrate it in Java.
    A first chance exception of type ‘Google.API.GoogleAPIException occurred in GoogleTranslateAPI.dll

    • iron9light Says:

      I need more detail of this exception (inner exception and others).
      If you just use it on your web page, use Google’s official javascript api directly.

  12. Dinesh Says:

    Thanks a lot. I have solved exceptions and code working file..
    Now I have wrapped this dll with another dll (which internally calls googles translators dll). This dll integrated with java program using Java native Interfaces(JNI). Then when java program runs it gives this exception ..
    The specified procedure could not be found in Dll.
    For doing this I have used C#.

  13. Dinesh Chothe Says:

    I have solved the problem by using Googles Java based Translate API. 🙂
    Dinesh Chothe

  14. senthil Says:

    kindly send an sample program how to use this translator in 3.5 or mvc

    thanks in advance


    • iron9light Says:

      Just some static methods.
      There’re some example in the doc.

      If you use it for your web ui, you should use the google javascript api directly, especially for your mvc.

  15. senthil Says:

    hi iron9light,

    send me an example using google translator in

    thanks in advance


  16. Google Search API for .NET 0.2 beta and Google Translate API for .NET 0.2 beta released « Iron9light’s Tech Weblog Says:

    […] Indeed, 99+% of source have been finished when I release the Google Search API for .NET 0.1 and Google Translate API for .NET 0.1.1. […]

  17. ایمان Says:

    Hey, Good work. when i’m trying to translate from persian to any language or to Persian from any language, it says “Can not translate this language to “Persian””.

    this is because you ar not support persian language in this api or …?

  18. Ken Says:

    Hi, it is posible to make it support for .Net Framework 2 instead of 3.5?

  19. Piyush Says:

    Great Work. but some of the languages doesn’t Support

    How to get support of rest of the languages

  20. Rakesh Sharma Says:

    Its good but takeing time to translate where data coming from database

    can you help me

  21. Sangeetha Says:

    I need to convert the whole content of a page when it is loaded. How can I replace the string ‘text’ to the whole content? I mean how to get the content of the whole page as string in order to pass it as the parameter to the translate method?

  22. pip Says:

    Great Job,thanks.

  23. Jeremiah Gatong Says:

    Is there way to show the list of words that have no translation in a series of Text.

  24. Complete Kitchen · Says:

    google translator is great but sometimes there are so many errors on the translation `.:

  25. Michael Jones Says:

    After study a few of the blog posts on your web site now, and I truly like your way of blogging. I bookmarked it to my bookmark web site listing and will probably be checking back soon. Pls check out my website as well and let me know what you think.

  26. traduction technique Says:

    traduction technique…

    […]Google Translate API for .NET 0.1 Release! « Iron9light’s Tech Weblog[…]…

  27. all-for-Hack Says:


    […]Google Translate API for .NET 0.1 Release! « Iron9light’s Tech Weblog[…]…

  28. Akber Says:

    Sir, i am trying to use this vs 2003 1.1. but it says it is not valid api, I downloaded and tried all your versions and also sent you an email too

  29. Evonne Safko Says:

    Your information is extremely helpful.|

  30. investor adviser Says:

    You have brought up a very superb points I simply have to tell you that I like your blogs post. Thank you! I enjoyed your article.

  31. Jesse Grillo Says:

    I am bored to death at work so I decided to browse your posts on my iphone during lunch break. I really love your writing style and how well you express your thoughts.

  32. Says:

    Physical stamina. She is an ICON accredited conservator.

  33. obscured privacy glass installation Says:

    Often when we need a glazier it is urgent.

  34. dehydrated air Says:

    Local Glaziers serving Solihull. Communication.

  35. 6.4mm glass Says:

    They fit glass for tabletops and display cases.

  36. non profit franchise opportunities Says:

    Admiring the commitment you put into your site and in depth information you present. It’s nice to come across a blog every once in a while that isn’t the same out of date rehashed material. Wonderful read! I’ve bookmarked your site and I’m adding your RSS feeds to my Google account.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: