feat(ui): extracts relationship input for external use (#12339)

This commit is contained in:
Jarrod Flesch
2025-05-15 14:54:26 -04:00
committed by GitHub
parent bd6ee317c1
commit 88769c8244
15 changed files with 1203 additions and 855 deletions

View File

@@ -128,10 +128,7 @@ export async function translateObject(props: {
for (const missingKey of missingKeys) {
const keys: string[] = missingKey.split('.')
const sourceText = keys.reduce(
(acc, key) => acc[key],
fromTranslationsObject,
)
const sourceText = keys.reduce((acc, key) => acc[key], fromTranslationsObject)
if (!sourceText || typeof sourceText !== 'string') {
throw new Error(
`Missing key ${missingKey} or key not "leaf" in fromTranslationsObject for lang ${targetLang}. (2)`,