Add fallback language to RL interpreter plugin

Created on 14 May 2021, over 3 years ago
Updated 26 February 2024, 10 months ago

Problem/Motivation

Currently the plugin throws exception when language is not supported which is an issue on multilingual sites. To use it on such sites, it should at least work with unsupported languages and I'm sure that at least showing it in English would be just fine.
Alternative would be to add translation but until there is none and no time to create it fallback language option would be nice here.

Proposed resolution

Instead of throwing exceptions, fall back to supported language. The patch makes fallback language configurable.

Feature request
Status

Needs work

Version

3.1

Component

Code

Created by

🇪🇪Estonia rang501 Viljandi

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

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.71.5 2024