Skip to content

Commit e4083a1

Browse files
edouarddefunkt
authored andcommitted
Add Web Translate It service
1 parent ea958fa commit e4083a1

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed

CONTRIBUTORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,4 @@ Thanks to the following people for making this possible
2727
- W. Andrew Loe III
2828
- Grant Limberg
2929
- Jess Martin
30+
- Édouard Brière

docs/web_translate_it

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
Web Translate It
2+
================
3+
4+
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.
5+
6+
More info: https://webtranslateit.com/documentation/wikis/github-integration
7+
8+
Install Notes
9+
-------------
10+
11+
API Key is your project API key
12+
(you can find it in the project settings)

services/web_translate_it.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
service :web_translate_it do |data, payload|
2+
wti_url = URI.parse("https://webtranslateit.com/api/projects/#{data['api_key']}/refresh_files")
3+
Net::HTTP.post_form(wti_url, :payload => JSON.generate(payload))
4+
end

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy