I just tested this on the `master` branch with [this repo](https://github.com/shihaohong/gen_l10n_l10n_yaml_test) and it seems to generate correctly. Could you file a new issue with reproducible code? _Originally posted by @shihaohong in https://github.com/flutter/flutter/issues/71127#issuecomment-817545607_