aloisdeniel / aloisdeniel/flutter_sheet_localization

prefix and suffix for labels

Ouverte
#30 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub
question
Langage dominant
Dart
Étoiles
286
Forks
87
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

I would love to see the possibility to simply add a prefix or suffix to my translations. So instead of
```
final labels = AppLocalizations.of(context);
print(labels.dates.month.february+": ");
print(" " + labels.templated.contact(Gender.male, lastName: "John"));
```
I would love to write something like
```
final labels = AppLocalizations.of(context);
print(labels.dates.month.february..suffix(": "));
print(labels.templated.contact(Gender.male, lastName: "John")..prefix(" "));
```
And maybe the possibility to define own common used suffix and prefix like `": "` or `" "` and then easy access them like
`print(labels.dates.month.february..suffix.colon);` or `print(labels.dates.month.february..withColon());`

Best regards and thank you for the amazing package!

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.