Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Give the admin user the option to "force" an experiment to show in a selection of one or more languages #1177

Open
drikusroor opened this issue Jul 8, 2024 · 2 comments

Comments

@drikusroor
Copy link
Contributor

drikusroor commented Jul 8, 2024

Is your feature request related to a problem? Please describe.

Right now, toontje hoger (kids) is shown with Dutch content. Most experiment-agnostic content, however, is shown in the language of the OS/Browser. This causes the experiment to show in two languages at the same time, which might be confusing.

Describe the solution you'd like

In a scenario in which we can configure all experiment content in one or more languages (so after #93), we might want to consider giving the admin user to restrict the languages for an experiment (or do this automatically based on the supplied content). The backend should then also restrict the experiment-agnostic content to this/these language(s), while also allowing to set the primary fallback language.

Some examples:

  1. Toontje Hoger Kids is meant for Dutch children and contains videos with Dutch spoken language. It therefore makes sense to show the experiment and the experiment-agnostic content in Dutch only, regardless of the OS/Browser preference.

  2. Or suppose an experiment is supplied with content in Dutch and English, but the browser setting is set to German. We should then (probably) make sure all experiment and experiment-agnostic content falls back to English content.

Additional context
See also this convo

@BeritJanssen
Copy link
Collaborator

Cf. the "language" setting of experiment / block. This already enables admin users to enforce the language to that selected by the admin user.

@drikusroor
Copy link
Contributor Author

We should probably align this with #1204 - i.e. the preferred or fallback language should also be used for the non-experiment-related (generic site/component contents) and non-configurable (translation keys used in the Rules) content.

@BeritJanssen BeritJanssen added this to the Internationalisation milestone Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants