locales 0.1.0
locales: ^0.1.0 copied to clipboard

discontinued

Locale codes strings ("en_US") and ISO 4217 currency codes ("USD").

locales #

Locale codes strings ("en_US") and ISO 4217 currency codes ("USD").

Example #

import 'package:locales/locales.dart';
import 'package:locales/currency_codes.dart';
import 'package:intl/intl.dart';

void main() {
  final locale = Locale.en_US;
  final currencyCode = CurrencyCode.usd;
  final format = NumberFormat.simpleCurrency(
      locale: '$locale', name: '$currencyCode', decimalDigits: 2);
  print(locale);                  // en_US
  print(currencyCode);            // USD
  print(format.format(123.456));  // $123.46
}
0
likes
0
pub points
75%
popularity

Suggested replacement

intl

Locale codes strings ("en_US") and ISO 4217 currency codes ("USD").

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

jifalops@gmail.com

More

Packages that depend on locales