{"id":23037137,"url":"https://github.com/it-bens/simple-words-translator","last_synced_at":"2025-04-02T23:18:00.912Z","repository":{"id":220883185,"uuid":"752814640","full_name":"it-bens/simple-words-translator","owner":"it-bens","description":"Translator for simple and widely used words in different languages","archived":false,"fork":false,"pushed_at":"2024-03-23T19:08:48.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-24T12:26:13.598Z","etag":null,"topics":["translation"],"latest_commit_sha":null,"homepage":"","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/it-bens.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2024-02-04T21:41:31.000Z","updated_at":"2024-02-05T08:49:49.000Z","dependencies_parsed_at":"2024-03-23T19:44:01.423Z","dependency_job_id":null,"html_url":"https://github.com/it-bens/simple-words-translator","commit_stats":null,"previous_names":["it-bens/simple-words-translator"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/it-bens%2Fsimple-words-translator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/it-bens%2Fsimple-words-translator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/it-bens%2Fsimple-words-translator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/it-bens%2Fsimple-words-translator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/it-bens","download_url":"https://codeload.github.com/it-bens/simple-words-translator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246905869,"owners_count":20852820,"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":["translation"],"created_at":"2024-12-15T17:29:23.887Z","updated_at":"2025-04-02T23:18:00.894Z","avatar_url":"https://github.com/it-bens.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple Words Translator\n\n[![Tests](https://github.com/it-bens/simple-words-translator/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/it-bens/simple-words-translator/actions/workflows/ci.yml)\n[![codecov](https://codecov.io/gh/it-bens/simple-words-translator/graph/badge.svg?token=5GAY79HI5U)](https://codecov.io/gh/it-bens/simple-words-translator)\n\nA simple problem with a simple solution. \n\nThis is a simple package that provides translations for defined words like \"yes\" and \"no\" (in english). The desired language can be passed by name or or ISO code (2 letter).\n\n## Installation\n\n```bash\ncomposer require it-bens/simple-words-translator\n```\n\n## Usage\n\n```php\nuse ITB\\SimpleWordsTranslator\\TranslatorByName;\n\n$translator = new TranslatorByName();\n$translation = $translator-\u003eyes('Deutsch'); // 'Ja'\n$translation = $translator-\u003eno('deutsch'); // 'Nein'\n```\n\n```php\nuse ITB\\SimpleWordsTranslator\\TranslatorByIsoCode;\n\n$translator = new TranslatorByIsoCode();\n$translation = $translator-\u003eyes('de'); // 'Ja'\n$translation = $translator-\u003eno('de'); // 'Nein'\n```\n\nThe package provides interfaces for the two translators. All translations implement the `ITB\\SimpleWordsTranslator\\Translation` interface.\n\n## Supported Languages\n\n* German\n* English\n* Spanish\n* French\n* Italian\n* Dutch","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fit-bens%2Fsimple-words-translator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fit-bens%2Fsimple-words-translator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fit-bens%2Fsimple-words-translator/lists"}