(scopableUi: Scopable, path: string)
| 96 | }; |
| 97 | |
| 98 | export const composeWithUi = (scopableUi: Scopable, path: string): string => { |
| 99 | if (!isScoped(scopableUi)) { |
| 100 | return path ?? ''; |
| 101 | } |
| 102 | |
| 103 | const segments = toDataPathSegments(scopableUi.scope); |
| 104 | |
| 105 | if (isEmpty(segments)) { |
| 106 | return path ?? ''; |
| 107 | } |
| 108 | |
| 109 | return compose(path, segments.join('.')); |
| 110 | }; |
| 111 | |
| 112 | export const isInternationalized = ( |
| 113 | element: unknown |
no test coverage detected
searching dependent graphs…