-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Labels
bugSomething isn't workingSomething isn't workinghelp wantedExtra attention is neededExtra attention is needed
Description
Describe the bug
When I create string in crowdin website with variable {business} inside text it creates arb file with string with such structure
"some_translation": "Discount for {business}"
As it's not structure, crowdin generator makes corrupted class
"some_translation": "Discount for {business}",
"@some_translation": {
"placeholders": {
"business": {
"type": "String"
}
}
},

To Reproduce
Steps to reproduce the behavior:
- Latest sdk (0.6.3)
- Create arb file:
{
"@@locale": "en",
"some_translation": "Discount for {business}"
}
- Generate class with
fvm flutter gen-l10n
fvm dart run crowdin_sdk:gen - Try to run app
- See an error
Expected behavior
Generator makes not getter for this string but function with parameter that could be passed into as default intl generates
String some_translation(Object business);
Environment
- Crowdin Flutter SDK: 0.6.3
- Flutter version: 3.24.1
- Dart version: bundled in flutter
Additional context
I'm using crowdin on the web to create strings
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinghelp wantedExtra attention is neededExtra attention is needed