New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

rollup-plugin-drupal-interface-translations

Package Overview
Dependencies
Maintainers
4
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rollup-plugin-drupal-interface-translations

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.

latest
Source
npmnpm
Version
1.1.9
Version published
Weekly downloads
1K
-49.58%
Maintainers
4
Weekly downloads
 
Created
Source

Rollup Plugin for Drupal to Extract Interface Translations

This is a Rollup plugin that helps you to translation strings in JavaScript that are used in Drupal websites.

Based on DrupalTranslationsWebpackPlugin.

Installation

npm install --save-dev rollup-plugin-drupal-interface-translations

Usage

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()],
    },
  },
});

Options

filterOptions

Defines the files that are included in and excluded from interface translation extraction.

There are the parameters for the createFilter function in @rollup/pluginutils.

output

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

https://www.exploratorium.edu

Keywords

rollup

FAQs

Package last updated on 22 Aug 2025

Did you know?

Socket

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.

Install

Related posts