{"id":13485105,"url":"https://github.com/kaisermann/svelte-i18n","last_synced_at":"2025-05-14T11:09:46.015Z","repository":{"id":38424821,"uuid":"142368540","full_name":"kaisermann/svelte-i18n","owner":"kaisermann","description":"Internationalization library for Svelte","archived":false,"fork":false,"pushed_at":"2024-10-21T08:20:04.000Z","size":2517,"stargazers_count":1319,"open_issues_count":72,"forks_count":84,"subscribers_count":12,"default_branch":"main","last_synced_at":"2025-04-27T20:02:03.426Z","etag":null,"topics":["dictionary","hacktoberfest","i18n","internationalization","svelte"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/kaisermann.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-07-26T00:43:56.000Z","updated_at":"2025-04-27T17:48:30.000Z","dependencies_parsed_at":"2024-10-22T09:35:16.205Z","dependency_job_id":null,"html_url":"https://github.com/kaisermann/svelte-i18n","commit_stats":{"total_commits":330,"total_committers":24,"mean_commits":13.75,"dds":0.09393939393939399,"last_synced_commit":"780932a3e1270d521d348aac8ba03be9df309f04"},"previous_names":[],"tags_count":59,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaisermann%2Fsvelte-i18n","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaisermann%2Fsvelte-i18n/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaisermann%2Fsvelte-i18n/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaisermann%2Fsvelte-i18n/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kaisermann","download_url":"https://codeload.github.com/kaisermann/svelte-i18n/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254129489,"owners_count":22019628,"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":["dictionary","hacktoberfest","i18n","internationalization","svelte"],"created_at":"2024-07-31T17:01:46.122Z","updated_at":"2025-05-14T11:09:45.868Z","avatar_url":"https://github.com/kaisermann.png","language":"TypeScript","funding_links":[],"categories":["TypeScript","hacktoberfest","components and libraries","Uncategorized","Utilities","svelte","📦 Libraries"],"sub_categories":["internationalization","Uncategorized","Internationalisation","Internationalization","Svelte"],"readme":"\u003e :information_source: `svelte-i18n` is due to some reworking, like moving from a singleton to instances. This will be worked on when I find the time and priority :pray:\n\n[![npm version](https://badge.fury.io/js/svelte-i18n.svg)](https://badge.fury.io/js/svelte-i18n) ![](https://github.com/kaisermann/svelte-i18n/workflows/CI/badge.svg)\n\n# svelte-i18n\n\n\u003e Internationalization for Svelte.\n\n`svelte-i18n` helps you localize your app using the reactive tools Svelte provides. By using [stores](https://svelte.dev/docs#svelte_store) to keep track of the current `locale`, `dictionary` of messages and to `format` messages, we keep everything neat, in sync and easy to use on your svelte files.\n\n**Requirements**\n\n- Node: `\u003e= 11.15.0`\n- Browsers: `Chrome 38+`, `Edge 16+`, `Firefox 13+`, `Opera 25+`, `Safari 8+`.\n\n```svelte\n\u003cscript\u003e\n  import { _ } from 'svelte-i18n'\n\u003c/script\u003e\n\n\u003ch1\u003e{$_('page.home.title')}\u003c/h1\u003e\n\n\u003cnav\u003e\n  \u003ca\u003e{$_('page.home.nav', { default: 'Home' })}\u003c/a\u003e\n  \u003ca\u003e{$_('page.about.nav', { default: 'About' })}\u003c/a\u003e\n  \u003ca\u003e{$_('page.contact.nav', { default: 'Contact' })}\u003c/a\u003e\n\u003c/nav\u003e\n```\n\n```jsonc\n// en.json\n{\n  \"page\": {\n    \"home\": {\n      \"title\": \"Homepage\",\n      \"nav\": \"Home\"\n    },\n    \"about\": {\n      \"title\": \"About\",\n      \"nav\": \"About\"\n    },\n    \"contact\": {\n      \"title\": \"Contact\",\n      \"nav\": \"Contact Us\"\n    }\n  }\n}\n```\n\n- [Documentation / Getting Started](/docs/Getting%20Started.md)\n- [Usage with Svelte Kit](/docs/Svelte-Kit.md)\n- [i18n VSCode extension (3rd party)](https://github.com/antfu/i18n-ally)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaisermann%2Fsvelte-i18n","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkaisermann%2Fsvelte-i18n","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaisermann%2Fsvelte-i18n/lists"}