https://bugzilla.wikimedia.org/show_bug.cgi?id=58139
Web browser: --- Bug ID: 58139 Summary: ResourceLoader: 'languageScripts' in the file module should account for fallback Product: MediaWiki Version: unspecified Hardware: All OS: All Status: NEW Keywords: i18n Severity: normal Priority: Unprioritized Component: ResourceLoader Assignee: wikibugs-l@lists.wikimedia.org Reporter: krinklem...@gmail.com CC: krinklem...@gmail.com, roan.katt...@gmail.com, tpars...@wikimedia.org Classification: Unclassified Mobile Platform: --- It is by design that ResourceLoader expects languageScripts to be complete (e.g. no partial fallback) because they are free-form javascript. However we should still support fallbacks. e.g. in a case of momentjs, jquery.i18n, or jquery.ui.datepicker like: 'jquery.ui.datepicker' => array( 'languageScripts' => array( 'af' => 'jquery.ui.datepicker-af.js', 'cs' => 'jquery.ui.datepicker-cs.js', 'de' => 'jquery.ui.datepicker-de.js', 'el' => 'jquery.ui.datepicker-el.js', 'en-gb' => 'jquery.ui.datepicker-en-GB.js', 'ru' => 'jquery.ui.datepicker-ru.js', When, for example, using de-formal, since it isn't specified, should result in 'de' being loaded instead. Not falling back straight to 'en'. Same for 'ab' falling back to 'ru' etc. -- You are receiving this mail because: You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l