(r: string, l: string)
| 19 | ); |
| 20 | |
| 21 | const getFullPath = (r: string, l: string) => |
| 22 | /^https?:\/\//.test(r) ? r : `${baseUrlAndPath}/${l}/${r}`; |
| 23 | |
| 24 | const getAlternatePaths = (r: string, locales: Array<string>) => |
| 25 | Object.fromEntries(locales.map(l => [l, getFullPath(r, l)])); |
no outgoing calls
no test coverage detected