Aller au contenu

App Installation

Ce contenu n’est pas encore disponible dans votre langue.

Translate in Crowdin

You can install Crowdin Apps either from the Crowdin Store or manually, depending on whether the app is already published.

To install an app that is already published on the Crowdin Store, follow these steps:

  1. Open your profile home page and select Store on the left sidebar.
  2. Click on the card of the needed app.
  3. In the dialog that opens, configure preferred permissions and click Install.

To install a private app, follow these steps:

  1. Go to Account Settings > Apps and click Install Private App.
  2. Select how you want to install the app:
    • From an app file: For serverless apps that Crowdin hosts. Upload the app file (.crowdinapp), which contains the app’s manifest and build.
    • From a manifest URL: For self-hosted apps that run on your own server. Paste in the app’s Manifest URL and click Continue.
  3. Configure preferred permissions. If you’re developing a serverless app, turn on Development mode and enter the URL of your local dev server on localhost or 127.0.0.1. Crowdin then loads the app from your computer, and only you can use it while development mode is on.
  4. Click Install.

To install an app that is already published on the Crowdin Store, follow these steps:

  1. Open your organization’s Workspace and select Store on the left sidebar.
  2. Click on the card of the needed app.
  3. In the dialog that opens, configure preferred permissions and click Install.

To install a private app, follow these steps:

  1. Go to Organization Settings > Apps and click Install Private App.
  2. Select how you want to install the app:
    • From an app file: For serverless apps that Crowdin hosts. Upload the app file (.crowdinapp), which contains the app’s manifest and build.
    • From a manifest URL: For self-hosted apps that run on your own server. Paste in the app’s Manifest URL and click Continue.
  3. Configure preferred permissions. If you’re developing a serverless app, turn on Development mode and enter the URL of your local dev server on localhost or 127.0.0.1. Crowdin then loads the app from your computer, and only you can use it while development mode is on.
  4. Click Install.

How an installed app gets a newer version depends on how it was installed.

Crowdin checks the manifests of self-hosted apps daily. A change waits for an admin when it widens what the app can do: new scopes, new modules that need an access setting or act on their own, or a different server address. Crowdin applies all other changes on its own. While a change waits, the app shows Update available in the apps list, admins see a banner with a Review button on the app’s pages, and the account owner (for Crowdin) or organization admins (for Crowdin Enterprise) get a notification (App Updates in the notification settings).

To review and apply the update, follow these steps:

  1. Go to Account Settings > Apps (for Crowdin) or Organization Settings > Apps (for Crowdin Enterprise) and select Edit on the app.
  2. Review the changes, marked New, Removed, or Changed, and set access for any new modules.
  3. Click Update.

To apply a new authentication type, uninstall the app and install it again.

To update a serverless app to a newer version, upload its new app file:

  1. Go to Account Settings > Apps (for Crowdin) or Organization Settings > Apps (for Crowdin Enterprise) and select Edit on the app.
  2. In the App file section, click Update file (or Upload file if the app has no app file yet) and upload the new app file (.crowdinapp).
  3. Review the changes and click Save.

Saving replaces the app’s build and applies the manifest from the file. If the app name in the file differs from the installed app’s name, a warning shows both names before you save, because saving gives the installed app the name, access, modules, and build from the file. An update keeps the Development mode setting, and while development mode is on, Crowdin loads the app from its URL instead of the app file. You can turn development mode on or off on the same screen.

When an app installed from an app file has the same name as the file you’re installing, the dialog warns that the file adds a second copy. To update the installed app instead, click Update the installed app instead.

To get the file of an app installed from an app file, for example to share the app, select Download on the app.

Configure preferred permissions for each app during installation. In this step, you define who can access and use the app across its modules, and in which projects of your Crowdin account (for Crowdin) or Crowdin organization (for Crowdin Enterprise) it can be used.

If you restrict access to certain projects by using the Selected projects option, the app cannot communicate via the API with projects outside that list. The app is also displayed only in the UI of the selected projects.

