gettext 1.1.0+2
gettext: ^1.1.0+2

Dart native js
Flutter Android iOS web

Platform agnostic dart implementation of gettext, a localization framework.

example/main.dart

import 'dart:convert';
import 'dart:io';

import "package:gettext/gettext.dart";

void main() async {
  final data = await File("./en_US.json").readAsString();

  final gt = new Gettext();
  gt.addLocale(json.decode(data));

  print(gt.gettext("Hello"));
  print(gt.ngettext("An apple", "%d apples", 1));
  print(gt.ngettext("An apple", "%d apples", 3));
}
1
likes
90
pub points
78%
popularity

Platform agnostic dart implementation of gettext, a localization framework.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

cah4o3@gmail.com

License

MIT (LICENSE)

More

Packages that depend on gettext