(x)
| 49 | const listFormat = new Intl.ListFormat(locales, { style: "short", type: "conjunction" }); |
| 50 | |
| 51 | const formatLanguageMap = (x) => { |
| 52 | if (!x) return ""; |
| 53 | if (typeof x === "string") return x; |
| 54 | const keys = Object.keys(x); |
| 55 | return x[keys[0]]; |
| 56 | }; |
| 57 | |
| 58 | const formatOneContributor = (contributor) => |
| 59 | typeof contributor === "string" ? contributor : formatLanguageMap(contributor?.name); |
no outgoing calls
no test coverage detected