Page MenuHomePhabricator

Migrate ContentTranslation to Vue 3
Closed, ResolvedPublic


See migration instructions in T289020.

Note that most of the code in ContentTranslation uses ContentTranslation's bundled version of Vue, which is already the non-compat version of Vue 3 (I believe). We only have to audit and migrate the small pieces of code that are run by the MediaWiki-bundled version of Vue.

Event Timeline

santhosh added a subscriber: ngkountas.

I don't think we have any code that runs on Vue 2 or V3-compat. Assigning to @ngkountas to confirm and close

Most of the code in CX runs against the version CX pulls in from NPM, which you're right is Vue 3 without compat.

The only code that does run against Vue 3-compat currently is the code that uses the MW-bundled version of Vue through ResourceLoader, in the following RL modules:

  • sx.publishing.followup
  • chart.js

Some of these already have compatConfig: { MODE: 3 } set, so they're probably fine. For the others, we'll need to follow the steps in . If one of you is able to do that, that would be great, because you're more familiar with this code than we are, but otherwise DST can do it as well.

Change 931314 had a related patch set uploaded (by Nik Gkountas; author: Nik Gkountas):

[mediawiki/extensions/ContentTranslation@master] Fix warnings for Vue 3 CX modules

Change 931314 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] Fix warnings for Vue 3 CX modules