{"id":16883936,"url":"https://github.com/zbraniecki/i28n","last_synced_at":"2026-05-17T12:11:42.813Z","repository":{"id":138755362,"uuid":"43617318","full_name":"zbraniecki/i28n","owner":"zbraniecki","description":"I18n counterpart to mozL10n","archived":false,"fork":false,"pushed_at":"2016-01-05T19:00:31.000Z","size":52,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-20T05:16:37.299Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zbraniecki.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":"2015-10-03T22:30:39.000Z","updated_at":"2015-10-03T22:31:41.000Z","dependencies_parsed_at":"2023-03-17T03:16:44.433Z","dependency_job_id":null,"html_url":"https://github.com/zbraniecki/i28n","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zbraniecki/i28n","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zbraniecki%2Fi28n","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zbraniecki%2Fi28n/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zbraniecki%2Fi28n/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zbraniecki%2Fi28n/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zbraniecki","download_url":"https://codeload.github.com/zbraniecki/i28n/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zbraniecki%2Fi28n/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33137831,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T09:28:26.183Z","status":"ssl_error","status_checked_at":"2026-05-17T09:27:52.702Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-10-13T16:14:43.658Z","updated_at":"2026-05-17T12:11:42.781Z","avatar_url":"https://github.com/zbraniecki.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"I28n: Internationalization 2.0\n=================================================================\n\nI28n combines the Intl API with Gaia's IntlHelper and L20n's declarative API.\n\nIn result it makes HTML internationalizable with minimum JS code required.\n\n\nHow to use i28n\n---------------\n\nInclude the following code in the `\u003chead\u003e` section of your HTML:\n\n```html\n\u003cscript src=\"./dist/i28n.js\"\u003e\u003c/script\u003e\n```\n\nIn HTML\n-------\n\n```html\n\u003cspan data-i18n-type=\"number\" data-i18n-value=\"5\"\u003e\u003c/span\u003e\n\u003cspan data-i18n-type=\"datetime\" data-i18n-value=\"1446794044671\"\u003e\u003c/span\u003e\n```\n\nIn JS\n-----\n\n```javascript\n\nfunction logDateTime() {\n  const formatter = document.mozI18n.get('datetime', {\n    hour: 'numeric',\n    minute: 'numeric'\n  });\n  console.log(formatter.format(Date.now());\n}\n\n\ndocument.mozI18n.observe('datetime', logDateTime);\n\n```\n\n\nDevelopment\n-----------\n\n```shell\n\u003e npm install --dev\n\n\u003e gulp lint # uses es-lint\n\n\u003e gulp build # builds ./dist/i28n.js\n\n\u003e gulp watch # builds and rebuilds on change in ./src\n\n\u003e gulp test # in-browser tests using Firefox nightly\n```\n\nIn order to test you need to have `FIREFOX_BIN` pointing at Nightly Firefox\nexecutable since i28n uses es6 features available only there.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzbraniecki%2Fi28n","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzbraniecki%2Fi28n","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzbraniecki%2Fi28n/lists"}