
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
rollup-plugin-drupal-interface-translations
Advanced tools
This is a [Rollup](https://rollupjs.org) plugin that helps you to [translation strings in JavaScript](https://www.drupal.org/docs/8/api/translation-api/overview#s-translation-in-javascript-files) that are used in [Drupal](https://www.drupal.org) websites.
This is a Rollup plugin that helps you to translation strings in JavaScript that are used in Drupal websites.
Based on DrupalTranslationsWebpackPlugin.
npm install --save-dev rollup-plugin-drupal-interface-translations
import drupalInterfaceTranslations from 'rollup-plugin-drupal-interface-translations';
// https://rollupjs.org/configuration-options/
export default {
input: 'main.js',
plugins: [drupalInterfaceTranslations()],
};
This plugin can be used with Vite.
import { defineConfig } from 'vite';
import drupalInterfaceTranslations from 'rollup-plugin-drupal-interface-translations';
// https://vitejs.dev/config/
export default defineConfig({
build: {
rollupOptions: {
input: 'main.js',
plugins: [drupalInterfaceTranslations()],
},
},
});
Defines the files that are included in and excluded from interface translation extraction.
There are the parameters for the createFilter function in @rollup/pluginutils.
Type
: string
Default
: "translations/{MODULE_NAME}.pot"
The file path relative of the .pot (portable object template) file that this plugin will generate.
The Exploratorium is a 501(c)(3) nonprofit organization. Our tax ID #: 94-1696494
FAQs
This is a [Rollup](https://rollupjs.org) plugin that helps you to [translation strings in JavaScript](https://www.drupal.org/docs/8/api/translation-api/overview#s-translation-in-javascript-files) that are used in [Drupal](https://www.drupal.org) websites.
The npm package rollup-plugin-drupal-interface-translations receives a total of 984 weekly downloads. As such, rollup-plugin-drupal-interface-translations popularity was classified as not popular.
We found that rollup-plugin-drupal-interface-translations demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.