{"id":13617190,"url":"https://github.com/symfony/translation","last_synced_at":"2026-02-26T11:20:32.802Z","repository":{"id":38361429,"uuid":"1398671","full_name":"symfony/translation","owner":"symfony","description":"Provides tools to internationalize your application","archived":false,"fork":false,"pushed_at":"2025-05-02T09:23:41.000Z","size":2660,"stargazers_count":6627,"open_issues_count":0,"forks_count":89,"subscribers_count":13,"default_branch":"7.2","last_synced_at":"2025-05-03T00:17:54.133Z","etag":null,"topics":["component","php","symfony","symfony-component"],"latest_commit_sha":null,"homepage":"https://symfony.com/translation","language":"PHP","has_issues":false,"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/symfony.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,"zenodo":null},"funding":{"github":"fabpot","tidelift":"packagist/symfony/symfony","custom":"https://symfony.com/sponsor"}},"created_at":"2011-02-22T18:07:25.000Z","updated_at":"2025-04-30T19:22:53.000Z","dependencies_parsed_at":"2023-02-13T23:01:21.414Z","dependency_job_id":"29fa2110-5bf6-430e-a7b7-e43b4ff9f0db","html_url":"https://github.com/symfony/translation","commit_stats":{"total_commits":1099,"total_committers":230,"mean_commits":4.778260869565218,"dds":0.7943585077343039,"last_synced_commit":"e2674a30132b7cc4d74540d6c2573aa363f05923"},"previous_names":[],"tags_count":636,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/symfony%2Ftranslation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/symfony%2Ftranslation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/symfony%2Ftranslation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/symfony%2Ftranslation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/symfony","download_url":"https://codeload.github.com/symfony/translation/tar.gz/refs/heads/7.2","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252416540,"owners_count":21744449,"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":["component","php","symfony","symfony-component"],"created_at":"2024-08-01T20:01:38.104Z","updated_at":"2026-01-24T18:04:27.957Z","avatar_url":"https://github.com/symfony.png","language":"PHP","readme":"Translation Component\n=====================\n\nThe Translation component provides tools to internationalize your application.\n\nGetting Started\n---------------\n\n```bash\ncomposer require symfony/translation\n```\n\n```php\nuse Symfony\\Component\\Translation\\Translator;\nuse Symfony\\Component\\Translation\\Loader\\ArrayLoader;\n\n$translator = new Translator('fr_FR');\n$translator-\u003eaddLoader('array', new ArrayLoader());\n$translator-\u003eaddResource('array', [\n    'Hello World!' =\u003e 'Bonjour !',\n], 'fr_FR');\n\necho $translator-\u003etrans('Hello World!'); // outputs « Bonjour ! »\n```\n\nSponsor\n-------\n\nThe Translation component for Symfony 7.1 is [backed][1] by:\n\n * [Crowdin][2], a cloud-based localization management software helping teams to go global and stay agile.\n\nHelp Symfony by [sponsoring][3] its development!\n\nResources\n---------\n\n * [Documentation](https://symfony.com/doc/current/translation.html)\n * [Contributing](https://symfony.com/doc/current/contributing/index.html)\n * [Report issues](https://github.com/symfony/symfony/issues) and\n   [send Pull Requests](https://github.com/symfony/symfony/pulls)\n   in the [main Symfony repository](https://github.com/symfony/symfony)\n\n[1]: https://symfony.com/backers\n[2]: https://crowdin.com\n[3]: https://symfony.com/sponsor\n","funding_links":["https://github.com/sponsors/fabpot","https://tidelift.com/funding/github/packagist/symfony/symfony","https://symfony.com/sponsor"],"categories":["PHP","国际化和本地化(Internationalisation and Localisation)"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsymfony%2Ftranslation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsymfony%2Ftranslation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsymfony%2Ftranslation/lists"}