Skip to content

Commit

Permalink
parse json content
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaswhyyou committed Dec 27, 2023
1 parent 05edcb2 commit d14e93c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/marshal/translation/processor.isomorphic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ export const buildTranslationDirBundle = (
return Object.fromEntries(
translations.map((translation) => [
formatFileName(translation),
translation.content,
JSON.parse(translation.content),
]),
);
}

const translation = input;
return {
[formatFileName(translation)]: translation.content,
[formatFileName(translation)]: JSON.parse(translation.content),
};
};

0 comments on commit d14e93c

Please sign in to comment.