Skip to content

Add an export statement for the public extensions in the LocaleKeys class #780

@rekire

Description

@rekire

I need to import always two imports to use my translations. Why not just adding an export to the generated file?

export 'package:easy_localization/src/public_ext.dart';

The line can be added here:

var file = '''
// DO NOT EDIT. This is code generated via package:easy_localization/generate.dart
// ignore_for_file: constant_identifier_names
abstract class LocaleKeys {
''';

What do you think about it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions