{"id":13679202,"url":"https://github.com/enzomanuelmangano/text-localizer","last_synced_at":"2025-03-26T21:32:31.570Z","repository":{"id":57340844,"uuid":"404372131","full_name":"enzomanuelmangano/text-localizer","owner":"enzomanuelmangano","description":"A lightweight, fast and flexible way to handle localized strings","archived":false,"fork":false,"pushed_at":"2022-02-05T14:14:39.000Z","size":7924,"stargazers_count":23,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-16T03:35:07.821Z","etag":null,"topics":["i18n","l10n","localization","react-native","reactjs"],"latest_commit_sha":null,"homepage":"https://enzomanuelmangano.github.io/text-localizer/","language":"TypeScript","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/enzomanuelmangano.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-09-08T14:08:53.000Z","updated_at":"2024-12-11T22:21:23.000Z","dependencies_parsed_at":"2022-09-07T16:13:48.864Z","dependency_job_id":null,"html_url":"https://github.com/enzomanuelmangano/text-localizer","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enzomanuelmangano%2Ftext-localizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enzomanuelmangano%2Ftext-localizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enzomanuelmangano%2Ftext-localizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enzomanuelmangano%2Ftext-localizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/enzomanuelmangano","download_url":"https://codeload.github.com/enzomanuelmangano/text-localizer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245738952,"owners_count":20664374,"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","l10n","localization","react-native","reactjs"],"created_at":"2024-08-02T13:01:03.113Z","updated_at":"2025-03-26T21:32:26.537Z","avatar_url":"https://github.com/enzomanuelmangano.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n📖 Text Localizer\n\u003c/h1\u003e\n\n_A lightweight, fast and flexible way to handle localized strings._\n\n[**Documentation can be found here.**](https://enzomanuelmangano.github.io/text-localizer/)\n\n\u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"https://github.com/enzomanuelmangano/text-localizer/blob/main/.assets/demo.gif\" title=\"react-text-localizer-demo\"\u003e\n\u003c/div\u003e\n\n## Package Versions\n\n| Name                                                  |                                                                    Latest Version                                                                     |\n| ----------------------------------------------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------: |\n| [text-localizer](/packages/core)                      |              [![badge](https://img.shields.io/npm/v/text-localizer.svg?style=flat-square)](https://www.npmjs.com/package/text-localizer)              |\n| [react-text-localizer](/packages/react)               |        [![badge](https://img.shields.io/npm/v/react-text-localizer.svg?style=flat-square)](https://www.npmjs.com/package/react-text-localizer)        |\n| [react-native-text-localizer](/packages/react-native) | [![badge](https://img.shields.io/npm/v/react-native-text-localizer.svg?style=flat-square)](https://www.npmjs.com/package/react-native-text-localizer) |\n\n## Motivation\n\nText Localizer is a package born out of the need to manage translations in a typesafe manner. Currently, the best-known solutions in javascript for managing translations are based on a key-value approach (i18n.js, i18next).\n\nThis approach involves this way of accessing the individual translation.\n\n```ts\nconsole.log(translationsObject.get('translations_key'));\n```\n\nThe main problems with this approach are that:\n\n- _There is no effective compile-time support to catch errors if the key is wrong;_\n- _There is no way of knowing whether the key being accessed is set for all languages;_\n- _There is no warning if you try to access an unsupported locale;_\n- _The refactoring of translation keys can easily lead to problems that cannot be intercepted at compile-time._\n\nConsequently, the goal of TextLocalizer is to provide a lightweight, fast, and flexible way to access translation strings in a type-safe manner in the JavaScript world.\n\n## Contributing\n\nSee the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenzomanuelmangano%2Ftext-localizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fenzomanuelmangano%2Ftext-localizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenzomanuelmangano%2Ftext-localizer/lists"}