Getting Started

Getting Started

infobits-intl provides comprehensive internationalization data including countries, languages, currencies, and continents. Each entity comes with ISO-standard codes, metadata, SVG country flags, and translations in multiple languages.

What's Included

  • 248+ countries with ISO 3166-1 alpha-2/alpha-3 codes, capitals, calling codes, TLDs, and more
  • 185+ languages with ISO 639-1 codes, native names, and dialects
  • 179+ currencies with ISO 4217 codes, symbols, and plural forms
  • 7 continents with country groupings
  • SVG country flags embedded as strings
  • Translations for all entities in 7 locales: Danish, German, English, Spanish, French, Italian, and Chinese

Installation

dart pub add infobits_intl

Quick Example

Look up a country and print its details:

import 'package:infobits_intl/infobits_intl.dart';

void main() {
  final country = Country.fromAlpha2Code('US');
  if (country != null) {
    print(country.nativeName);  // United States
    print(country.alpha3Code);  // USA
    print(country.capital);     // Washington, D.C.
  }
}

Type-Safe Code Constants

Each package provides typed constants for country, language, currency, and continent codes, enabling autocompletion and compile-time safety.

// Dart uses enums for type safety
print(Country.unitedStates.nativeName); // United States
print(Country.unitedStates.emojiFlag);  // flag emoji