(obj, segments)
| 90 | } |
| 91 | |
| 92 | function getPath(obj, segments) { |
| 93 | let cur = obj; |
| 94 | for (const s of segments) { |
| 95 | if (!isObject(cur) || !Object.hasOwn(cur, s)) return undefined; |
| 96 | cur = cur[s]; |
| 97 | } |
| 98 | return cur; |
| 99 | } |
| 100 | |
| 101 | function loadSplitSettings(locale, messagesDir) { |
| 102 | const settingsDir = path.join(getMessagesDir(messagesDir), locale, "settings"); |
no test coverage detected