Search packages, repositories and app categories

GitHub repositoryZsomborRajki/ordinal_formatter

ordinal_formatter

Ordinal formatter is a simple tool to covert numbers into their localised ordinal form. "2" -> "2nd"

ordinal_formatter project cover
Stars
5
Forks
4
Last push (UTC)
May 5, 2025
Project status
Active

Original README

English project snapshot. Visit GitHub for the latest content.

ordinal_formatter

A simple flutter plugin to convert numbers into ordinal string using the built in native iOS and android libraries.

Example:

final ordinalString = await OrdinalFormatter().format(2) ?? ''; // ordinalString value: '2nd'

Usage

import 'package:ordinal_formatter/ordinal_formatter.dart';

String ordinalNumber;
try {
    ordinalNumber = await OrdinalFormatter().format(2, 'en_US') ?? 'Unknown number';
} on PlatformException catch (e) {
    ordinalNumber = 'Formatting failed: $e';
}

Features

  • [X] iOS Support
  • [X] Android Support
  • [X] Web support
Zsombor Milán Rajki GitHub avatar
GitHub author

Zsombor Milán Rajki ↗

Telekom MMSBudapest
LanguagesDartRubyKotlinSwiftObjective-C

Packages published by this repository

Dependencies used

Dependency list 5 items

  • flutter{"sdk":"flutter"}
  • plugin_platform_interface^2.1.6
  • flutter_web_plugins{"sdk":"flutter"}
  • flutter_testDevelopment{"sdk":"flutter"}
  • flutter_lintsDevelopment^3.0.1

How do I choose a repository?

Start with your use case, compare repository activity, and check the original project before adopting it.

  1. Search by repository name, owner or description, then narrow the results by topic.
  2. Compare stars, forks and recent pushes. Stars show community interest, not a guarantee of quality.
  3. Read the README, license and issues on GitHub before using a project.

Sources and maintenance

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