{"id":13509660,"url":"https://github.com/alexfilatov/getatrex","last_synced_at":"2025-07-08T16:32:37.148Z","repository":{"id":48285693,"uuid":"124658429","full_name":"alexfilatov/getatrex","owner":"alexfilatov","description":"Gettext Automatic Translator in Elixir","archived":false,"fork":false,"pushed_at":"2023-04-16T21:09:08.000Z","size":66,"stargazers_count":6,"open_issues_count":2,"forks_count":5,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-01T09:35:02.047Z","etag":null,"topics":["elixir","gettext","locale","phoenix-framework","translation"],"latest_commit_sha":null,"homepage":"","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alexfilatov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-03-10T13:31:39.000Z","updated_at":"2023-04-16T20:33:10.000Z","dependencies_parsed_at":"2024-01-05T21:59:55.471Z","dependency_job_id":"9dbb9b5b-717a-47f5-91bf-4a151f9d0e8a","html_url":"https://github.com/alexfilatov/getatrex","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexfilatov%2Fgetatrex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexfilatov%2Fgetatrex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexfilatov%2Fgetatrex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexfilatov%2Fgetatrex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexfilatov","download_url":"https://codeload.github.com/alexfilatov/getatrex/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225071267,"owners_count":17416333,"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":["elixir","gettext","locale","phoenix-framework","translation"],"created_at":"2024-08-01T02:01:11.078Z","updated_at":"2024-11-20T00:52:22.974Z","avatar_url":"https://github.com/alexfilatov.png","language":"Elixir","funding_links":[],"categories":["Translations and Internationalizations"],"sub_categories":[],"readme":"# Getatrex ![circleci](https://circleci.com/gh/alexfilatov/getatrex.svg?style=shield)\n\nGetatrex is a Gettext Automatic Translator written in Elixir, designed to facilitate the translation process of `*.po` files generated by Gettext in your Elixir/Phoenix project.\n\n## Features\n\n- Automatically translates Gettext `*.po` files\n- Simple integration with Elixir/Phoenix projects\n- Utilizes Google Cloud Translation API for translations\n\n## Demo how it works\n\nWatch a demonstration of Getatrex in action:\n\n[![IMAGE ALT TEXT HERE](https://img.youtube.com/vi/DF6HmotIOZY/0.jpg)](https://www.youtube.com/watch?v=DF6HmotIOZY)\n\n\n## Installation\n\n### Add Getatrex as a dependency\n\nTo install Getatrex, add it to your list of dependencies in mix.exs:\n\n```elixir\ndef deps do\n  [{:getatrex, \"~\u003e 0.1\", only: :dev, runtime: false}]\nend\n```\n\nThis will also install [`goth`](https://github.com/peburrows/goth) package, which is required for Google automatic translations.\n\n### Configure Google Cloud Translation API Key for Goth\n\nTo use the Google Cloud Translation API, you'll need an API key. If you don't have one, obtain it from the [Google Cloud Console](https://console.cloud.google.com/apis/credentials).\n\nDownload the JSON file with your credentials and store it somewhere safe (avoid including it in your source control).\n\nNext, open your config/config.exs file and add the following configuration:\n\n```\n# Google credentials\nconfig :goth, json: \"path/to/goth_credentials.json\" |\u003e File.read!\n\n```  \nReplace `path/to/goth_credentials.json` with the actual path to your credentials file.\n\n## Usage\n\n1. Follow instruction in the [Workflow section](https://github.com/elixir-lang/gettext#workflow) of the Gettext library\n2. Generate a new locale, e.g., for Spanish, run:\n\n```\n$ mix gettext.merge priv/gettext --locale es\n```\n3. **IMPORTANT!** Commit your changes to git with a message like \"adding new Spanish locale\". This ensures you have a previous version to revert to if necessary.\n```\n$ git commit -a -m 'adding new Spanish locale'\n```\n\n4. Use Getatrex to translate the new Spanish locale:\n```\n$ mix getatrex es\n```\n\nGetatrex will generate a `translated_default.po` file with translations. \nOpen this file in your IDE to review and correct any inaccurate translations. \nReplace the original `default.po` file with the corrected version when you're done.\n\n## Roadmap\n\n1. Automatically write translations to the original `default.po` file, eliminating the need for a copy-paste step.\n2. Implement support for plural forms.\n3. Add translation support for `errors.po` files.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexfilatov%2Fgetatrex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexfilatov%2Fgetatrex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexfilatov%2Fgetatrex/lists"}