JanZerebecki added a comment.

In https://phabricator.wikimedia.org/T112120#1643078, @aude wrote:

> If/how does i18n stuff work in a library?


I don't know about how the JavaScript use the i18n json files. I assume 
translatewiki.net only cares about there being i18n files in a location in a 
git repo not about extension vs component.

In https://phabricator.wikimedia.org/T112120#1644064, @adrianheine wrote:

> As I recently wrote in https://phabricator.wikimedia.org/T75020#1629613:
>
> > Even if some component does not depend on MediaWiki, I'd still consider it 
> > a MediaWiki extension if it optionally provides MediaWiki integration. 
> > Currently, all our resource loading happens through `ResourceLoader`, and 
> > that won't change soon.
>


If it is declared a Mediawiki extension or a composer component depends only on 
if we use composer to depend on it or if it is a submodule in the deployment 
branch of mediawiki/core. If we want our deployment being sane, we should only 
do one at the same time. Both have different technical consequences. Some 
features are currently only provided by one of them. (Now it is confusing that 
we currently use composer to make a build of extensions in Wikidata, in the 
long run we want to stop that.)

Regarding that we won't remove the ResouceLoader dependency soon: That might 
work in practice ok even as a component. The downside of that is that we need 
some custom CI glue to run the QUnit tests. That might possibly look like: add 
a composer depencency on data-values/value-view into an installation of 
Mediawiki, run composer, run qunit tests as is normally done with Mediawiki.

(Btw. breaking out ResourceLoader out of Mediawiki into a component that does 
not depend on Mediawiki, would be an alternative to removing the dependency on 
it.)

I requested to not create the repo until we decided. Another thing is how to 
name the repo if it should be a component: The composer name is 
data-values/value-view. Should we name it wikibase/data-values/value-view?


TASK DETAIL
  https://phabricator.wikimedia.org/T112120

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: JanZerebecki
Cc: adrianheine, Addshore, aude, JanZerebecki, Aklapper, Lydia_Pintscher, 
Wikidata-bugs



_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to