{"id":20260035,"url":"https://github.com/networking/sonata-translation-bundle","last_synced_at":"2026-05-08T21:33:01.366Z","repository":{"id":150239039,"uuid":"223364910","full_name":"networking/sonata-translation-bundle","owner":"networking","description":"Replacement for Ibrows bundle","archived":false,"fork":false,"pushed_at":"2019-11-22T09:22:22.000Z","size":175,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-12-02T04:52:49.802Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/networking.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":"2019-11-22T09:05:17.000Z","updated_at":"2019-12-10T08:54:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"6ed12470-3d1d-470e-afef-c89555a9287d","html_url":"https://github.com/networking/sonata-translation-bundle","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/networking/sonata-translation-bundle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/networking%2Fsonata-translation-bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/networking%2Fsonata-translation-bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/networking%2Fsonata-translation-bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/networking%2Fsonata-translation-bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/networking","download_url":"https://codeload.github.com/networking/sonata-translation-bundle/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/networking%2Fsonata-translation-bundle/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32798381,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"ssl_error","status_checked_at":"2026-05-08T08:22:45.650Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-11-14T11:17:45.830Z","updated_at":"2026-05-08T21:33:01.362Z","avatar_url":"https://github.com/networking.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SonataTranslationBundle\n\n\nThe SonataTranslationBundle is an integration of the LexikTranslationBundle into the SonataAdminBundle.\n\n![image](https://raw.github.com/ibrows/IbrowsSonataTranslationBundle/master/Resources/doc/screen/overview.png)\n\n## Installation\n\nAdd the following lines in your composer.json:\n\n```\n{\n    \"require\": {\n\t\t\"ibrows/sonata-translation-bundle\" : \"dev-master\",\n    }\n}\n```\n\n\nTo start using the bundle, register the SonataTranslationBundle and LexikTranslationBundle in your application's kernel class:\n\n``` \n\u003cphp\n// app/AppKernel.php\npublic function registerBundles()\n{\n    $bundles = array(\n        // ...\n\t\tnew Lexik\\Bundle\\TranslationBundle\\LexikTranslationBundle(),\n\t\tnew Ibrows\\SonataTranslationBundle\\IbrowsSonataTranslationBundle(),\n    );\n)\n```\n\n## Configuration\n\n#### SonataTranslationBundle\nNo initial configuration is necessary.\n\nHowever there are some options you can configure in order to edit the look. Below the default configuration is shown:\n\n```\n# app/config/config.yml\nibrows_sonata_translation:\n    defaultDomain: messages\n\teditable:\n    \tmode: inline\t\t # Mode of editable, can be popup or inline\n\t\ttype: textarea\t\t # Type of input. Can be text|textarea|select|date|checklist and more\n\t\temptytext: Empty \t # text to display on empty translations\n\t\tplacement: top\t\t # ingnored for inline mode\n```\n\n#### LexikTranslationBundle\n\nThe minimal configuration consists of:\n\n```\n# app/config/config.yml\nlexik_translation:\n    fallback_locale: en      # (required) default locale to use\n    managed_locales: [en]    # (required) locales that the bundle have to manage\n```\n\nFor additional configuration options please refer to the official [documentation](https://github.com/lexik/LexikTranslationBundle/blob/master/Resources/doc/index.md#configuration)\n\nIn order to have some keys shown up in the admin panel, you have to import the translation files first. This is done through a command offered by LexikTranslationBundle:\n\n```\n./app/console lexik:translations:import [bundleName] [--cache-clear] [--force] [--globals]\n\n```\nOnce again refer to the official [documentation](https://github.com/lexik/LexikTranslationBundle/blob/master/Resources/doc/index.md#import-translations) for additional information.\n\n\n## Usage\n\nTo include the bundle in the admin dashboard, add group \"group.translation\" to dashboard\n\n```\n# app/config/config.yml\nsonata_admin:\n    dashboard:\n        groups:\n            group.translation:\n                label: Translation\n                items: ~ \n```\n\n\n There really is not more to say about it ;).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetworking%2Fsonata-translation-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnetworking%2Fsonata-translation-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetworking%2Fsonata-translation-bundle/lists"}