Skip to content

Commit

Permalink
Fixed an issue with 3.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
vanlooverenkoen committed Oct 12, 2021
1 parent 9f475a6 commit abfa854
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## [3.6.1] - 2021-10-12
- Issue where an exception was thrown even when it was not needed.

## [3.6.0] - 2021-10-12
### Fixed
- #53: Issue where a carriage return `\r` would generate invalid documentation
Expand Down
7 changes: 4 additions & 3 deletions lib/src/translation_writer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,10 @@ class TranslationWriter {
newValue = newValue.replaceAll('%$index\$$type', '[arg$index string]');
} else if (type == 'd') {
newValue = newValue.replaceAll('%$index\$$type', '[arg$index number]');
} else {}
throw Exception(
'Unsupported argument type for $type. Supported types are -> s,d. Create a github ticket for support -> https://github.com/vanlooverenkoen/locale_gen/issues');
} else {
throw Exception(
'Unsupported argument type for $type. Supported types are -> s,d. Create a github ticket for support -> https://github.com/vanlooverenkoen/locale_gen/issues');
}
});
return newValue;
}
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: locale_gen
description: Dart tool that will convert your default locale json to dart code.
version: 3.6.0
version: 3.6.1
homepage: https://github.com/vanlooverenkoen/locale_gen

environment:
Expand Down

0 comments on commit abfa854

Please sign in to comment.