Added instance property this._localeDetectionRule with, as a default value, the previously hard-coded rule that consists in reading the value of the lang query-string parameter when present;
Added function setLocaleDetectionRule(rule) that allows client code to replace the default locale detection rule with a custom rule;
Moved the locale detection code into its own separate function.
Added TS type signature for the new setLocaleDetectionRule(rule) function.
this._localeDetectionRule
with, as a default value, the previously hard-coded rule that consists in reading the value of the lang query-string parameter when present;setLocaleDetectionRule(rule)
that allows client code to replace the default locale detection rule with a custom rule;setLocaleDetectionRule(rule)
function.