Need to translate images too? Try it on
Translate.photo →
Drupal

Drupal

Drupal is an open-source CMS used to build secure, scalable, and highly customizable websites and applications.

Add Translate.website to Drupal in Minutes

Running your website on Drupal? You don't need custom development or theme edits to make your Drupal site multilingual.

Using Drupal's module system, you can safely inject the Translate.website script in just a few clicks. The Asset Injector module is the cleanest and most maintainable method — no custom code, no theme changes, no risk to your existing setup.

Once set up, Translate.website will automatically detect and translate your content in real time for visitors in different languages.

This guide walks you through the entire setup from start to finish.

Configure Asset Injector to Enable Translate.website

The Asset Injector module allows you to inject custom JavaScript across your site without modifying theme files or core modules. Here's exactly how to set it up.

Login to Your Drupal Admin Dashboard

  • Open your browser and go to your Drupal site URL followed by /admin (e.g., yoursite.com/admin).
  • Enter your admin username and password and click Log in.
  • Once logged in, you will see the Drupal admin toolbar at the top of the screen.
  • Make sure your account has Administrator access — you'll need it to install and configure modules.
01

Enable the Asset Injector Module

From the top admin toolbar, go to Manage → Extend. In the filter field, type Asset Injector. Check the checkbox next to Asset Injector and click Install.

Drupal Extend page with Asset Injector module
02

Export Asset Injector and Click "Configure"

After installing, find the Asset Injector module in the list. Click the dropdown arrow next to it and select Configure to open the settings.

Asset Injector with Configure option expanded
03

Click "JS Injector"

Inside the Asset Injector configuration screen, you will see two options: CSS Injector and JS Injector. Click JS Injector — this is where you will add the Translate.website script.

Asset Injector config showing CSS and JS Injector options
04

Click "+Add JS Injector"

On the JS Injector page, click the + Add JS Injector button. This opens a form where you can create a new global JavaScript injection rule.

Add JS Injector form in Drupal admin
05

Form the Request & Paste Your Script

In the Label field, enter a name like "Translate.website". Then paste your Translate.website snippet into the JavaScript code field. Your snippet is available in your Translate.website dashboard.

Translate.website code snippet to paste
06

Set Full Site Coverage

Under Conditions, set Pages to "All Pages" and leave content type and role restrictions empty. This ensures Translate.website runs across your entire Drupal site — Nodes, Views, and Landing pages.

Drupal JS Injector full site conditions configuration
07

Save and Go Live

Click Save. Translate.website is now active on your Drupal site. Clear your site cache (Configuration → Performance → Clear all caches) and refresh — you should see the translation widget appear.

Save button in Drupal JS Injector configuration

🚀 What Happens After Saving?

Once you click Save, Drupal will immediately begin serving the Translate.website script to all visitors. The script will automatically detect the page language and present a translation widget to users browsing in a language that isn't your default.

You don't need to restart Drupal or deploy any code — the change takes effect immediately after clearing the cache.

🔁 Safe & Reversible

This integration is completely reversible. To remove Translate.website from your Drupal site, simply return to the JS Injector, find the entry you created, and delete it. No core files were modified, no theme files were changed, and nothing was permanently altered in your Drupal installation.

Ready to go multilingual with Drupal?

It takes less than 5 minutes. No developer needed — just your Drupal admin credentials and your Translate.website snippet.

What are you waiting for?

Your Dubbing, Subtitles, Captions in one place

Signup free!

©2026  Translate.website All rights reserved.