translations_keychain 0.0.3 copy "translations_keychain: ^0.0.3" to clipboard
translations_keychain: ^0.0.3 copied to clipboard

A Dart builder to convert the JSON translation files into an abstract class for label suggestions.

example/lib/example.dart

library example;

import 'package:example/i18n/translations_keychain.dart';

void main() {
  // Simple label
  print(TranslationsKeychain.HELLO);

  // Label with numbers
  print(TranslationsKeychain.A_123);

  // Label with spaces
  print(TranslationsKeychain.LABEL_WITH_SPACES);

  // Label with symbols
  print(TranslationsKeychain.LABEL_WITH_SYMBOLS);

  // Label with pluralization with [easy_localization] package
  // print(TranslationsKeychain.CLICKED.plural(counter));
}
1
likes
40
points
11
downloads

Publisher

unverified uploader

Weekly Downloads

A Dart builder to convert the JSON translation files into an abstract class for label suggestions.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

basic_utils, build, glob, path

More

Packages that depend on translations_keychain