Feature request: Add --[no]-required-resource-attributes flag
Closed this issue · 5 comments
Hi, thank you for your plugin, it's a convenient tool.
Could you add support
--[no]-required-resource-attributes
flag, please.
From this:
PS: And for plugins too. thank you.
Hi @t1r
Thanks for opening this topic.
It seems gen_l10n tool decided to add this flag because resource attributes were required for that tool before.
For intl_utils
they were not required.
Did you want to have a flag that forces resource attributes to be required?
I would keep this issue open for some time to see if it will get many upvotes.
For intl_utils they were not required.
Hm, it's very strange, but in my case, I got error, when try generate strings without meta information, like this:
flutter/flutter#67207
I'm use idea plugin +
intl_utils: ^1.9.0
flutter_intl:
enabled: true
Hi @t1r
Do you maybe have l10n.yaml
file in the root of the project? Asking because in that case that is an error from gen_l10n
tool. And you should use either gen_l10n
or Flutter Intl
plugin, not both.
If that is not the case, could you paste here strings in ARB files for which you get such errors , so I can test them?
Hi.
Sorry for the delayed response.
I think the problem is in my project, but I haven’t found out the concrete reason (there is no l10n.yaml file in my old project).
I created a new project and added the same dependencies and it’s working fine and doesn't require attributes.
Hi @t1r
Great that you solved it.
I will close this issue now, but in case you find out what was the cause, please share it here, so we can potentially improve it.