slang-i18n / slang

Type-safe i18n for Dart and Flutter
https://pub.dev/packages/slang
MIT License
474 stars 39 forks source link

Wrong unused_translations.json result when variable is formatted in more than 1 line #133

Closed wilyanto closed 1 year ago

wilyanto commented 1 year ago

Description Wrong information on _unused_transalations.json that generated from flutter pub run slang analyze --full (example and how to reproduce attached)

image

To Reproduce Make a nested variable and called it in more than a line formatted, e.g:

t.profile.
  name

(new lined due to formatter suggestion), instead of

t.profile.name

Hope this issue will be solved. This feature is really helpful if the result is correctly aligned 👍

wilyanto commented 1 year ago

Hello @Tienisto, could you please take a look at this issue? Thank you before for the amazing package 😀

Tienisto commented 1 year ago

Thanks for raising this issue. This should be fixed in v3.15.1. Let me know if the error still exist!