localization_generator 1.0.0 localization_generator: ^1.0.0 copied to clipboard
A flutter project that used to generate the localization file to help localization easier.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add localization_generator
With Flutter:
$ flutter pub add localization_generator
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
localization_generator: ^1.0.0
Alternatively, your editor might support dart pub get
or flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:localization_generator/dart/list.dart';
import 'package:localization_generator/dart/string.dart';
import 'package:localization_generator/exceptions/generate_exception.dart';
import 'package:localization_generator/exceptions/invalid_argument_exception.dart';
import 'package:localization_generator/exceptions/invalid_choice_exception.dart';
import 'package:localization_generator/exceptions/invalid_option_exception.dart';
import 'package:localization_generator/exceptions/localization_generator_exception.dart';
import 'package:localization_generator/exceptions/missing_close_curly_exception.dart';
import 'package:localization_generator/exceptions/missing_keys_exception.dart';
import 'package:localization_generator/exceptions/missing_open_curly_exception.dart';
import 'package:localization_generator/exceptions/parser_exception.dart';
import 'package:localization_generator/exceptions/reach_end_exception.dart';
import 'package:localization_generator/generator/app_localized_class_generator.dart';
import 'package:localization_generator/generator/app_localized_file_generator.dart';
import 'package:localization_generator/generator/generator.dart';
import 'package:localization_generator/generator/intl_generator.dart';
import 'package:localization_generator/generator/localization_class_generator.dart';
import 'package:localization_generator/loader/json_loader.dart';
import 'package:localization_generator/loader/loader.dart';
import 'package:localization_generator/main.dart';
import 'package:localization_generator/parser/icu_parser.dart';
import 'package:localization_generator/parser/parser.dart';
import 'package:localization_generator/parser/token.dart';