Section translation is being enabled in a gradual way. With the initial enablement to Bengali, different parts of the UI were adjusted to support only that language. As we plan to enable three more languages (T290175: Igbo, Hausa and Yoruba), we want to check that the system will support those properly and coordinate any code changes (if needed) with the deployment of configuration changes.
Aspects to verify include:
- Target language selector. In Section Translation users should be able to select as the target language any of the languages where the tool is available, and none of the languages where the tool is not. More context in T273274
- Language selector entry point. When searching with the mobile language selector for any of the languages where Section Translation is available, an option should be available for translation. More context in T286645
The outcome for this ticket will be to find an answer to the following questions:
1. Is updating the target language variable the only change needed for the new languages to be supported in the above scenarios or additional changes are needed?
- Can the deployment of such changes occur at the same time as the enablement of the new wikis? If not, how to better coordinate it with our deployment process?
- Are there other changes we need to consider not covered by the above scenarios when expanding languages?
- How much of this we'll have to repeat for every new wiki we add support for?
# Considerations for the deployment
@santhosh mentioned in T286645#7330780:
> It need changes to the configuration variable `ContentTranslationMFLanguageSearchEntrypointTargetLanguages`. @KartikMistry FYI. The new language codes need to add there.
>
> There is a configuration `SectionTranslationTargetLanguage` which takes only one language to restrict translation to that language. May be we can combine all of them to support multile (limited) language deployment
@KartikMistry mentioned in T290302#7335906:
> Current config for SectionTranslationTargetLanguage looks like this in Production:
>
> ```
> 'wgSectionTranslationTargetLanguage' => [
> 'default' => null,
> 'bnwiki' => 'bn',
> ],
> ```