{"id":21662545,"url":"https://github.com/php-gettext/json","last_synced_at":"2025-04-11T23:41:59.804Z","repository":{"id":41284466,"uuid":"219196623","full_name":"php-gettext/Json","owner":"php-gettext","description":"Json format for gettext","archived":false,"fork":false,"pushed_at":"2021-01-22T18:00:24.000Z","size":10,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-25T19:38:00.545Z","etag":null,"topics":["gettext","i18n","json"],"latest_commit_sha":null,"homepage":null,"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/php-gettext.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-11-02T18:30:07.000Z","updated_at":"2024-05-03T09:35:49.000Z","dependencies_parsed_at":"2022-07-06T16:33:56.752Z","dependency_job_id":null,"html_url":"https://github.com/php-gettext/Json","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-gettext%2FJson","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-gettext%2FJson/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-gettext%2FJson/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-gettext%2FJson/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/php-gettext","download_url":"https://codeload.github.com/php-gettext/Json/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248497902,"owners_count":21113982,"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":["gettext","i18n","json"],"created_at":"2024-11-25T10:16:53.721Z","updated_at":"2025-04-11T23:41:59.784Z","avatar_url":"https://github.com/php-gettext.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gettext Json format\n\n[![Latest Version on Packagist][ico-version]][link-packagist]\n[![Software License][ico-license]](LICENSE)\n![Build Status][ico-ga]\n[![Quality Score][ico-scrutinizer]][link-scrutinizer]\n[![Total Downloads][ico-downloads]][link-downloads]\n\nCreated by Oscar Otero \u003chttp://oscarotero.com\u003e \u003coom@oscarotero.com\u003e (MIT License)\n\nJson loader and generator to use with [gettext/gettext](https://github.com/php-gettext/Gettext)\n\n## Installation\n\n```\ncomposer require gettext/json\n```\n\n## Usage example\n\n```php\nuse Gettext\\Loader\\PoLoader;\nuse Gettext\\Loader\\JsonLoader;\nuse Gettext\\Generator\\JsonGenerator;\nuse Gettext\\Translations;\n\n//Load a .po file and export to .json\n$translations = (new PoLoader())-\u003eloadFile('locales/translations.po');\n(new JsonGenerator())-\u003egenerateFile($translations, 'locales/translations.json');\n\n//You can load the json file with JsonLoader\n$loadedTranslations = (new JsonLoader())-\u003eloadFile('locales/translations.json');\n```\n\n---\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information about recent changes and [CONTRIBUTING](CONTRIBUTING.md) for contributing details.\n\nThe MIT License (MIT). Please see [LICENSE](LICENSE) for more information.\n\n[ico-version]: https://img.shields.io/packagist/v/gettext/json.svg?style=flat-square\n[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square\n[ico-ga]: https://github.com/php-gettext/Json/workflows/testing/badge.svg\n[ico-scrutinizer]: https://img.shields.io/scrutinizer/g/php-gettext/Json.svg?style=flat-square\n[ico-downloads]: https://img.shields.io/packagist/dt/gettext/json.svg?style=flat-square\n\n[link-packagist]: https://packagist.org/packages/gettext/json\n[link-scrutinizer]: https://scrutinizer-ci.com/g/php-gettext/Json\n[link-downloads]: https://packagist.org/packages/gettext/json\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphp-gettext%2Fjson","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphp-gettext%2Fjson","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphp-gettext%2Fjson/lists"}