{"id":13424493,"url":"https://github.com/whity/crystal-i18n","last_synced_at":"2026-01-16T18:25:45.979Z","repository":{"id":67232780,"uuid":"43634451","full_name":"whity/crystal-i18n","owner":"whity","description":null,"archived":false,"fork":false,"pushed_at":"2016-10-29T19:11:31.000Z","size":577,"stargazers_count":7,"open_issues_count":2,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-08-01T00:41:17.007Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Crystal","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/whity.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-10-04T11:39:00.000Z","updated_at":"2023-02-02T09:36:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"d53d67f5-3f1a-4a45-99bd-d9dfcdb7823b","html_url":"https://github.com/whity/crystal-i18n","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/whity%2Fcrystal-i18n","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whity%2Fcrystal-i18n/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whity%2Fcrystal-i18n/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whity%2Fcrystal-i18n/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/whity","download_url":"https://codeload.github.com/whity/crystal-i18n/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221601420,"owners_count":16850349,"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-07-31T00:00:55.162Z","updated_at":"2026-01-16T18:25:45.965Z","avatar_url":"https://github.com/whity.png","language":"Crystal","funding_links":[],"categories":["Crystal"],"sub_categories":[],"readme":"# i18n\n\n## Installation\n\nAdd this to your application's `shard.yml`:\n\n```yaml\ndependencies:\n  i18n:\n    github: whity/crystal-i18n\n```\n\n## Usage\n\n\n```crystal\nrequire \"i18n/backend/yaml\"\n\n# create a i18n object\ni18n = I18n.from_yaml_files(\"[folder where the locale files are located]\")\n\n# simple translation\ni18n.translate(\"hello\")\n\n# pluralization\ni18n.translate(\"new_message\", count: 2)\n\n# number format\ni18n.number(123.to_s)\n\n# currency format\ni18n.currency(12345.to_s)\n\n# time format\ni18n.time(Time.now)\n\n# date format\ni18n.date(Time.now, format: \"long\")\n```\n\n## Contributing\n\n1. Fork it ( https://github.com/[your-github-name]/i18n/fork )\n2. Create your feature branch (git checkout -b my-new-feature)\n3. Commit your changes (git commit -am 'Add some feature')\n4. Push to the branch (git push origin my-new-feature)\n5. Create a new Pull Request\n\n## Contributors\n\n- whity(https://github.com/whity) André Brás - creator, maintainer\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhity%2Fcrystal-i18n","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwhity%2Fcrystal-i18n","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhity%2Fcrystal-i18n/lists"}