https://bugzilla.wikimedia.org/show_bug.cgi?id=58139

Krinkle <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|ResourceLoader:             |ResourceLoader:
                   |'languageScripts' in the    |'languageScripts' in the
                   |file module should account  |file module should look for
                   |for fallback                |fallback languages

--- Comment #2 from Krinkle <[email protected]> ---
This isn't about fallback of individual messages, because this is for logic
files (as opposed to message blobs, which we already transport as JSON and
resolve server-side using MediaWiki's localization framework).

E.g. files such as:

 modules: {
   'jquery.ui.datepicker': {
     languageScripts: {
       af: 'jquery.ui.datepicker-af.js'

   'mediawiki.language': {
     languageScripts: {
       bs: 'languages/bs.js'

   'jquery.i18n': {
     languageScripts: {
       bs: 'src/languages/bs.js'

   'moment': {
     languageScripts: {
       ar: 'lang/ar.js'

In all of these cases, if the library doesn't have a specific file for the
current language, wouldn't you want ResourceLoader to look at the fallbacks for
that language and see if we can pick another one as fallback?

Right now if there isn't a language script for the specific language code,
ResourceLoader will just use the default ('en').

-- 
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
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to