{"id":13991829,"url":"https://github.com/formatjs/handlebars-intl","last_synced_at":"2026-01-11T13:30:23.626Z","repository":{"id":12596148,"uuid":"15267034","full_name":"formatjs/handlebars-intl","owner":"formatjs","description":"Handlebars helpers for internationalization.","archived":false,"fork":false,"pushed_at":"2022-03-25T21:02:25.000Z","size":902,"stargazers_count":264,"open_issues_count":17,"forks_count":26,"subscribers_count":23,"default_branch":"master","last_synced_at":"2025-04-05T09:47:11.476Z","etag":null,"topics":["formatjs","handlebars","internationalization","javascript","web"],"latest_commit_sha":null,"homepage":"http://formatjs.io/handlebars/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/formatjs.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}},"created_at":"2013-12-17T21:56:02.000Z","updated_at":"2024-11-11T21:16:57.000Z","dependencies_parsed_at":"2022-08-28T09:24:03.867Z","dependency_job_id":null,"html_url":"https://github.com/formatjs/handlebars-intl","commit_stats":null,"previous_names":["yahoo/handlebars-helper-intl","yahoo/handlebars-intl"],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/formatjs%2Fhandlebars-intl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/formatjs%2Fhandlebars-intl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/formatjs%2Fhandlebars-intl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/formatjs%2Fhandlebars-intl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/formatjs","download_url":"https://codeload.github.com/formatjs/handlebars-intl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247401310,"owners_count":20933047,"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":["formatjs","handlebars","internationalization","javascript","web"],"created_at":"2024-08-09T14:01:37.148Z","updated_at":"2026-01-11T13:30:23.583Z","avatar_url":"https://github.com/formatjs.png","language":"JavaScript","readme":"[Handlebars Intl][]\n===================\n\nThis library provides [Handlebars][] helpers for internationalization. The helpers provide a declarative way to format dates, numbers, and string messages with pluralization support.\n\n[![npm Version][npm-badge]][npm]\n[![Build Status][travis-badge]][travis]\n[![Dependency Status][david-badge]][david]\n\n[![Sauce Test Status][sauce-badge]][sauce]\n\n**This package used to be named `handlebars-helper-intl`.**\n\n\nOverview\n--------\n\n**Handlebars Intl is part of [FormatJS][], the docs can be found on the webiste:**\n**\u003chttp://formatjs.io/handlebars/\u003e**\n\n### Features\n\n- Display numbers with separators.\n- Display dates and times correctly.\n- Display dates relative to \"now\".\n- Pluralize labels in strings.\n- Support for 200+ languages.\n- Runs in the browser and Node.js.\n- Built on standards.\n\n### Example\n\nThere are many examples [on the website][Handlebars Intl], but here's a comprehensive one:\n\n```handlebars\n{{formatMessage (intlGet \"messages.post.meta\")\n    num=post.comments.length\n    ago=(formatRelative post.date)}}\n```\n\n```js\nvar context = {\n    post: {\n        date    : 1422046290531,\n        comments: [/*...*/]\n    }\n};\n\nvar intlData = {\n    locales : ['en-US'],\n    messages: {\n        post: {\n            meta: 'Posted {ago}, {num, plural, one{# comment} other{# comments}}'\n        }\n    }\n};\n\nvar template = Handlebars.compile(/* Template source above */);\n\nvar html = template(context, {\n    data: {intl: intlData}\n});\n```\n\nThis example would render: **\"Posted 3 days ago, 1,000 comments\"** to the `html` variable. The `post.meta` message is written in the industry standard [ICU Message syntax][], which you can also learn about on the [FormatJS website][FormatJS].\n\n\nContribute\n----------\n\nLet's make Handlebars Intl and FormatJS better! If you're interested in helping, all contributions are welcome and appreciated. Handlebars Intl is just one of many packages that make up the [FormatJS suite of packages][FormatJS GitHub], and you can contribute to any/all of them, including the [Format JS website][FormatJS] itself.\n\nCheck out the [Contributing document][CONTRIBUTING] for the details. Thanks!\n\n\nLicense\n-------\n\nThis software is free to use under the Yahoo! Inc. BSD license.\nSee the [LICENSE file][LICENSE] for license text and copyright information.\n\n\n[Handlebars Intl]: http://formatjs.io/handlebars/\n[Handlebars]: http://handlebarsjs.com/\n[npm]: https://www.npmjs.org/package/handlebars-intl\n[npm-badge]: https://img.shields.io/npm/v/handlebars-intl.svg?style=flat-square\n[travis]: https://travis-ci.org/yahoo/handlebars-intl\n[travis-badge]: http://img.shields.io/travis/yahoo/handlebars-intl.svg?style=flat-square\n[david]: https://david-dm.org/yahoo/handlebars-intl\n[david-badge]: https://img.shields.io/david/yahoo/handlebars-intl.svg?style=flat-square\n[sauce]: https://saucelabs.com/u/handlebars-intl\n[sauce-badge]: https://saucelabs.com/browser-matrix/handlebars-intl.svg\n[FormatJS]: http://formatjs.io/\n[FormatJS GitHub]: http://formatjs.io/github/\n[ICU Message syntax]: http://formatjs.io/guide/#messageformat-syntax\n[CONTRIBUTING]: https://github.com/yahoo/handlebars-intl/blob/master/CONTRIBUTING.md\n[LICENSE]: https://github.com/yahoo/handlebars-intl/blob/master/LICENSE\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fformatjs%2Fhandlebars-intl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fformatjs%2Fhandlebars-intl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fformatjs%2Fhandlebars-intl/lists"}