localizely / intl_utils

Dart package that creates a binding between your translations from .arb files and your Flutter app
BSD 3-Clause "New" or "Revised" License
134 stars 81 forks source link

Add line separator attribute (CRLF) #118

Open Nikzed opened 1 year ago

Nikzed commented 1 year ago

We've been coding a lot on my current job, and came to agreement to make all files in CRLF line separators, since this is more fitable for our project.

I have a problem with persistent appearing in commit window with generated files image where the only difference seem to be only in separators image how can we change it from being generated in LF to CRLF?

Lochinor commented 1 month ago

I add eol config, https://github.com/Lochinor/intl_utils you can delete .pub-cache\global_packages\intl_utils\bin\generate.dart-3.5.3.snapshot them replace libs files at .pub-cache\hosted\pub.dev\intl_utils-2.8.7 last add eol: 'CRLF' after flutter_intl like this: image

Lochinor commented 4 weeks ago

Simple Used:

dev_dependencies:
  intl_utils:
    git:
      url: https://github.com/Lochinor/intl_utils.git

run command

dart run intl_utils:generate
Nikzed commented 4 weeks ago

@Lochinor can you please submit a pull request on that?

Lochinor commented 3 weeks ago

This PR https://github.com/localizely/intl_utils/pull/134 It hasn't been updated for a long time.

also you can use by build style. https://github.com/Lochinor/intl_gen