MediaWiki:DonationForm.js: Difference between revisions
Content deleted Content added
en-ca -> en |
drop anything after '-' in language |
||
Line 29:
language = 'en';
}
// MediaWiki allows
// We don't want these for a javascript locale, so drop anything after '-'
language = language.split('-')[0];
return language + '-' + country;
};
|