{"library":"rollup-plugin-drupal-interface-translations","title":"Rollup Plugin Drupal Interface Translations","description":"A Rollup and Vite plugin that extracts Drupal interface translation strings from JavaScript files into .pot (Portable Object Template) files. Currently v1.1.9, stable, with periodic releases. Key differentiator: it integrates Drupal's translation API into modern JavaScript build pipelines, supporting both Rollup and Vite. Unlike manual extraction, it automates generation of translation templates from Drupal's t() and Drupal.t() calls. Based on DrupalTranslationsWebpackPlugin but adapted for Rollup ecosystem.","language":"javascript","status":"active","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-drupal-interface-translations"],"cli":null},"imports":["import drupalInterfaceTranslations from 'rollup-plugin-drupal-interface-translations'","import drupalInterfaceTranslations from 'rollup-plugin-drupal-interface-translations'","import drupalInterfaceTranslations from 'rollup-plugin-drupal-interface-translations'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import drupalInterfaceTranslations from 'rollup-plugin-drupal-interface-translations';\n\n// https://rollupjs.org/configuration-options/\nexport default {\n  input: 'main.js',\n  plugins: [drupalInterfaceTranslations()],\n};","lang":"javascript","description":"Minimal Rollup configuration to extract Drupal interface translations from main.js, generating a .pot file in translations/ folder.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}