Add customization of default lang

Add customization of default lang

Hi, could someone with edit rights let the langcode be set by something like this:

	if (typeof window.CustomNECDefaultLanguage == 'undefined') {
    // window.CustomNECDefaultLanguage is not defined, set to defaults
    window.CustomNECDefaultLanguage = 
    "en";
	}
So9q (talk)11:55, 22 September 2019

I do not see how that sole if statement is going to add support of customization.

Dixtosa (talk)13:50, 22 September 2019

I did something like that in this script and it works fine. User:So9q/TranslationAdder-InputFiller.js

So9q (talk)14:34, 22 September 2019

But this script has to use this CustomNECDefaultLanguage somehow.

Dixtosa (talk)18:22, 25 September 2019

Yes of course.

What about this:

	if (typeof window.CustomNECDefaultLanguage == 'undefined') {
    // window.CustomNECDefaultLanguage is not defined, set to defaults
    window.CustomNECDefaultLanguage = 
    "en";
	}
    var neccode = window.CustomNECDefaultLanguage; // this replaces line 21
So9q (talk)19:36, 25 September 2019