nepali_utils는 네팔어 및 네팔 문화 작업을 위한 포괄적인 유틸리티 세트를 제공하는 순수한 Dart 패키지입니다. 그레고리력과 비크람 사무바트 역법 간의 변환 도구, 네팔 날짜 형식 지정, 네팔 숫자 처리, 네팔 유니코드 문자 관리, 네팔 순간 표현 기능이 포함되어 있습니다. 네팔어 사용자를 대상으로 하는 개발자를 위해 설계되었으며, 다양한 플랫폼에서 로컬라이제이션 작업을 단순화합니다.
사용 사례
네팔 사용자를 위한 앱 로컬라이징
그레고리력에서 네팔 날짜로 변환
네팔 숫자 및 날짜 형식 지정
네팔어 유니코드 텍스트 지원
문화적으로 관련 있는 디지털 경험 구축
네팔 달력 시스템 통합
주요 기능
그레고리력에서 네팔력으로의 날짜 변환
네팔 숫자 형식
네팔어 유니코드 지원
네팔 달력용 날짜 포맷터
크로스 플랫폼 호환성
Flutter pub를 통한 간편한 통합
적합한 대상
네팔을 대상으로 한 플러터 앱
다국어 앱을 개발하는 개발자
네팔 달력 지원이 필요한 앱
네팔어 로컬라이제이션을 포함하는 프로젝트
문화적 날짜 처리가 필요한 Dart 기반 도구
고려 사항
네팔 달력 시스템에 대한 이해가 필요합니다
네팔 전용 기능에 한정
추가 로컬라이제이션 레이어가 필요할 수 있습니다
비네파르어 맥락에는 적합하지 않습니다
변환을 위해서는 정확한 입력 데이터에 의존합니다
원본 README
연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.
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.