We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug Im not able to generate translations using enums as params and pluralization.
"assetTypePlural(param=assetType)": { "stock": { "one": "{count} ação", "other": "{count} ações" }, "stockIndex": { "one": "{count} índice", "other": "{count} índices" } }
Throws exception in this line: digestedMap[entry.key] = entry.value as StringTextNode;
digestedMap[entry.key] = entry.value as StringTextNode;
type 'PluralNode' is not a subtype of type 'StringTextNode' in type cast package:slang/builder/builder/translation_model_builder.dart 328:52
The text was updated successfully, but these errors were encountered:
This would be a great feature to add ! Looking forward to it :)
Sorry, something went wrong.
The generated code will look quite complicated and I don't know a clean solution for that.
This technically implies, that you can nest any leaf with any other leaf. (Leaves are: String, RichText, Plural, Context (Enum))
String
RichText
Plural
Context (Enum)
No branches or pull requests
Describe the bug
Im not able to generate translations using enums as params and pluralization.
Throws exception in this line:
digestedMap[entry.key] = entry.value as StringTextNode;
The text was updated successfully, but these errors were encountered: