Agile localization for tech companies. Crowdin is a cloud-based solution that streamlines localization management for your team. It's the perfect place to effectively manage all of your multilingual content.
Go to siteThe Crowdin API offers a way to streamline localization processes by enabling automated interactions with Crowdin projects. With this API on Pipedream, you can create workflows that manage translations, coordinate with translators, and sync localized content across your apps. It becomes easy to upload new source files, download translations, manage projects, and crowdsource translations, all within the Pipedream ecosystem.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
crowdin: {
type: "app",
app: "crowdin",
}
},
async run({steps, $}) {
return await axios($, {
// If you are using Crowdin Enterprise, your API URL
// should be https://{your_org_domain}.api.crowdin.com/
url: `https://api.crowdin.com/api/v2/user`,
headers: {
Authorization: `Bearer ${this.crowdin.$auth.oauth_access_token}`,
},
})
},
})
Automate Source File Updates: Automatically upload new source files to your Crowdin project when you push to a GitHub repository. Combine GitHub and Crowdin on Pipedream to keep your localization files in sync with your codebase.
Translation Status Updates: Set up a workflow to notify your team via Slack whenever a translation reaches a certain completion percentage. This can help in keeping track of project progress and planning release schedules accordingly.
Dynamic Content Localization: Use the Crowdin API with a CMS like Contentful to fetch new content and push it to Crowdin for translation. Once translated, the workflow can update the CMS with the localized versions, ensuring your website or app content stays current in all languages.
Performs machine translation of the uploaded files. See the documentation
Crowdin uses OAuth authentication. When you connect your Crowdin account, Pipedream will open a popup window where you can sign into Crowdin and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Crowdin API.
Pipedream requests the following authorization scopes when you connect your account:
notification
project
mt
webhook
ai
GET
https://accounts.crowdin.com/oauth/authorize
?
client_id={{oauth.client_id}}
&
redirect_uri={{oauth.redirect_uri}}
&
state={{oauth.state}}
&
response_type=code
&
scope={{oauth.space_separated_scopes}}
POST
https://accounts.crowdin.com/oauth/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{oauth.client_id}}
&
client_secret={{oauth.client_secret}}
&
redirect_uri={{oauth.redirect_uri}}
&
grant_type=authorization_code
&
code={{oauth.code}}
POST
https://accounts.crowdin.com/oauth/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{oauth.client_id}}
&
client_secret={{oauth.client_secret}}
&
grant_type=refresh_token
&
refresh_token={{oauth.refresh_token}}