blob: 8b6d1ef008ce17571d4543137a79738ee4a40a9c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
// Another old, unused chunk of code.
/*
const language = document.documentElement.getAttribute('lang');
let list;
if (typeof Intl === 'object' && typeof Intl.ListFormat === 'function') {
const getFormat = (type) => {
const formatter = new Intl.ListFormat(language, {type});
return formatter.format.bind(formatter);
};
list = {
conjunction: getFormat('conjunction'),
disjunction: getFormat('disjunction'),
unit: getFormat('unit'),
};
} else {
// Not a gr8 mock we've got going here, 8ut it's *mostly* language-free.
// We use the same mock for every list 'cuz we don't have any of the
// necessary CLDR info to appropri8tely distinguish 8etween them.
const arbitraryMock = (array) => array.join(', ');
list = {
conjunction: arbitraryMock,
disjunction: arbitraryMock,
unit: arbitraryMock,
};
}
*/
|