MCPcopy Create free account
hub / github.com/adobe/react-spectrum / getLocales

Function getLocales

scripts/generateAllPlurals.mjs:42–54  ·  view source on GitHub ↗
(cell)

Source from the content-addressed store, hash-verified

40}
41
42function getLocales(cell) {
43 let locales = [];
44
45 let element = cell.firstElementChild;
46
47 do {
48 if (element.tagName === 'SPAN') {
49 locales.push(element.title);
50 }
51 } while ((element = element.nextElementSibling));
52
53 return locales;
54}
55
56function getPlurals(tr, range) {
57 let columnTitles = [...tr.childNodes].map(td => td.title);

Callers 1

extractFunction · 0.85

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected