localizer 1.0.0 copy "localizer: ^1.0.0" to clipboard
localizer: ^1.0.0 copied to clipboard

retractedoutdated

A starting point for Dart libraries or applications.

example/localizer_example.dart

import 'package:localizer/localizer.dart';

void main() {
  var localizer = Localizer();
  localizer.loadMap("en", {"hello-world": "Hello world!"});
  localizer.loadMap("es", {"hello-world": "Hola mundo!"});
  localizer.loadMap("fr", {"hello-world": "Bonjour le monde!"});
  localizer.loadMap("de", {"hello-world": "Hallo Welt!"});

  print("EN: ${localizer.get("en", "hello-world")}");
  print("ES: ${localizer.get("es", "hello-world")}");
  print("FR: ${localizer.get("fr", "hello-world")}");
  print("DE: ${localizer.get("de", "hello-world")}");
}
1
likes
0
points
53
downloads

Documentation

Documentation

Publisher

verified publisherlinwood.dev

Weekly Downloads

A starting point for Dart libraries or applications.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

meta, sprintf, yaml

More

Packages that depend on localizer