Skip to content

Commit

Permalink
Update CHANGELOG, README, version
Browse files Browse the repository at this point in the history
  • Loading branch information
lamnhan066 committed Dec 2, 2023
1 parent e477902 commit 1845a25
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.7.3

* Beside using 'default' in `LanguageCondition` to set the default value, we can use '_' from this version.

## 0.7.2

* Update homepage URL.
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ LanguageData data = {
'1': 'You have @{number} dollar',
// Return this when the is no condition satisfied
'default': 'You have @{number} dollars',
'_': 'You have @{number} dollars',
},
),
Expand All @@ -52,7 +52,7 @@ LanguageData data = {
};
```

With the `LanguageConditions`, you can completely control which text is returned according to the condition of the parameters.
With the `LanguageConditions`, you can completely control which text is returned according to the condition of the parameters. You can use `'default'` or `'_'` to set the default value for the condition.

**Initialize the data:**

Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: language_helper
description: Make it easier for you to implement multiple languages into your app.
version: 0.7.2
version: 0.7.3
homepage: https://github.com/lamnhan066/language_helper

environment:
Expand Down

0 comments on commit 1845a25

Please sign in to comment.