Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

String translation fallback

Security covered Under active development 3 sites

Part of the String ecosystem · 6 projects

This module allows you to define a prioritized chain of languages to fall back to when a website interface string doesn't have a translation in the current language. Instead of always defaulting to the site's main language, you can configure specific fallback languages for each language to ensure translations are found more reliably.

Configure per-language fallback chains for interface string translations. When a t() string has no translation in the current language, this module lets you control which language is tried next — instead of always falling back to the site's default language.

Features

- Per-language fallback configuration: For each language on your site, define a list of fallback languages for interface string translations.
- Prioritized fallback chain: Configure multiple fallback priorities. The module tries each language in order until a translation is found.
- Admin UI integration: Settings are added directly to the existing language edit form.
- Complements Entity Language Fallback: While the https://www.drupal.org/project/entity_language_fallback module handles content/entity translation fallback, this module covers the other half: interface string translations.

Post-Installation

1. Go to Administration → Configuration → Regional and language → Languages.
2. Click Edit on the language you want to configure.
3. Find the "String translation fallback language" fieldset on the edit form.
4. Select your preferred fallback languages in priority order (Priority 1 is tried first, Priority 2 second, etc.).
5. Save the language configuration.

The module works immediately — no additional setup, content types, or text format changes are needed. When Drupal looks up an interface string translation and doesn't find one in the current language, it will now try your configured fallback languages in order.

Additional Requirements

This module requires two Drupal core modules:

- Language (`drupal:language`) — provides the multilingual framework and language configuration entities.
- Locale (`drupal:locale`) — provides the interface translation system that this module extends.

No external libraries or APIs are required.

- https://www.drupal.org/project/entity_language_fallback provides the same per-language fallback concept but for entity/content translations. Using both modules together gives you full control over fallback behavior for both content and interface strings.

Ask your assistant about String translation fallback

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Mar 2026
Latest release
7 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Slowing

Releases

Version Type Core PHP Release date
1.0.0-alpha1 Pre-release 11 Mar 20, 2026