Install
Works with Drupal: ^11.1Using Composer to manage Drupal site dependencies
Alternative installation files
Release notes
This is the first release of Devel Generate Localized.
Devel Generate fills generated entities with Latin lorem-ipsum text. On sites in languages that do not use the Latin alphabet — Chinese, Japanese and Korean in particular — such text looks nothing like real content. This module fills the labels and text fields of generated entities with FakerPHP dummy text written in the language of the entity, so the generated content behaves like real content for layout checks, search indexing and tokenizer testing.
Highlights
- Supports all Devel Generate entity types: Content (including comments), Block content, Media, Menus (including menu links), Taxonomy vocabularies and terms, and Users (localized person names).
- The language selected in the generation form determines the language of the text; a Language of the dummy text selector is added to the user, vocabulary and menu forms. A Localize the generated text checkbox (enabled by default) lets you fall back to the stock lorem ipsum text per run.
- Drush support via the
--languagesoption and theDEVEL_GENERATE_LOCALEenvironment variable. - All languages with FakerPHP text data are supported. Regional language codes (e.g.
fr-ca) fall back to the main locale of the language when needed; entities in unsupported languages keep the stock text.
Requirements
- Drupal 11.1 or later, PHP 8.3 or later
- Devel 5.5 or later, with the Devel Generate submodule enabled
- FakerPHP ^1.23 (installed automatically by Composer)
Install with composer require --dev drupal/devel_generate_localized. Like Devel itself, this is a development module — do not enable it on production sites.
Known limitations
- The module replaces the classes of some Devel Generate plugins via
hook_devel_generate_info_alter(); if another module replaces the same classes, only one of them can win.