Skip to content

Commit

Permalink
🔖 2.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lsaudon committed Jan 23, 2024
1 parent 518f055 commit 86d065d
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 2.3.0

- ✨ Add superclass parameter case
- 🚨 Add lint rules
- ⬆️ Upgrade analyzer, cli_completion, file, mason_logger, path, mocktail, test

## 2.2.1

- 🐛 When method has same name of key
Expand Down
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,29 @@ class MyWidget extends StatelessWidget {
}
```

```dart
abstract class MySuperWidget extends StatelessWidget {
const MySuperWidget({
required this.l10n,
super.key,
});
final AppLocalizations l10n;
}
class MyWidget extends MySuperWidget {
const MyWidget({
required super.l10n,
super.key,
});
@override
Widget build(BuildContext context) {
return Text(l10n.helloMoon);
}
}
```

```dart
extension AppLocalizationsExtension on AppLocalizations {
String byKey(final String value) {
Expand Down
2 changes: 1 addition & 1 deletion lib/src/version.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: l10nization_cli
description: A Command-Line Interface to find unused l10n translations from an arb file.
version: 2.2.1
version: 2.3.0
homepage: https://github.com/lsaudon/l10nization_cli
repository: https://github.com/lsaudon/l10nization_cli
issue_tracker: https://github.com/lsaudon/l10nization_cli/issues
Expand Down

0 comments on commit 86d065d

Please sign in to comment.