Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add Web Translate It service

  • Loading branch information...
commit e4083a1b3a36623e2d5dfee5eae849cb47352027 1 parent ea958fa
@edouard edouard authored defunkt committed
View
1  CONTRIBUTORS
@@ -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
12 docs/web_translate_it
@@ -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)
View
4 services/web_translate_it.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.