khmer_intl 0.1.1 copy "khmer_intl: ^0.1.1" to clipboard
khmer_intl: ^0.1.1 copied to clipboard

Khmer (km) internationalization helpers for Flutter/Dart: Khmer digits, date, currency and locale utilities.

Changelog #

All notable changes to this project will be documented in this file.

The format follows Keep a Changelog style and is adapted for pub.dev package releases.

0.1.1 - 2026-02-15 #

Added #

  • KhmerPlural.of(...) with {count} template replacement.
  • KhmerNumberFormat.compactCurrency(...) for financial compact output:
    • ៛ 1.2M
    • ៛ ១.២លាន
  • KhmerDateFormat.dateTime() preset constructor.
  • KhmerDateFormat.time() preset constructor.
  • Improved KhmerRelativeTime.format(...) phrases:
    • ឥឡូវនេះ
    • ម្សិលមិញ
    • មុន 5 ថ្ងៃ
  • Number to Khmer words conversion:
    • numberToKhmerWords(1250) -> មួយពាន់ពីររយហាសិប
    • int.toKhmerWords()
  • Documentation and example updates:
    • Updated README.md with new APIs and examples
    • Updated example/README.md with feature guide and outputs
    • Updated example app (example/lib/main.dart) to show new features

0.1.0 - 2026-02-15 #

Added #

  • Core digit conversion:
    • toKhmerDigits(String)
    • toLatinDigits(String)
  • Number formatting:
    • KhmerNumberFormat.decimal(...)
    • KhmerNumberFormat.currencyKHR(...)
    • KhmerCompactNumberFormat
    • KhmerPercentFormat
  • Date formatting:
    • KhmerDateFormat(pattern, ...)
    • Presets: shortDate, mediumDate, fullDate, fullDateTime
    • Khmer month/weekday data and Buddhist Era support
  • Extensions:
    • int.toKhmerDigits()
    • String.toKhmerDigits()
    • String.toLatinDigits()
    • num.toKhmerCurrency(...)
    • num.toKhmerCompact(...)
    • num.toKhmerPercent(...)
    • DateTime.toKhmerDate(...)
    • DateTime.toKhmerRelativeTime(...)
  • Relative time helper:
    • KhmerRelativeTime.format(...)
  • Plural helper:
    • khmerPlural(...)
  • Khmer lunar date model (approximate):
    • KhmerLunarDate.fromGregorian(...)
  • Example app enhancements:
    • Expanded demo UI covering all major features
    • Example Khmer LocalizationsDelegate
  • Documentation improvements:
    • Updated main README.md for pub.dev
    • Added detailed example/README.md guide with demo code and sample results
    • Added screenshot previews

Changed #

  • Migrated from template scaffold files to package-focused API surface.
  • Replaced default tests with feature-oriented tests.
  • Updated lint configuration for pure Dart package workflow.

Fixed #

  • Resolved invalid number-format subclassing issues.
  • Fixed extension recursion/namespace collisions.
  • Corrected analyzer/test issues across package and example.
1
likes
0
points
28
downloads

Documentation

Documentation

Publisher

verified publisheremdiya.com

Weekly Downloads

Khmer (km) internationalization helpers for Flutter/Dart: Khmer digits, date, currency and locale utilities.

Homepage
Repository (GitHub)
View/report issues

Topics

#khmer #i18n #localization #flutter #dart

License

unknown (license)

Dependencies

intl

More

Packages that depend on khmer_intl