We moved most of the JS to lib so that the client may be able to use some components and stuff.
However, the messages are still defined in the repo so we can't re-use stuff in the client yet.
We moved most of the JS to lib so that the client may be able to use some components and stuff.
However, the messages are still defined in the repo so we can't re-use stuff in the client yet.
(In reply to Lydia Pintscher from comment #1)
Is this still the case?
Yes... back when implementing linkItem (which was probably why Katie filed this bug) I moved everything I needed to lib, but kept the rest in repo... whenever we add more JavaScript functionality to client this will probably come up again.
Looking at our code now it looks like this is fixed in most places,
back in the day https://github.com/wikimedia/mediawiki-extensions-Wikibase/tree/ed156d83da786bc994d661d5fdd1d5aa33bf0be3/view didnt have any i18n messages
Now the view code is included as a submodule https://github.com/wikimedia/mediawiki-extensions-Wikibase/tree/2454496a7210a34b57bf06679efcffc957808a34/view/lib and has it own i18n dir updated from translatewiki https://github.com/wikimedia/data-values-value-view/tree/a1a0c7f16c93b3b1218d8d91015f5b26ca64e750
Any other cases found should be fixed individually, might be cool to have some linting to stop evilness like this again in the future, but that might be hard to implement