adrianheine added a comment.
Current users of language data I found:
- `ValueView` needs language codes and names.
- `wikibase.Site` (used by `jquery.wikibase.linkitem` and
`jquery.wikibase.sitelinkview`) needs dir
- `getDirectionality` (used by `aliasview`, `descriptionview`, `labelview`)
needs dir
- Special pages need language codes and names
- `getLanguageNameByCode` (used by `descriptionview`,
`entitytermsforlanguagelistview`, `entitytermsforlanguageview`, `entityview`,
`labelview`) needs language codes and names
I would try to replace the usages in getLanguageNameByCode, getDirectionality
and ValueView with the new service as a a start.
interface ContentLanguages
getName( code )
getAll()
class UlsBasedContentLanguages: ContentLanguages
getName( code ) = getAll()[ code ]
getAll() = mw.config.get( 'wgULSLanguages' )
TASK DETAIL
https://phabricator.wikimedia.org/T86653
REPLY HANDLER ACTIONS
Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign
<username>.
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: adrianheine
Cc: Aklapper, adrianheine, Snaterlicious, Wikidata-bugs
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs