Skip to content

Commit

Permalink
feat(app): add singular to inhibitor description
Browse files Browse the repository at this point in the history
  • Loading branch information
tamslo committed Dec 6, 2024
1 parent 9b48817 commit 692db3c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/lib/common/widgets/gene_modulator_list.dart
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class GeneModulatorList {
_getModulatorDrugNames(context, modulatorDefinition, geneName);
if (drugNames.isEmpty) continue;
final getDescription = subdefinition.key;
content[getDescription(geneName)] = drugNames;
content[getDescription(drugNames.length, geneName)] = drugNames;
}
return content;
}
Expand Down
12 changes: 10 additions & 2 deletions app/lib/l10n/app_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -612,18 +612,26 @@
"faq_contact_us": "Do you have unanswered questions or feedback? Contact us",
"@faq_contact_us": {},

"strong_inhibitors_description": "Strong {geneName} inhibitors:",
"strong_inhibitors_description": "{inhibitorNumber, plural, =1{Strong {geneName} inhibitor:} other{Strong {geneName} inhibitors:}}",
"@strong_inhibitors_description": {
"placeholders": {
"inhibitorNumber": {
"type": "int",
"example": "2"
},
"geneName": {
"type": "String",
"example": "CYP2D6"
}
}
},
"moderate_inhibitors_description": "Moderate {geneName} inhibitors:",
"moderate_inhibitors_description": "{inhibitorNumber, plural, =1{Moderate {geneName} inhibitor:} other{Moderate {geneName} inhibitors:}}",
"@moderate_inhibitors_description": {
"placeholders": {
"inhibitorNumber": {
"type": "int",
"example": "2"
},
"geneName": {
"type": "String",
"example": "CYP2D6"
Expand Down

0 comments on commit 692db3c

Please sign in to comment.