Skip to content

Commit

Permalink
chore: upgrade slang 3.26.0
Browse files Browse the repository at this point in the history
  • Loading branch information
han2-n committed Dec 4, 2023
1 parent a02b683 commit 468d90b
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion lib/core/presentation/hook/use_i18n.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ import 'package:erb_flutter_boilerplate/i18n/i18n.dart';
I18n useI18n() {
final context = useContext();

return Translations.of(context);
return I18n.of(context);
}
1 change: 0 additions & 1 deletion lib/i18n/i18n.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
export 'strings.g.dart';
export 'translate_provider.dart';
export 'helper.dart';
export 'typedef.dart';
3 changes: 0 additions & 3 deletions lib/i18n/typedef.dart

This file was deleted.

4 changes: 1 addition & 3 deletions slang.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@ fallback_strategy: base_locale
input_directory: lib/i18n
input_file_pattern: .i18n.json
output_directory: lib/i18n
# output_format: multiple_files
# input_file_pattern: .i18n.yaml
translate_var: translate
string_interpolation: dart
key_case: camel
key_map_case: camel
translation_class_visibility: public
class_name: I18n

0 comments on commit 468d90b

Please sign in to comment.