Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pluralization feature not working for static keys #92

Closed
oysteinhodne opened this issue Jul 11, 2022 · 5 comments
Closed

Pluralization feature not working for static keys #92

oysteinhodne opened this issue Jul 11, 2022 · 5 comments
Labels
wontfix This will not be worked on

Comments

@oysteinhodne
Copy link

oysteinhodne commented Jul 11, 2022

It seems like the generation of plural keys is not working correctly at the moment.
The generated keys file in the static_keys example does not generate the key "Plural.demo", only the children of it (Plural.demo.zero etc.). Which in turn gives a compilation error when I try to use the key in my widget, as the key does not exist.

I thought originally i was doing something wrong, but the generated files in the example also does this.

image

Am i correct in assuming that the example will not work either? Or am i doing something wrong when i get the compilation error when running:

translatePlural(Keys.Plural_Demo, _counter)

@bratan
Copy link
Member

bratan commented Jul 11, 2022

I think the generation of plural keys needs to be updated in flutter_translate_gen in order for pluralization to work correctly after the latest changes in flutter_translate.

I don't have time currently to update the generator.

@stale
Copy link

stale bot commented Sep 9, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Sep 9, 2022
@stale stale bot closed this as completed Sep 17, 2022
@faustodc
Copy link

faustodc commented Nov 7, 2022

This issue shouldn't be closed if it's not resolved, it's still a problem.

@bratan
Copy link
Member

bratan commented Nov 7, 2022

This issue is related to Flutter-Translate-Gen which is discontinued and is not going to be updated any longer.

@faustodc
Copy link

faustodc commented Nov 7, 2022

Sorry for not realizing that, then perhaps the readme and wiki should be updated to reflect that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

3 participants