{"id":14968707,"url":"https://github.com/erpushpinderrana/config_translations_example","last_synced_at":"2025-06-23T12:36:19.293Z","repository":{"id":223077545,"uuid":"460226379","full_name":"erpushpinderrana/config_translations_example","owner":"erpushpinderrana","description":"Drupal Config Translation Example","archived":false,"fork":false,"pushed_at":"2022-02-17T03:03:01.000Z","size":19,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-22T06:47:11.332Z","etag":null,"topics":["config","config-only","drupal","drupal-config","drupal-config-translation","drupal-module","drupal9","i18n","internationalization","localization","multilingual","pushpinderdrupal","translation"],"latest_commit_sha":null,"homepage":"","language":"PHP","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/erpushpinderrana.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}},"created_at":"2022-02-17T00:33:28.000Z","updated_at":"2022-05-04T23:16:48.000Z","dependencies_parsed_at":"2024-02-18T05:29:43.009Z","dependency_job_id":"76c58e12-e354-4b39-9558-ad3be6995725","html_url":"https://github.com/erpushpinderrana/config_translations_example","commit_stats":null,"previous_names":["erpushpinderrana/config_translations_example"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/erpushpinderrana/config_translations_example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erpushpinderrana%2Fconfig_translations_example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erpushpinderrana%2Fconfig_translations_example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erpushpinderrana%2Fconfig_translations_example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erpushpinderrana%2Fconfig_translations_example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/erpushpinderrana","download_url":"https://codeload.github.com/erpushpinderrana/config_translations_example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erpushpinderrana%2Fconfig_translations_example/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261480372,"owners_count":23164903,"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":["config","config-only","drupal","drupal-config","drupal-config-translation","drupal-module","drupal9","i18n","internationalization","localization","multilingual","pushpinderdrupal","translation"],"created_at":"2024-09-24T13:40:26.020Z","updated_at":"2025-06-23T12:36:14.280Z","avatar_url":"https://github.com/erpushpinderrana.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Drupal Config Translation Example - Module\nThe Configuration Translation module (part of Drupal Core in Drupal 9) allows configuration to be translated into different languages. Whenever there are custom configurations, then it relies on having a correct configuration schema to provide translations. So, every module must provide a correct schema. This is just an example module to get an idea of how can we achieve it through a custom module.\n\n## How to get config translation\n[Translated Config](https://www.drupal.org/project/translated_config) module is necessary if there is a use case of such type as Drupal Core does not provide a way to get one complete dataset of configuration in a specified language.\n\n```\n\\Drupal::service('translated_config.helper')-\u003egetTranslatedConfig('system.site','de')-\u003eget('name');\n```\n\n## References\n* https://www.drupal.org/docs/multilingual-guide/translating-configuration\n* http://www.hojtsy.hu/blog/2014-may-26/drupal-8-multilingual-tidbits-16-configuration-translation-development\n* https://www.drupal.org/docs/user_guide/en/language-config-translate.html\n* https://antistatique.net/en/blog/drupal-8-how-to-translate-the-config-api\n* https://www.drupal.org/docs/drupal-apis/configuration-api/configuration-schemametadata\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferpushpinderrana%2Fconfig_translations_example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ferpushpinderrana%2Fconfig_translations_example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferpushpinderrana%2Fconfig_translations_example/lists"}