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

outdated

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": ["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.0")}");
  print("ES: ${localizer.get("es", "hello.0")}");
  print("FR: ${localizer.get("fr", "hello-world")}");
  print("DE: ${localizer.get("de", "hello-world")}");
}
1
likes
0
pub points
27%
popularity

Publisher

verified publisherlinwood.dev

A starting point for Dart libraries or applications.

Repository (GitHub)
View/report issues

Documentation

Documentation

License

unknown (LICENSE)

Dependencies

meta, sprintf, yaml

More

Packages that depend on localizer