intlify / vue-i18n-locale-message

:globe_with_meridians: i18n locale messages management tool for vue-i18n
MIT License
73 stars 12 forks source link

Specify indentation when infusing #246

Open mrleblanc101 opened 1 year ago

mrleblanc101 commented 1 year ago

How do I use 4 space indentation instead of 2 space when infusing ? I tried to add --prettier=./.prettierrc when infusing, but it doesn't seem to work.

// .prettierrc
{
    "printWidth": 120,
    "tabWidth": 4,
    "semi": true,
    "singleQuote": true,
    "trailingComma": "all"
}
mrleblanc101 commented 1 year ago

The same would be nice for extracting, but not necessary.

mrleblanc101 commented 1 year ago

The plugin seem to detect the prettier file and load it correctly, but the replaced string still use 2 space for indentation.

Capture d’écran, le 2022-10-25 à 17 14 24