How to detect unused string keys in Flutter ARB files? 

Keeping code and translations tidy is essential for ensuring smooth development and localization processes. Unused translations in localization files can cause problems such as cluttered files, slower translation times, increased maintenance costs, and longer app loading times. Therefore, it's important to regularly review and remove any unused translations to avoid these problems.

One simple way to achieve this is by creating a command line program that lists all unused string keys in your Flutter project. An example code that can be used as a starting point in creating such a program is provided below.

Flutter internationalization tutorial:

Copyrights 2026 © Localizely