Shouldn't this be `return memoizedJsonContents[locale][messageName];`?