easy-i18n icon indicating copy to clipboard operation
easy-i18n copied to clipboard

Adding a key through the Plugin messes up yml files

Open Xirado opened this issue 2 years ago • 3 comments

Whenever i add a key through EasyI18n, it messes up the indentation of yml files (Usually the last key in the file)

Before

commands:
  setxpcard:
    too_large: File is too large! The maximum allowed size is {size}.
    success: Your background has been updated!
    invalid_upload: 'Invalid file extension! Valid extensions are: {extensions}'

After

commands:
  setxpcard:
    too_large: File is too large! The maximum allowed size is {size}.
    success: Your background has been updated!
        foo: Test
        invalid_upload: 'Invalid file extension! Valid extensions are: {extensions}'

Xirado avatar Aug 22 '22 21:08 Xirado

I could not reproduce this issue. Could you please provide the exact steps to reproduce this kind of misbehaviour?

Thanks.

marhali avatar Oct 14 '22 14:10 marhali

I could not reproduce this issue. Could you please provide the exact steps to reproduce this kind of misbehaviour?

Thanks.

Sadly i have a hard time reproducing this reliably myself. Sometimes it works and sometimes it doesn't...

Xirado avatar Oct 19 '22 08:10 Xirado

I could not reproduce this issue. Could you please provide the exact steps to reproduce this kind of misbehaviour?

Thanks.

Maybe when the tab format of the yaml file is two spaces。example【.editorconfig-->indent_size = 2】

slpcode avatar Oct 21 '22 06:10 slpcode