PageSourceSearch

https://www.moex.com/mxassets/mx.locale.js?v=20260730162836332

js moex.com collected 2026-10-02 03:25:06 UTC 991 bytes, 48 lines download raw bytes

1(function () {
2	var available_locales, current_locale, default_locale, root, _ref;
3	var queueOnLocaleChanged = [];
4	root = this;
5
6	available_locales = ['ru', 'en'];
7
8	default_locale = available_locales[0];
9
10	current_locale = default_locale;
11
12
13	if ((_ref = root['mx']) == null) {
14		root['mx'] = {};
15	}
16
17	root['mx'].localeChanged = function (callBack) { //callBack(newLang, oldLang)
18		queueOnLocaleChanged.push(callBack);
19	}
20
21	root['mx'].locale = function (locale) {
22		if ((locale != null) && _.includes(available_locales, locale) && current_locale != locale) {
23			for (var i = 0; i < queueOnLocaleChanged.length; i++)
24				queueOnLocaleChanged[i](locale, current_locale);
25
26			current_locale = locale;
27		}
28		return current_locale;
29	};
30
31	root['mx'].locales = {
32		number: {
33			precision: {
34				format: {
35					separator: {
36						ru: ',',
37						en: '.'
38					},
39					delimiter: {
40						ru: ' ',
41						en: ','
42					}
43				}
44			}
45		}
46	};
47
48}).call(this);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.