configNotSpecifiedError property

String configNotSpecifiedError
final

Error message displayed when no configuration is specified.

This error occurs when the user runs the tool without providing the required configuration in pubspec.yaml or translations_code_gen.yaml.

The message guides users to specify input and output files for keys and values generation in their configuration file.

Returns: A String containing the detailed error message with examples

Implementation

static final configNotSpecifiedError = '''
------------------------------------------------------------------------------------------------------------
-> Configuration not specified.
-> You must specify the input and output files for the keys and values generation.
-> Specify in the pubspec.yaml file or create a translations_code_gen.yaml file to specify it.

-> Example:
  translations_code_gen:
    keys:
      input: 'assets/translations/en.json'
      output: 'lib/translations/keys.dart'
    values:
      input: 'assets/translations/'
      output: 'lib/translations/values/'

-> Please check your pubspec.yaml or translations_code_gen.yaml file.
-> For more information visit: https://pub.dev/packages/translations_code_gen
-> or visit: https://github.com/youhanasheriff/translations_code_gen
------------------------------------------------------------------------------------------------------------
''';