diff --git a/lib/utils/i18n.js b/lib/utils/i18n.js index 94c1488f..f781b568 100644 --- a/lib/utils/i18n.js +++ b/lib/utils/i18n.js @@ -19,15 +19,13 @@ export const interface_translation = transformStructFirstSpec( const withNamespace = (namespace, addons = {}) => (obj) => - consolidate(obj, (acc, [lang, translation]) => ({ - ...Object.assign(acc, { - [lang]: { - [namespace]: { - ...translation, - ...addons, - }, + consolidate(obj, (acc, [lang, translation]) => Object.assign(acc, { + [lang]: { + [namespace]: { + ...translation, + ...addons, }, - }), + }, })); const englishIsDefault = (translation_object) => {