Um pacote puro em Dart com uma coleção de utilitários nepaleses, como conversor de data, formatador de data, DateTime, números nepaleses, Unicode nepales, momentos nepaleses e muito mais.
Orientação gerada a partir de informações públicas. Apenas para referência.
nepali_utils é um pacote puro em Dart que oferece um conjunto abrangente de utilitários para trabalhar com o idioma e a cultura nepalesa. Inclui ferramentas para converter entre os calendários gregoriano e Bikram Sambat, formatar datas nepalesas, lidar com numerais nepaleses, gerenciar caracteres Unicode nepaleses e representar momentos nepaleses. Projetado para desenvolvedores voltados para audiências falantes de nepali, simplifica tarefas de localização em múltiplas plataformas.
Aplicativos que exigem suporte ao calendário nepali
Projetos envolvendo localização em nepali
Ferramentas baseadas em Dart que precisam de tratamento cultural de datas
Considerações
Requer compreensão do sistema de calendário nepali
Limitado a recursos específicos do Nepal
Pode ser necessário camadas adicionais de localização
Não adequado para contextos não nepaleses
Depende de dados de entrada precisos para conversões
README original
Snapshot do README original do repositório-fonte vinculado. Consulte o repositório para o conteúdo mais recente.
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.