Override values of javacript objects in react : I have 2 javascript objects, the first is the default object, the second is the override for the first.

Object 1:

    export const messages = {
    'id': 'id',
    'category': 'category',
    'country': 'country',
    'continent': 'continent',
    'city': 'city',
    'field': 'field',
    'price': 'price',
    'name': 'name',
};

Object 2:

    window.messages['id'] = 'id';
    window.messages['category'] = 'section';
    window.messages['country'] = 'country';

This seems stupid but there is reason to this rediculousness

I am wondering if there is a way for me to override object 1 with object 2 without crushing over object 1. These are both external files.

I appologize for my bad spelling and description

Thank you ahead of time