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

Block reformating of whole file

Open MarkerDave opened this issue 1 year ago • 1 comments

Is your feature related to a specific framework or general for this extension Using ruby on rails framework with yml files

Is your feature request related to a problem? Please describe. When using I18n-ally to add a key the whole translation file is reformatted causing hundreds of changes to be made to the existing yaml file instead of just adding a single translation key.

I have tried disabling all kind of yaml formatting settings but none seem to have an effect on i18n-ally and there seems to be no direct clear setting to disable full reformatting of yaml files for I18n-ally.

  "[yaml]": {
    "editor.defaultFormatter": null,
    "editor.formatOnSave": false,
    "prettier.enable": false,
  },
"yaml.format.singleQuote": false,
 "yaml.completion": false,
 "yaml.format.enable": false,
  "yaml.format.bracketSpacing": false,
  "yaml.extension.recommendations": false,
  "yaml.schemas": {},
  "yaml.schemaStore.enable": false,
  "i18n-ally.enabledFrameworks": [
    "ruby-rails"
  ]

Describe the solution you'd like An option to not fully reformat the translation yaml files when adding keys

MarkerDave avatar Dec 05 '23 12:12 MarkerDave

Did you find any solution ? It looks like it's a difference max line length that causes all the changes..

jjf21 avatar Apr 17 '24 10:04 jjf21