vue-i18n-locale-message icon indicating copy to clipboard operation
vue-i18n-locale-message copied to clipboard

change the return value of the diff API to an object

Open kiibo382 opened this issue 3 years ago • 1 comments

The return value is a boolean, which is difficult to use, so I want to change the return value of the diff API to an object. For example,

const jsonDiff = require('json-diff')

return jsonDiff.diff({ foo: 'bar' }, { foo: 'baz' });

// Return:
// { foo: { __old: 'bar', __new: 'baz' } }

kiibo382 avatar Aug 05 '21 05:08 kiibo382

add the normalize option to the diff API.

kiibo382 avatar Aug 06 '21 09:08 kiibo382