{"id":16883934,"url":"https://github.com/zbraniecki/intl-dom","last_synced_at":"2025-03-20T05:16:48.120Z","repository":{"id":138755486,"uuid":"47641244","full_name":"zbraniecki/intl-dom","owner":"zbraniecki","description":"Intl DOM library","archived":false,"fork":false,"pushed_at":"2015-12-08T19:02:28.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-25T06:41:35.574Z","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":null,"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":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-12-08T18:29:34.000Z","updated_at":"2015-12-08T18:29:45.000Z","dependencies_parsed_at":"2023-03-14T15:15:33.989Z","dependency_job_id":null,"html_url":"https://github.com/zbraniecki/intl-dom","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/zbraniecki%2Fintl-dom","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zbraniecki%2Fintl-dom/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zbraniecki%2Fintl-dom/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zbraniecki%2Fintl-dom/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zbraniecki","download_url":"https://codeload.github.com/zbraniecki/intl-dom/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244554126,"owners_count":20471173,"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-10-13T16:14:43.459Z","updated_at":"2025-03-20T05:16:48.102Z","avatar_url":"https://github.com/zbraniecki.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Intl DOM: Internationalization for DOM\n=================================================================\n\nIntl DOM 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/intl-dom.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.i18n.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/intl-dom.js\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzbraniecki%2Fintl-dom","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzbraniecki%2Fintl-dom","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzbraniecki%2Fintl-dom/lists"}