{"id":19580234,"url":"https://github.com/xclud/dart_persian","last_synced_at":"2025-04-27T08:32:14.970Z","repository":{"id":61974091,"uuid":"131852067","full_name":"xclud/dart_persian","owner":"xclud","description":"Persian utilities for Dart and Flutter.","archived":false,"fork":false,"pushed_at":"2022-12-11T12:43:14.000Z","size":101,"stargazers_count":10,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-25T12:54:40.316Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/persian","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xclud.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-05-02T13:09:01.000Z","updated_at":"2024-11-01T12:11:48.000Z","dependencies_parsed_at":"2023-01-26T23:20:21.955Z","dependency_job_id":null,"html_url":"https://github.com/xclud/dart_persian","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xclud%2Fdart_persian","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xclud%2Fdart_persian/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xclud%2Fdart_persian/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xclud%2Fdart_persian/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xclud","download_url":"https://codeload.github.com/xclud/dart_persian/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251112546,"owners_count":21538162,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T07:24:32.203Z","updated_at":"2025-04-27T08:32:09.941Z","avatar_url":"https://github.com/xclud.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![pub package](https://img.shields.io/pub/v/persian.svg)](https://pub.dartlang.org/packages/persian)\n\nUtilities and Humanizer for Persian language and culture.\n\n## Features\n* `PersianDate` class which converts a `DateTime` to Jalali date.\n* String corrections replacing `ي` with `ی` and `ك` with `ک`.\n* Humanize numbers to Persian text: 123 =\u003e صد و بیست و سه.\n* Convert numbers to Persian numbers: 123 =\u003e ۱۲۳.\n* Can be used in Dart and Flutter projects.\n* Supports all platforms (Android, iOS, macOS, Windows, Linux, Web).\n\n\n## Getting Started\n\nIn your `pubspec.yaml` file add:\n\n```dart\ndependencies:\n  persian: any\n```\n\n## Usage\n\nImport the package:\n\n```dart\nimport 'package:persian/persian.dart';\n```\n\nThen, use the extension methods:\n\n```dart\nString myText = '123456789';\nString myPersianText = myText.withPersianNumbers(); //Will be ۱۲۳۴۵۶۷۸۹\n```\n\n```dart\nDateTime myDate = DateTime.now();\nPersianDate myPersianDate = myDate.toPersian(); //Will be 1398/10/19\n```\n\n```dart\nint number = 123456789;\nString myPersianNumber = number.toPersianString(); //Will be صد و بیست و سه میلیون و چهارصد و پنجاه و شش هزار و هفتصد و هشتاد و نه\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxclud%2Fdart_persian","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxclud%2Fdart_persian","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxclud%2Fdart_persian/lists"}