{"id":18087886,"url":"https://github.com/webhippie/po_to_json","last_synced_at":"2026-01-19T10:02:46.415Z","repository":{"id":3976857,"uuid":"5072122","full_name":"webhippie/po_to_json","owner":"webhippie","description":"Ruby library for converting gettext PO files to JSON","archived":false,"fork":false,"pushed_at":"2026-01-12T08:39:24.000Z","size":185,"stargazers_count":5,"open_issues_count":2,"forks_count":11,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-12T18:09:04.486Z","etag":null,"topics":["gettext","i18n","json","ruby","rubygem"],"latest_commit_sha":null,"homepage":"https://github.com/webhippie/po_to_json","language":"Ruby","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/webhippie.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2012-07-16T19:13:49.000Z","updated_at":"2026-01-12T08:39:28.000Z","dependencies_parsed_at":"2024-06-19T05:17:15.951Z","dependency_job_id":"660aec5b-e9a1-45ac-99c6-de28e00e5546","html_url":"https://github.com/webhippie/po_to_json","commit_stats":{"total_commits":27,"total_committers":7,"mean_commits":3.857142857142857,"dds":0.7037037037037037,"last_synced_commit":"5c6d18f4ea6125e221e932096556c495bcdcdf45"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/webhippie/po_to_json","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webhippie%2Fpo_to_json","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webhippie%2Fpo_to_json/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webhippie%2Fpo_to_json/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webhippie%2Fpo_to_json/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webhippie","download_url":"https://codeload.github.com/webhippie/po_to_json/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webhippie%2Fpo_to_json/sbom","scorecard":{"id":600881,"data":{"date":"2025-07-21","repo":{"name":"github.com/webhippie/po_to_json","commit":"779b000b58deb8a1109aa45504980739ac89b333"},"scorecard":{"version":"v5.2.1-24-gc29a04d4","commit":"c29a04d46d1570393e94662bc34e9906398e1bfa"},"score":5,"checks":[{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/c29a04d46d1570393e94662bc34e9906398e1bfa/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":10,"reason":"13 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/c29a04d46d1570393e94662bc34e9906398e1bfa/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/c29a04d46d1570393e94662bc34e9906398e1bfa/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/29 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/c29a04d46d1570393e94662bc34e9906398e1bfa/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/c29a04d46d1570393e94662bc34e9906398e1bfa/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: third-party GitHubAction not pinned by hash: .github/workflows/automerge.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/webhippie/po_to_json/automerge.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/automerge.yml:34: update your workflow using https://app.stepsecurity.io/secureworkflow/webhippie/po_to_json/automerge.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/flake.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/webhippie/po_to_json/flake.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/flake.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/webhippie/po_to_json/flake.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/flake.yml:37: update your workflow using https://app.stepsecurity.io/secureworkflow/webhippie/po_to_json/flake.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/webhippie/po_to_json/release.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/webhippie/po_to_json/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/testing.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/webhippie/po_to_json/testing.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/testing.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/webhippie/po_to_json/testing.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/testing.yml:59: update your workflow using https://app.stepsecurity.io/secureworkflow/webhippie/po_to_json/testing.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/testing.yml:62: update your workflow using https://app.stepsecurity.io/secureworkflow/webhippie/po_to_json/testing.yml/master?enable=pin","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   7 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/c29a04d46d1570393e94662bc34e9906398e1bfa/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: topLevel 'contents' permission set to 'write': .github/workflows/automerge.yml:12","Warn: topLevel 'contents' permission set to 'write': .github/workflows/flake.yml:11","Warn: no topLevel permission defined: .github/workflows/release.yml:1","Warn: no topLevel permission defined: .github/workflows/testing.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/c29a04d46d1570393e94662bc34e9906398e1bfa/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/c29a04d46d1570393e94662bc34e9906398e1bfa/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/c29a04d46d1570393e94662bc34e9906398e1bfa/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/c29a04d46d1570393e94662bc34e9906398e1bfa/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/c29a04d46d1570393e94662bc34e9906398e1bfa/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/c29a04d46d1570393e94662bc34e9906398e1bfa/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/c29a04d46d1570393e94662bc34e9906398e1bfa/docs/checks.md#branch-protection"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/c29a04d46d1570393e94662bc34e9906398e1bfa/docs/checks.md#security-policy"}},{"name":"SAST","score":10,"reason":"SAST tool is run on all commits","details":["Info: all commits (1) are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/c29a04d46d1570393e94662bc34e9906398e1bfa/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-21T00:23:16.090Z","repository_id":3976857,"created_at":"2025-08-21T00:23:16.091Z","updated_at":"2025-08-21T00:23:16.091Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28565056,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T08:53:44.001Z","status":"ssl_error","status_checked_at":"2026-01-19T08:52:40.245Z","response_time":67,"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":["gettext","i18n","json","ruby","rubygem"],"created_at":"2024-10-31T17:09:18.227Z","updated_at":"2026-01-19T10:02:46.410Z","avatar_url":"https://github.com/webhippie.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# po_to_json\n\n[![Test Status](https://github.com/webhippie/po_to_json/actions/workflows/testing.yml/badge.svg)](https://github.com/webhippie/po_to_json/actions/workflows/testing.yaml) [![Join the Matrix chat at https://matrix.to/#/#webhippie:matrix.org](https://img.shields.io/badge/matrix-%23webhippie%3Amatrix.org-7bc9a4.svg)](https://matrix.to/#/#webhippie:matrix.org) [![Codacy Badge](https://app.codacy.com/project/badge/Grade/6e015952f83d42d4bfc7e335d856554a)](https://app.codacy.com/gh/webhippie/po_to_json/dashboard?utm_source=gh\u0026utm_medium=referral\u0026utm_content=\u0026utm_campaign=Badge_grade) [![Gem Version](https://badge.fury.io/rb/po_to_json.svg)](https://badge.fury.io/rb/po_to_json)\n\nConvert gettext PO files to JSON to use in your javascript app, based on\npo2json.pl by [DuckDuckGo, Inc.](http://duckduckgo.com/). Ideally you'll use\nthis on a Rake task that creates JSON versions of your PO files, which can\nlater be used from javascript with [Jed](http://slexaxton.github.io/Jed/)\n\n\n## Versions\n\nFor a list of the tested and supported Ruby and JSON versions please take a\nlook at the [wokflow][workflow].\n\n## Installation\n\n```ruby\ngem 'po_to_json', '~\u003e 3.0.1'\n```\n\n## Versioning\n\nThis library aims to adhere to [Semantic Versioning 2.0.0][semver]. Violations\nof this scheme should be reported as bugs. Specifically, if a minor or patch\nversion is released that breaks backward compatibility, a new version should be\nimmediately released that restores compatibility. Breaking changes to the public\nAPI will only be introduced with new major versions.\n\nAs a result of this policy, you can (and should) specify a dependency on this\ngem using the [Pessimistic Version Constraint][pvc] with two digits of precision.\n\nFor example:\n\n```ruby\nspec.add_dependency 'po_to_json', '~\u003e 3.0.1'\n```\n\n## Usage\n\nMost common use would be to generate a Jed ready javascript file. For example,\nin a Rails project:\n\n```ruby\nrequire 'po_to_json'\n\njson = PoToJson.new(\n  Rails.root.join('locale', 'de', 'app.po')\n).generate_for_jed('de')\n\nRails.root.join(\n  'app',\n  'assets',\n  'javascripts',\n  'locale',\n  'de',\n  'app.js'\n).write(json)\n```\n\nIf you need a pretty json, add `pretty: true` to `generate_for_jed`, like the\nfollowing example:\n\n```ruby\nrequire 'po_to_json'\n\njson = PoToJson.new(\n  Rails.root.join('locale', 'de', 'app.po')\n).generate_for_jed('de', pretty: true)\n\nRails.root.join(\n  'app',\n  'assets',\n  'javascripts',\n  'locale',\n  'de',\n  'app.js'\n).write(json)\n```\n\nThe javascript file generated has a global \"locales\" object with an attribute\ncorresponding to the generated language:\n\n```javascript\ni18n = new Jed(locales['de'])\ni18n.gettext('Hello World') // Should evaluate to 'Hallo Welt'\n```\n\n## Contributing\n\nFork -\u003e Patch -\u003e Spec -\u003e Push -\u003e Pull Request\n\n## Authors\n\n*   [Thomas Boerger](https://github.com/tboerger)\n*   [Nubis](https://github.com/nubis)\n*   [Other contributors](https://github.com/webhippie/po_to_json/graphs/contributors)\n\n## License\n\nMIT\n\n## Copyright\n\n```\nCopyright (c) 2012-2015 Dropmysite.com \u003chttps://dropmyemail.com\u003e\nCopyright (c) 2015 Webhippie \u003chttp://www.webhippie.de\u003e\n```\n\n[workflow]: https://github.com/webhippie/po_to_json/blob/master/.github/workflows/testing.yml\n[semver]: http://semver.org\n[pvc]: http://guides.rubygems.org/patterns/#pessimistic-version-constraint\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebhippie%2Fpo_to_json","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebhippie%2Fpo_to_json","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebhippie%2Fpo_to_json/lists"}