From 1845a255cf4e22cf4c5ab4f1f796d9911c43de9a Mon Sep 17 00:00:00 2001 From: lamnhan066 Date: Sat, 2 Dec 2023 21:54:10 +0700 Subject: [PATCH] Update CHANGELOG, README, version --- CHANGELOG.md | 4 ++++ README.md | 4 ++-- pubspec.yaml | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a4df29a..9ad8fa0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/README.md b/README.md index 39e7331..850920c 100644 --- a/README.md +++ b/README.md @@ -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', }, ), @@ -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:** diff --git a/pubspec.yaml b/pubspec.yaml index 16b5d35..534012f 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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: