diff --git a/lib/core/presentation/hook/use_i18n.dart b/lib/core/presentation/hook/use_i18n.dart index bb33dc7..ef495fc 100644 --- a/lib/core/presentation/hook/use_i18n.dart +++ b/lib/core/presentation/hook/use_i18n.dart @@ -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); } diff --git a/lib/i18n/i18n.dart b/lib/i18n/i18n.dart index e3e4e6b..834328a 100644 --- a/lib/i18n/i18n.dart +++ b/lib/i18n/i18n.dart @@ -1,4 +1,3 @@ export 'strings.g.dart'; export 'translate_provider.dart'; export 'helper.dart'; -export 'typedef.dart'; diff --git a/lib/i18n/typedef.dart b/lib/i18n/typedef.dart deleted file mode 100644 index 2a4e1ba..0000000 --- a/lib/i18n/typedef.dart +++ /dev/null @@ -1,3 +0,0 @@ -import 'strings.g.dart'; - -typedef I18n = StringsVi; diff --git a/slang.yaml b/slang.yaml index 8385571..2a8c4c4 100644 --- a/slang.yaml +++ b/slang.yaml @@ -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 \ No newline at end of file +class_name: I18n \ No newline at end of file