Custom source language for translations
Describe the problem
It is cumbersome to maintain similar languages without causing duplicated efforts and diverging translations. Changes in one related language are not reflected in the other, even when both were previously translated to the same string.
Related problem descriptions:
- https://github.com/WeblateOrg/weblate/issues/2320
- https://github.com/WeblateOrg/weblate/issues/3412
Solution brainstorm
Additional option in the project language workflow customization settings to configure a different source language.
With such a "tree" of languages, a "child" translation can have a different source language ("parent") instead of the base language file.
Changes in the parent language create a "source string changed" invalidation in the child language.
With reviews active, a child unit can only be translated when the parent unit is in state "Approved" or "Waiting for review".
Describe alternatives you have considered
No response
Screenshots
No response
Additional context
Constraints:
- Inheritance loops should not be possible.
- State invalidation should behave the same as between intermediate, source and translation
Useful in combination with:
- https://github.com/WeblateOrg/weblate/issues/19625 to not have duplicate translations and rely on the translation framework's fallback
- https://github.com/WeblateOrg/weblate/issues/20043 to still keep the other custom translation workflow settings to default
This could potentially be a more flexible replacement for the intermediate language feature.
Implementation should reuse the existing Unit.source_unit relation instead of adding a parallel source graph.
Proposed approach:
- Add nullable
source_languagetoWorkflowSetting. Empty means component source language. - Expose it in
WorkflowSettingForm, likely only for project-language settings. - Validate same-language parents, missing project languages, and inheritance loops.
- Add
Translation.effective_source_language/effective_source_translationnear existing workflow properties inTranslation. - Change source linking so
Unit.update_source_unit()andTranslation.add_unit()link to the effective parent unit, not alwayscomponent.get_source(). - Reuse
Unit.update_source_units(), but trigger it for custom parent translations too, not only template translations atunit.py#L1720-L1722. - Generalize intermediate-only read-only gating in
get_unit_state()andupdate_state(). - Update source labels in templates, for example
translate.htmlandtranslate.html#L787.
Some additional aspects that might be relevant:
- Deleting a language that is configured as source of another language
- Moving a component to another project with different source language workflow settings
- Visibility of this feature in the language listing (
source.svgicon, ordering, indent?)
Thank you for your report — the issue has now been resolved.
The fix has been merged into the repository and will be included in the upcoming Weblate 2026.10 release.
- If you encounter any issues with the fix, please comment in this thread.
- If you experience a similar but separate issue, open a new report so we can track it properly.
- If you find Weblate helpful, consider supporting its development.