You can configure these access permissions during installation or adjust them at any time for already installed apps: go to Account Settings > Apps (for Crowdin) or Organization Settings > Apps (for Crowdin Enterprise) and select Edit on the app.

You can define which user categories can use the app. Configure this setting separately for each app module, so a module can have different access from the others.

Available options for Crowdin:

  • Only me – the user who installed the app.
  • Me, project managers and developers / translation requestors
  • All project members
  • All users, including guests (unauthenticated users)
  • Custom Access – the users you pick with Select users. The module switches to this option automatically once you pick users.

Available options for Crowdin Enterprise:

  • Only admins
  • Admins, managers and developers / translation requestors
  • All project members
  • All users, including guests (unauthenticated users)
  • Custom Access – the users you pick with Select users. The module switches to this option automatically once you pick users.

You can also specify the projects in which the app can be used (these settings apply across all app modules).

Project access options:

  • All projects I have access to (for Crowdin) or All projects (for Crowdin Enterprise)
  • Selected projects

Some apps work in projects through their own bot, a user that Crowdin creates for the app when you install it. The installation dialog shows this bot under Will perform action as:. The projects the bot is a member of are the projects the app works in, so these apps skip the project access options.

To add the bot as a manager to all existing projects, keep Assign bot as a manager to all existing projects selected when you install the app. To change the bot’s permissions later, use the project’s Members tab or the Managers page (for Crowdin) or Users page (for Crowdin Enterprise).

This flow applies to self-hosted apps, which register the installed event in their app descriptor.

When a Crowdin App is installed in the Account Settings, an authorization flow takes place, during which Crowdin and the Crowdin App exchange the authorization data (the app exchanges the credentials from the Installed event for an access token). The following illustration shows the events in this process.

Communication between Crowdin and Crowdin App

Let’s examine each step in the illustration in detail:

  1. Installation of the Manifest URL - the user pastes in the Manifest URL in Account Settings > Apps and clicks Continue.
  2. Fetching content from the Manifest URL - the request is sent to the Crowdin App.
  3. Response: manifest JSON - the Crowdin App returns the Manifest JSON that contains data about the app.
  4. Manifest Data Validation - the received content is validated against the structure and data of the Manifest JSON.
  5. Prompt to install - Crowdin displays the information about the Crowdin App, the list of permissions, and the Install button to the user.
  6. Confirmation of the installation - the user confirms the installation of the Crowdin App.
  7. The Installed event - Crowdin sends the Installed event with the credentials the Crowdin App needs to get an API token.
  8. Token request - the Crowdin App sends a request to acquire an API token:
    POST https://accounts.crowdin.com/oauth/token
  9. Access Token - the authorization service returns the API access token and the refresh token.
  10. Response: success code - the Crowdin App returns the success status code (2xx), which confirms that the app installation finished. If the status code is different, Crowdin removes the app from the Crowdin account.

Token request parameters (step 8):

An app with the authorization_code type exchanges the code from the Installed event for a token in the authorization code flow. Apps with the other types send the following parameters:

grant_type

Type: string

Required: yes

Description: The flow for the app’s authentication type: crowdin_app, crowdin_agent, or crowdin_app_with_code.

client_id

Type: string

Required: yes

Description: The Client ID for the app is received when the app is registered.

client_secret

Type: string

Required: yes

Description: The Client Secret for the app is received when the app is registered.

app_id

Type: string

Required: yes

Description: Crowdin app identifier from the app descriptor.

app_secret

Type: string

Required: yes

Description: The unique secret used to authorize your Crowdin app. This value is retrieved from the installed event.

domain

Type: string|null

Required: yes

Description: The name of the organization from which the app is accessed. This value is retrieved from the installed event.

user_id

Type: integer

Required: yes

Description: The identifier of the user who installed the app. This value is retrieved from the installed event.

agent_id

Type: integer

Required: only with crowdin_agent

Description: The identifier of the app’s bot user. This value is retrieved from the installed event (agentId).

code

Type: string

Required: only with crowdin_app_with_code

Description: The authorization code from the installed event or from the JWT of a module request.

Was this page helpful?