Skip to content

Commit

Permalink
Prepare version 0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Aug 22, 2024
1 parent 648f85e commit 65bba9b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
- Released @ 8/2024 (UTC)
- chore: Separate translation features into df_config library, update comments
- chore: Update license information in code files
- feat: Add a catagory param to the tr exension method

## [0.2.0]

Expand Down
7 changes: 3 additions & 4 deletions lib/df_translate_src/tr_on_string_extension.dart
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,8 @@ extension TrOnStringExtension on String {
final defaultSettings = const ReplacePatternsSettings();
var input = this;
if (category.isNotEmpty) {
input = input
.splitByLastOccurrenceOf(defaultSettings.delimiter)
.join('||${category.isNotEmpty ? '$category${defaultSettings.separator}' : ''}');
input = input.splitByLastOccurrenceOf(defaultSettings.delimiter).join(
'||${category.isNotEmpty ? '$category${defaultSettings.separator}' : ''}',);
}

final config = TranslationManager.translationFileConfig;
Expand All @@ -51,4 +50,4 @@ extension TrOnStringExtension on String {
settings: configSettings ?? config.settings,
);
}
}
}

0 comments on commit 65bba9b

Please sign in to comment.