Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove unused keys in Flutter Intl

In my flutter app I am using Intl by its official Jetbrains plugin to handle the localizations, and it works great. Currently i'm supporting 3 different languages, therefore I have 3 different locale.

For example, if I add a key only for my default language, the tool creates the key in the intl_en.arb and the boilerplate in the I10n.dart and messages_en.dart. Later i can add the same key in the intl_it.dart and the tool updates the boilerplate where is needed.

But i can't find how to safely remove a key, o remove all the unused keys. Am i missing some documentation? thanks in advance

like image 903
Biiz Avatar asked Sep 02 '25 06:09

Biiz


1 Answers

I believe not.
According to the opened issue, that feature should be available in one of the upcoming plugin releases.

like image 55
Zoran Luledzija Avatar answered Sep 04 '25 19:09

Zoran Luledzija