Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
dragos-dobre authored Oct 24, 2022
1 parent 19fd587 commit 8f14ff7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import messages_fr from "./translations/fr.json";

const DEFAULT_CONFIG = {
"translations": [{ key: 'fr', messages: messages_fr }],
"translations": [{ key: 'fr', messages: flatten(messages_fr) }],
}

export const LanguageFrModule = (cfg) => {
return { ...DEFAULT_CONFIG, ...cfg };
}
}

0 comments on commit 8f14ff7

Please sign in to comment.