ULS: Fix JavaScript language fallback mapping being overridden
Follow-up of commit 7284215879
(Change-Id I9f68e0744bf0c730aa3a410901a9b536af7623fc)
Bug: T348376
Change-Id: Ic4331f635da2ee3de1211448838bc8cf145a808e
This commit is contained in:
committed by
jenkins-bot
parent
e3daa8753b
commit
2fa3da3610
@@ -27,8 +27,16 @@
|
||||
locale: mw.config.get( 'wgUserLanguage' )
|
||||
} );
|
||||
|
||||
// ApiULSLocalization handles fallback in ULS
|
||||
$.i18n.fallbacks = {};
|
||||
/**
|
||||
* T53923: Fix JavaScript error with language fallbacks.
|
||||
* ULS use ApiULSLocalization to handle language fallbacks.
|
||||
*
|
||||
* T348376: Fix JavaScript language fallback mapping being
|
||||
* overridden.
|
||||
* This should not override the original mapping, as it's not
|
||||
* only used by ULS.
|
||||
*/
|
||||
$.i18n.fallbacks = $.i18n.fallbacks || {};
|
||||
|
||||
/**
|
||||
* Load localization messages for a locale to the jquery.i18n
|
||||
|
||||
Reference in New Issue
Block a user