{"id":18355362,"url":"https://github.com/midwire/tr4n5l4te","last_synced_at":"2025-08-20T12:31:22.738Z","repository":{"id":5801689,"uuid":"53904618","full_name":"midwire/tr4n5l4te","owner":"midwire","description":"Use Google Translate without an API key.","archived":false,"fork":false,"pushed_at":"2024-02-06T18:21:08.000Z","size":100,"stargazers_count":39,"open_issues_count":4,"forks_count":14,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-05T18:11:55.179Z","etag":null,"topics":["google","google-translate","i18n","internationalization","languages","translate","translator","yaml"],"latest_commit_sha":null,"homepage":null,"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/midwire.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-03-15T01:26:10.000Z","updated_at":"2024-03-20T01:12:48.000Z","dependencies_parsed_at":"2023-02-10T19:31:22.232Z","dependency_job_id":null,"html_url":"https://github.com/midwire/tr4n5l4te","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/midwire%2Ftr4n5l4te","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/midwire%2Ftr4n5l4te/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/midwire%2Ftr4n5l4te/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/midwire%2Ftr4n5l4te/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/midwire","download_url":"https://codeload.github.com/midwire/tr4n5l4te/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230423563,"owners_count":18223435,"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":["google","google-translate","i18n","internationalization","languages","translate","translator","yaml"],"created_at":"2024-11-05T22:06:40.340Z","updated_at":"2024-12-19T11:12:05.478Z","avatar_url":"https://github.com/midwire.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tr4n5l4te\n\n**Version: 0.1.17**\n\nUse Google Translate without an API key.\n\nLike me, maybe you've found that Google makes it a pain to work with their API. Tr4n5l4te gets around all that.\n\n## Installation\n\nFirst, install [PhantomJS](http://phantomjs.org/).\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'tr4n5l4te'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install tr4n5l4te\n\n## Usage\n\nIn your code:\n\n```ruby\ntranslator = Tr4n5l4te::Translator.new\nenglish_strings = [\n  'hello',\n  'how are you'\n]\nenglish_strings.each do |text|\n  puts translator.translate(text, :en, :es)\nend\n# =\u003e hola\n# =\u003e cómo estás\n```\n\n### Command Line\n\n    ➤ ./exe/translate -h\n    Options:\n      -y, --yaml-file=\u003cs\u003e     A YAML locale file - filename determines source language 'en.yml' - English\n      -l, --lang=\u003cs\u003e          Destination language\n      -i, --list              List known languages\n      -s, --sleep-time=\u003ci\u003e    Sleep time (default: 2)\n      -t, --timeout=\u003ci\u003e       Poltergeist timeout option (default: 30)\n      -v, --verbose           Be verbose with output\n      -h, --help              Show this message\n\nTo translate a YAML file:\n\n    $ ./exe/translate -y /path/to/yml/file -l \"destination-language\"\n\nThe translator will sleep for 2 seconds, by default, between each string translation. You can override that by passing in the amount of time, in seconds, you want it to sleep:\n\n    $ ./exe/translate -y config/locales/en.yml -l French -s 3\n\nWarning: If you pass in '0' and translate a large file, it is very likely that Google will ban your IP address.\n\nTo list all known languages\n\n    $ ./exe/translate --list\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\n### Specs\n\nThe specs are sprinkled with integration tests which will actually go out and hit the live web. To run them:\n\n    $ INTEGRATION=1 rake spec\n\nPlease be kind or Google is likely to ban your IP address.\n\n#### Spec Coverage\n\n    $ INTEGRATION=1 COVERAGE=1 rake spec\n    $ open coverage/index.html # if you are on OSX\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/midwire/tr4n5l4te.\n\n### Contributors\n\nThanks to all of those who contribute!\n\n* @kirylpl - Fixed phantomjs selector, migration to Optimist gem\n* @gahia - Fixed phantomjs SSL handshake problem, Look for and report non-neutral gender translations. Now accepts the \"male\" translation by default and warns that there are alternatives, Don't fail if a translation is not found but instead show a warning message and continue.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmidwire%2Ftr4n5l4te","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmidwire%2Ftr4n5l4te","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmidwire%2Ftr4n5l4te/lists"}