A pure dart package with collection of Nepali Utilities like Date converter, Date formatter, DateTime, Nepali Numbers, Nepali Unicode, Nepali Moments and many more.
Package selection guidance compiled from public package information, community data, and project usage.
nepali_utils is a pure Dart package offering a comprehensive set of utilities for working with Nepali language and culture. It includes tools for converting between Gregorian and Bikram Sambat calendars, formatting Nepali dates, handling Nepali numerals, managing Nepali Unicode characters, and representing Nepali moments. Designed for developers targeting Nepali-speaking audiences, it simplifies localization tasks across multiple platforms.
Use cases
Localizing apps for Nepali users
Converting Gregorian to Nepali dates
Formatting Nepali numbers and dates
Supporting Nepali Unicode text
Building culturally relevant digital experiences
Integrating Nepali calendar systems
Key features
Gregorian to Nepali date conversion
Nepali number formatting
Nepali Unicode support
Date formatter for Nepali calendar
Cross-platform compatibility
Easy integration via Flutter pub
Suitable for
Flutter apps targeting Nepal
Developers building multilingual apps
Apps requiring Nepali calendar support
Projects involving Nepali language localization
Dart-based tools needing cultural date handling
Considerations
Requires understanding of Nepali calendar system
Limited to Nepali-specific features
May need additional localization layers
Not suitable for non-Nepali contexts
Depends on accurate input data for conversions
Original README
Original README snapshot from the linked source repository. Visit the repository for the latest content.
Nepali Utilities for Dart
A pure dart package with collection of Nepali Utilities like Date converter, Date formatter, DateTime, Nepali Number, Nepali Unicode, Nepali Moments and many more.
Utility Classes
NepaliDateTime
DateConversion
NepaliDateFormat
NepaliNumberFormat
NepaliUnicode
NepaliMoment
many yet to come
Language Setup
Default language for Nepali Utility classes can be set as:
voidmain(){
NepaliUtils(Language.nepali);
}
This is completely optional. Default language will be English if not set.
Nepali Date Time
The class is similar to dart:core's DateTime class, except that, this works with Bikram Sambat.
print(NepaliMoment.fromBS(NepaliDateTime.parse('2076-03-22T08:41:14')));
// २२ दिन पछि
Here, the current DateTime is 2076-02-32 19:09:25 i.e. reference date
print(NepaliMoment.fromBS(NepaliDateTime.parse('2076-02-32T18:25:14'),
referenceDate: NepaliDateTime.parse('2076-02-32T18:34:14')));
// ९ मिनेट पहिलेprint(NepaliMoment.fromAD(DateTime.parse('2019-06-02T18:22:14'),
referenceDate: DateTime.parse('2019-06-15T18:34:14')));
// १३ दिन पहिले
If you want to contribute to the package, please feel free to submit issues or PR at Github Repo.
Also show some love by staring the repo :star:, if you like the package.
License
Copyright (c) 2020SarbagyaDhaubanjarPermissionis hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Softwareis
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.