Permalink
Browse files

Add Web Translate It service

  • Loading branch information...
1 parent ea958fa commit e4083a1b3a36623e2d5dfee5eae849cb47352027 @edouard edouard committed with defunkt Feb 9, 2010
Showing with 17 additions and 0 deletions.
  1. +1 −0 CONTRIBUTORS
  2. +12 −0 docs/web_translate_it
  3. +4 −0 services/web_translate_it.rb
View
@@ -27,3 +27,4 @@ Thanks to the following people for making this possible
- W. Andrew Loe III
- Grant Limberg
- Jess Martin
+- Édouard Brière
View
@@ -0,0 +1,12 @@
+Web Translate It
+================
+
+This service notify Web Translate It of pushes to your public repository. Web Translate It will then refresh the language file(s) if they have been updated.
+
+More info: https://webtranslateit.com/documentation/wikis/github-integration
+
+Install Notes
+-------------
+
+ API Key is your project API key
+ (you can find it in the project settings)
@@ -0,0 +1,4 @@
+service :web_translate_it do |data, payload|
+ wti_url = URI.parse("https://webtranslateit.com/api/projects/#{data['api_key']}/refresh_files")
+ Net::HTTP.post_form(wti_url, :payload => JSON.generate(payload))
+end

0 comments on commit e4083a1

Please sign in to comment.