thai_buddhist_date 0.2.1 copy "thai_buddhist_date: ^0.2.1" to clipboard
thai_buddhist_date: ^0.2.1 copied to clipboard

A small Dart package for parsing and formatting Thai Buddhist (พ.ศ.) dates.

Changelog #

0.2.1 Multi-language API and docs #

  • Add ThaiDateSettings.useLocale(String) for setting any locale code globally.
  • Add TbdLocales class with constants for common language/region codes (e.g., 'fr', 'ar', 'ja', 'zh', etc.).
  • Update documentation: professional multi-language date/time/date&time usage, clear examples for all major languages.

0.2.0 API polish and ergonomics #

  • Clear separation between core date utilities and UI pickers (moved to thai_buddhist_date_pickers).
  • Added ThaiLanguage (thai/english) convenience and locale-aware ensureInitialized.
  • Introduced ThaiDateSettings for global defaults (default era/locale) and helpers to switch Thai/English.
  • Added ThaiFormatter reusable formatter class.
  • Added DateTime.toThaiString() and String.toThaiDate() extensions.
  • Kept all existing APIs for backward compatibility.

0.1.4 Docs cleanup and examples update #

  • Remove Bottom Sheet pickers from package features and examples to align with current scope.
  • Update demo and package READMEs accordingly.
  • No API or behavior changes in the core library.

0.1.2 Lint/format cleanup #

  • Fix while-block lint and ensure package is dart formatted.
  • No behavior changes.

0.1.3 Metadata fix #

  • Update repository URL to non-.git form and fix repo verification by renaming root app. No code changes.

0.1.1 Dependency update #

  • Widen intl constraint to support latest stable releases (up to <0.21.0). No code changes.

0.1.0 Initial #

  • Initial implementation: parse/format Thai Buddhist (พ.ศ.) dates
  • Token-aware formatting, parse BE/CE automatically
  • Helpers: formatSync, formatInitialized, formatWith/parseWith
  • Unit tests
1
likes
0
points
21
downloads

Publisher

verified publisherkidpech.app

Weekly Downloads

A small Dart package for parsing and formatting Thai Buddhist (พ.ศ.) dates.

Repository (GitHub)
View/report issues

Topics

#thai #buddhist #be #date

License

unknown (license)

Dependencies

intl

More

Packages that depend on thai_buddhist_date