Skip to main content

How to set up the GitLab integration?

How to set up the GitLab integration?

LingoHub provides a GitLab integration that lets users quickly and easily localize repository files. To connect a GitLab repository to LingoHub, you must first generate a Project access token with the required permissions, then configure authentication in your LingoHub workspace.
​

Create a GitLab access token

Follow these steps to generate the required credentials in GitLab:

  1. Sign in to your GitLab account and navigate to the repository you want to connect.

  2. In the left-hand sidebar, go to Settings > Access tokens.

  3. Click Add new token.

  4. Provide a Token name (e.g., "LingoHub Integration").

  5. Select an Expiration date.

    • Note: If no date is selected, the token expires in 365 days. GitLab project tokens have a maximum lifespan of 365 days.

  6. Select a Role: You must select at least Developer to ensure LingoHub has sufficient permissions to sync files.

  7. Select Scopes: Check the api box. This grants LingoHub the necessary read/write access to manage your resource files.
    ​

  8. Click Create project access token.

  9. Copy the token immediately. Save it in a secure place, as you will not be able to access it again after leaving the page.


Connect GitLab to LingoHub

Once you have your token, you can add the authentication to your LingoHub workspace:

  1. Navigate to Plugins and integrations.

  2. Find the GitLab plugin and click Manage.

  3. Click Add new GitLab authentication.

  4. In the window that appears, provide the following information:

    • Name: A label for this connection (e.g., "Main GitLab Account").

    • Self-hosted: Toggle this on if you are using a self-hosted GitLab instance; otherwise, leave it off for gitlab.com.

    • Provider URL: Enter https://gitlab.com or your custom instance URL.

    • Access token: Paste the token you generated in Step 1.

  5. Click Create.

Create a new LingoHub project

Now that the authentication is configured, you can use it to create a synchronized project in LingoHub:

  1. Click Create project on your LingoHub dashboard.

  2. Enter your Project name.

  3. Under Select project category, choose GitLab.

    • Note: The GitLab integration is file-based. Platforms like Contentful, Figma, Storyblok, and Zendesk use different connection methods.

  4. Click Continue and follow the instructions to select your specific repository and branch.

Once your project is created, you can manage your synchronization settings (such as resource filters and automatic pull/push) by navigating to the project Settings > Integration (GitLab).

This comprehensive Help Center article on managing your project repository integrations explains the most important settings.

Awesome! You have finished the article on setting up the GitLab integration. We hope that it helped you find answers to all your questions. Otherwise, contact our support, and we will gladly help!

Did this answer your question?