gsheet_to_arb 0.1.11 copy "gsheet_to_arb: ^0.1.11" to clipboard
gsheet_to_arb: ^0.1.11 copied to clipboard

Imports Application Resource Bundle (ARB) from Google Sheets documents

example/lib/main.dart

import 'package:intl/intl.dart';

import 'l10n/_messages_all.dart';
import 'l10n/l10n.dart';

void main() async {
  print('MAIN');

  Intl.defaultLocale = 'pl';
  await initializeMessages(Intl.defaultLocale);

  final l10n = L10n();

  print(l10n.title);
  print(l10n.login);
  print(l10n.singleArgument('arg'));
  print(l10n.twoArguments('arg1', 'arg2'));

  // plurals
  print(l10n.numberOfSongsAvailable(0));
  print(l10n.numberOfSongsAvailable(1));
  print(l10n.numberOfSongsAvailable(2));
  print(l10n.numberOfSongsAvailable(5));
  print(l10n.numberOfSongsAvailable(10));

  
}
14
likes
35
points
63
downloads

Publisher

verified publisherallbright.io

Weekly Downloads

Imports Application Resource Bundle (ARB) from Google Sheets documents

Repository (GitHub)
View/report issues

License

BSD-2-Clause-Views (license)

Dependencies

args, code_builder, dart_style, file_utils, googleapis, googleapis_auth, intl, intl_translation, json_annotation, logging, path, petitparser, quiver, recase, yaml

More

Packages that depend on gsheet_to_arb