{"id":16792648,"url":"https://github.com/ivanhofer/inlang-plugin-typesafe-i18n","last_synced_at":"2025-04-10T23:51:57.193Z","repository":{"id":65429382,"uuid":"586762085","full_name":"ivanhofer/inlang-plugin-typesafe-i18n","owner":"ivanhofer","description":"the official `typesafe-i18n` plugin for `inlang`","archived":false,"fork":false,"pushed_at":"2023-08-24T05:00:55.000Z","size":190,"stargazers_count":11,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-10T23:51:50.460Z","etag":null,"topics":["i18n","inlang","internationalization","plugin","typesafe-i18n","typescript"],"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/ivanhofer.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":"2023-01-09T07:00:54.000Z","updated_at":"2024-04-01T15:52:21.000Z","dependencies_parsed_at":"2025-02-18T07:33:59.656Z","dependency_job_id":"2aa0fccf-be40-481a-a951-7d51ed1b5132","html_url":"https://github.com/ivanhofer/inlang-plugin-typesafe-i18n","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivanhofer%2Finlang-plugin-typesafe-i18n","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivanhofer%2Finlang-plugin-typesafe-i18n/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivanhofer%2Finlang-plugin-typesafe-i18n/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivanhofer%2Finlang-plugin-typesafe-i18n/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ivanhofer","download_url":"https://codeload.github.com/ivanhofer/inlang-plugin-typesafe-i18n/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248317706,"owners_count":21083528,"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":["i18n","inlang","internationalization","plugin","typesafe-i18n","typescript"],"created_at":"2024-10-13T08:46:44.200Z","updated_at":"2025-04-10T23:51:57.170Z","avatar_url":"https://github.com/ivanhofer.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# inlang-plugin-typesafe-i18n\n\nThis is the official [typesafe-i18n](https://github.com/ivanhofer/typesafe-i18n) plugin for [inlang](https://inlang.com).\\\nYou can use this plugin to read and write resources that can be used in a project with `typesafe-i18n` as the internationalization library.\n\n\u003e It is not meant to be used together with the [SDK](https://inlang.com/documentation/sdk/overview) inlang provides.\n\n## Usage\n\n```js\n// filename: inlang.config.js\n\n/**\n * @type {import(\"@inlang/core/config\").DefineConfig}\n */\nexport async function defineConfig(env) {\n  // initialize the plugin\n  const { default: typesafeI18nPlugin } = await env.$import(\n    \"https://cdn.jsdelivr.net/gh/ivanhofer/inlang-plugin-typesafe-i18n@2/dist/index.js\"\n  )\n\n  return {\n    plugins: [typesafeI18nPlugin()],\n  }\n}\n```\n\n### Limitations\n\n - [namespaces](https://github.com/ivanhofer/typesafe-i18n/tree/main/packages/generator#namespaces) are currently not supported in the `inlang` Editor\n - types don't get updated if you make changes to your `BaseTranslation`\n   workaround: to update the types run the [generator](https://github.com/ivanhofer/typesafe-i18n/tree/main/packages/generator) in CI after the Editor pushes new Messages to the repository\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivanhofer%2Finlang-plugin-typesafe-i18n","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fivanhofer%2Finlang-plugin-typesafe-i18n","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivanhofer%2Finlang-plugin-typesafe-i18n/lists"}