Interface translations not downloaded after re-adding previously removed language

Created on 24 August 2018, almost 6 years ago
Updated 1 September 2023, 10 months ago

Problem/Motivation

When re-adding a language, zero translations are imported for that language even if imports are enabled.

Steps to reproduce

  1. Enable a new language.
  2. Delete the language
  3. Enable the same language again.
  4. Observe zero translations imported.

Cause of issue

After a language has been deleted, locale does not clear it's cache entry in it's locale.translation_status key_value collection. It seems that the presence of this cache entry lingering causes a future import during a language add operation to result in zero imports.

Proposed resolution

When deleting an installed language (configurable_language entity), clear the translation cache entry in the locale.translation_status key/value collection.

Remaining tasks

Consider restoring the update hook
Review
Commit

User interface changes

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Needs work

Version

11.0 🔥

Component
Locale 

Last updated 1 day ago

Created by

🇺🇸United States lpeabody

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024