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 Aug 25, 2023
1 parent 6d9e506 commit 3560000
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## 0.7.0

* Add `syncWithDevice` parameter to sync the language with the device language, auto apply on changed.
* The `initialCode` will keeps its value correctly. In the past version, the `initialCode` maybe changed to the local code (from SharedPreferences).
* The `useInitialCodeWhenUnavailable` now works correcly.
* Add more test cases.

## 0.6.0

* Automatically run `dart format` for the generated files when running `dart run language_helper:generate`.
Expand Down
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ main() async {
// [Optional] Default is set to the device locale (if available) or the first language of [data]
initialCode: LanguageCodes.en,
// [Optional] Change the app language when the device language is changed.
syncWithDevice: true,
);
runApp(const MyApp());
Expand Down Expand Up @@ -238,7 +241,7 @@ dart run language_helper:generate
If you want to change the generating path, using this:

``` cmd
dart run language_helper:generate --path=.example/lib
dart run language_helper:generate --path=./example/lib
```

This command will also run `dart format` for the generated files, so you can easily manage the translations using the version control.
Expand Down Expand Up @@ -283,8 +286,4 @@ final data = LanguageDataSerializer.fromJson(json);

## Contributions

As the project is currently in its early stages, it may contain bugs or other issues. Should you experience any problems, we kindly ask that you file an issue to let us know. Additionally, we welcome contributions in the form of pull requests (PRs) to help enhance the project.

## Note

- The `${param}` works in all cases, the `@param` only work if the text ends with a white space, the end of a line, or the end of a new line.
As the project is currently in its early stages, it may contain bugs or other issues. Should you experience any problems, we kindly ask that you file an issue to let us know. Additionally, we welcome contributions in the form of pull requests (PRs) to help enhance the project.
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.6.0
version: 0.7.0
homepage: https://github.com/vnniz/language_helper

environment:
Expand Down

0 comments on commit 3560000

Please sign in to comment.