{"id":15914634,"url":"https://github.com/68publishers/i18n","last_synced_at":"2026-01-20T21:34:03.826Z","repository":{"id":56200240,"uuid":"190046375","full_name":"68publishers/i18n","owner":"68publishers","description":"🌎 Internationalization and localization your app with a minimum effort","archived":false,"fork":false,"pushed_at":"2024-08-06T01:08:39.000Z","size":50,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-28T14:17:04.340Z","etag":null,"topics":["bundle","extension","i18n","internationalization","l10n","localization","nette","nette-extension"],"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/68publishers.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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-06-03T16:56:44.000Z","updated_at":"2024-08-06T01:08:18.000Z","dependencies_parsed_at":"2024-10-28T15:21:24.548Z","dependency_job_id":"449bbd17-4aa2-4330-80ce-ff1bf0b2d907","html_url":"https://github.com/68publishers/i18n","commit_stats":{"total_commits":9,"total_committers":2,"mean_commits":4.5,"dds":"0.11111111111111116","last_synced_commit":"f2ad5891340126955d352a94144529e5e5b81977"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/68publishers/i18n","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/68publishers%2Fi18n","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/68publishers%2Fi18n/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/68publishers%2Fi18n/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/68publishers%2Fi18n/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/68publishers","download_url":"https://codeload.github.com/68publishers/i18n/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/68publishers%2Fi18n/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28614627,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T18:56:40.769Z","status":"ssl_error","status_checked_at":"2026-01-20T18:54:26.653Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["bundle","extension","i18n","internationalization","l10n","localization","nette","nette-extension"],"created_at":"2024-10-06T17:04:50.666Z","updated_at":"2026-01-20T21:34:03.802Z","avatar_url":"https://github.com/68publishers.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003e :warning: Warning! This package does not have active support, it exists only for the historical needs of the author.\n\n# i18n\n\n[![Build Status][ico-travis]][link-travis]\n[![Quality Score][ico-code-quality]][link-code-quality]\n[![Coverage Status][ico-scrutinizer]][link-scrutinizer]\n[![Total Downloads][ico-downloads]][link-downloads]\n[![Latest Version on Packagist][ico-version]][link-packagist]\n\nThis package helps you to deal with regions with different languages, currencies and countries. It could be helpful even if you have single region project.\n\n## Installation\n\nThe best way to install 68publishers/i18n is using Composer:\n\n```bash\n$ composer require 68publishers/i18n\n```\n\nthen you can register extension into DIC:\n\n```neon\nextensions:\n    68publishers.i18n: SixtyEightPublishers\\i18n\\DI\\I18nExtension(%debugMode%)\n```\n\n## Configuration\n\n```neon\n68publishers.i18n:\n    profiles:\n        europe:\n            language: [ sk_SK, en_GB, de_DE, pl_PL ]\n            currency: [ EUR, PLZ, GBP ]\n            country: [ SK, GB, DE, PL ]\n            domain: [ 'europe\\.example\\.com' ] # regex\n        north_america:\n            language: en_US\n            currency: USD\n            country: US\n            domain: 'example\\.com\\/na'\n            enabled: no # default is `yes`\n        default: # If the default profile doesn't exists, the first profile is taken as default\n            language: cs_CZ\n            currency: CZK\n            country: CZ\n    lists:\n        fallback_language: en # default\n        default_language: null # default\n\n    translation_bridge:\n        locale_resolver:\n            enabled: yes # registers custom TranslatorLocaleResolver through 68publishers/translation-bridge extension\n            use_default: yes # use language of default's profile if profile is not detected, default is `no`\n            priority: 15\n\n    # if you want to use custom profile storage or profile detector:\n    storage: My\\Custom\\ProfileStorage\n    detector: My\\Custom\\Detector\n```\n\n### Integration with 68publishers/translation-bridge\n\n#### Translator Locale Resolving\n\nThe Translator's locale can be resolved by the currently active profile.\nThat is done with custom `TranslatorLocaleResolver` that is automatically registered if an option `translation_bridge.locale_resolver.enabled` is set to `TRUE`.\n\n#### Synchronization Between Profile's Language and Translator's Locale\n\nThe Translator's locale is automatically changed when the active profile's language is changed.\n\n```php\n\u003c?php\n\n/** @var \\SixtyEightPublishers\\i18n\\Profile\\ActiveProfile $activeProfile */\n/** @var \\SixtyEightPublishers\\TranslationBridge\\Localization\\TranslatorLocalizerInterface $localizer */\n\n$activeProfile-\u003echangeLanguage('en_GB');\n$localizer-\u003egetLocale(); # en_GB\n\n$activeProfile-\u003echangeLanguage('cs_CZ');\n$localizer-\u003egetLocale(); # cs_CZ\n```\n\n## Contributing\n\nBefore committing any changes, don't forget to run\n\n```bash\n$ vendor/bin/php-cs-fixer fix --config=.php_cs.dist -v --dry-run\n```\n\nand\n\n```bash\n$ composer run tests\n```\n\n[ico-version]: https://img.shields.io/packagist/v/68publishers/i18n.svg?style=flat-square\n[ico-travis]: https://img.shields.io/travis/68publishers/i18n/master.svg?style=flat-square\n[ico-scrutinizer]: https://img.shields.io/scrutinizer/coverage/g/68publishers/i18n.svg?style=flat-square\n[ico-code-quality]: https://img.shields.io/scrutinizer/g/68publishers/i18n.svg?style=flat-square\n[ico-downloads]: https://img.shields.io/packagist/dt/68publishers/i18n.svg?style=flat-square\n\n[link-packagist]: https://packagist.org/packages/68publishers/i18n\n[link-travis]: https://travis-ci.com/68publishers/i18n\n[link-scrutinizer]: https://scrutinizer-ci.com/g/68publishers/i18n/code-structure\n[link-code-quality]: https://scrutinizer-ci.com/g/68publishers/i18n\n[link-downloads]: https://packagist.org/packages/68publishers/i18n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F68publishers%2Fi18n","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F68publishers%2Fi18n","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F68publishers%2Fi18n/lists"}