konrad1977 / loco

A linter for Swift Localizations
MIT License
73 stars 2 forks source link

Keys are being used by still show that keys are unused #3

Closed ryanisnhp closed 2 years ago

ryanisnhp commented 2 years ago

I run loco on my project it shows that the key no_data_empty is unused but I search again in project and that key are being used. Do I use your localization format correctly or this is a bug?

image image
konrad1977 commented 2 years ago

It doesn't understand your extension on String. Change to NSLocalizedString or String(localization: ) and it should work just fine.

konrad1977 commented 2 years ago

I have a plan for this. Check back in a few days/week or two

konrad1977 commented 2 years ago

@ryanisnhp I just updated. Could you try again with the latest version?

ryanisnhp commented 2 years ago

I checked again on the latest version and it's ok @konrad1977