Skip to content

Commit

Permalink
updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
jorre127 committed Oct 3, 2022
1 parent d5df4d5 commit 6e4dba8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ With version 9.0.0 of local gen you no longer have static access to the translat

```dart
class LocaleViewModel with ChangeNotifier {
static final Localization localization = Localization();
static final Localization localizationInstance = Localization();
...
void init(){
Expand All @@ -72,11 +72,11 @@ class LocaleViewModel with ChangeNotifier {
}
```

You can then access this localization instance anywhere in the project like:
You can then access this localizationInstance anywhere in the project like:
```dart
LocaleViewModel.localization.translation1;
LocaleViewModel.localization.translation2;
LocaleViewModel.localization.translation3;
LocaleViewModel.localizationInstance.translation1;
LocaleViewModel.localizationInstance.translation2;
LocaleViewModel.localizationInstance.translation3;
```

### Migration steps <7.0.0 to >=7.0.0
Expand Down

0 comments on commit 6e4dba8

Please sign in to comment.