{"id":15612143,"url":"https://github.com/aergonaut/pseudo_l10n","last_synced_at":"2026-02-08T02:40:06.461Z","repository":{"id":150682848,"uuid":"575629882","full_name":"aergonaut/pseudo_l10n","owner":"aergonaut","description":"🌐 Simple utility for pseudo-localization in Ruby","archived":false,"fork":false,"pushed_at":"2024-08-02T16:42:53.000Z","size":47,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-15T18:22:52.249Z","etag":null,"topics":["g11n","i18n","internationalization","l10n","localization","pseudo-localization"],"latest_commit_sha":null,"homepage":"https://rubygems.org/gems/pseudo_l10n","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/aergonaut.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2022-12-08T00:15:23.000Z","updated_at":"2024-07-11T02:48:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"565e0211-2ebf-4b8b-a941-986641b36f50","html_url":"https://github.com/aergonaut/pseudo_l10n","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/aergonaut/pseudo_l10n","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aergonaut%2Fpseudo_l10n","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aergonaut%2Fpseudo_l10n/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aergonaut%2Fpseudo_l10n/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aergonaut%2Fpseudo_l10n/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aergonaut","download_url":"https://codeload.github.com/aergonaut/pseudo_l10n/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aergonaut%2Fpseudo_l10n/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29218123,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-08T02:25:35.815Z","status":"ssl_error","status_checked_at":"2026-02-08T02:24:27.970Z","response_time":57,"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":["g11n","i18n","internationalization","l10n","localization","pseudo-localization"],"created_at":"2024-10-03T06:22:00.101Z","updated_at":"2026-02-08T02:40:06.439Z","avatar_url":"https://github.com/aergonaut.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `PseudoL10n`\n\n`PseudoL10n` is a simple gem to add pseudolocalization to Ruby projects.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'pseudo_l10n'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install pseudo_l10n\n\n## Usage\n\n### Integration with `I18n`\n\nThis gem provides a `PseudoL10n::Backend` class that is compatible with the `i18n` gem to provide automatic pseudolocalization to your project.\n\nTo use the backend, wrap your existing `I18n.backend` with the `Backend` class from this gem:\n\n```ruby\nI18n.backend = PseudoL10n::Backend.new(I18n.backend)\n```\n\n### Pseudo-Locale\n\nThis gem generates a pseudo-locale at runtime by applying varius transformations to strings from the source locale. By\ndefault the source locale is `:en`. You may change the source locale by setting `PseudoL10n.source_locale` to a\ndifferent value:\n\n```ruby\nPseudoL10n.source_locale = :de\n```\n\nTo activate pseudolocalization, set the current `I18n.locale` to the special pseudolocale code. By default, this code is\nthe `source_locale` code with `-ZZ` appended. For example, the pseudo-locale code for `:de` would be `de-ZZ`. You may change the pseudo-locale code by setting `PseudoL10n.pseudo_locale` to a different value:\n\n```ruby\nPseudoL10n.pseudo_locale = :qps\n```\n\n### Low-level Transformer API\n\nThis gem also provides a low-level transformer API. This can be used to transform a string according to pseudolocale rules.\n\n```ruby\nmessage = \"Hello world\"\n\nPseudoL10n::Transformer.call(message)\n# =\u003e \"√Ｈｅｌｌｏ ｗｏｒｌｄ√\"\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/pseudo_l10n. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n## Code of Conduct\n\nEveryone interacting in the PseudoL10n project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/pseudo_l10n/blob/master/CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faergonaut%2Fpseudo_l10n","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faergonaut%2Fpseudo_l10n","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faergonaut%2Fpseudo_l10n/lists"}