(root, relPath)
| 54 | } |
| 55 | |
| 56 | function getDirents(root, relPath) { |
| 57 | const filePath = root ? path.join(root, relPath) : relPath |
| 58 | return fs.readdirSync(filePath, { withFileTypes: true }) |
| 59 | } |
| 60 | |
| 61 | export const getUIDataMerged = memoize((langCode) => { |
| 62 | const uiEnglish = getUIData('en') |