{"id":13721743,"url":"https://github.com/juancarlospaco/nim-tinyslation","last_synced_at":"2025-03-21T20:16:35.984Z","repository":{"id":151515575,"uuid":"131913537","full_name":"juancarlospaco/nim-tinyslation","owner":"juancarlospaco","description":"Text string translation from free online crowdsourced API. Tinyslation a tiny translation. Nim package.","archived":false,"fork":false,"pushed_at":"2019-06-06T18:13:12.000Z","size":356,"stargazers_count":12,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-26T14:48:39.832Z","etag":null,"topics":["nim","nim-lang","traduction","translation"],"latest_commit_sha":null,"homepage":null,"language":"Nim","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/juancarlospaco.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"custom":"https://liberapay.com/juancarlospaco/donate"}},"created_at":"2018-05-02T22:45:44.000Z","updated_at":"2024-06-06T13:38:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"fbaecb95-7265-497a-8205-103acb34d518","html_url":"https://github.com/juancarlospaco/nim-tinyslation","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juancarlospaco%2Fnim-tinyslation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juancarlospaco%2Fnim-tinyslation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juancarlospaco%2Fnim-tinyslation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juancarlospaco%2Fnim-tinyslation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/juancarlospaco","download_url":"https://codeload.github.com/juancarlospaco/nim-tinyslation/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244860611,"owners_count":20522466,"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":["nim","nim-lang","traduction","translation"],"created_at":"2024-08-03T01:01:20.855Z","updated_at":"2025-03-21T20:16:35.956Z","avatar_url":"https://github.com/juancarlospaco.png","language":"Nim","funding_links":["https://liberapay.com/juancarlospaco/donate"],"categories":["Text Processing","Text"],"sub_categories":["Translation"],"readme":"# nim-tinyslation\n\n- Text string translation from free online crowdsourced API.\nTinyslation a tiny translation. Sync and Async support (MultiSync).\nNo API Key required. Works with and without SSL `-d:ssl`. No Auth required.\n\n![screenshot](https://source.unsplash.com/Oxl_KBNqxGA/800x402 \"Illustrative Photo by https://unsplash.com/@foxfox\")\n\n![screenshot](temp.png \"Tinyslation working as standalone App.\")\n\n\n# Use\n\n```nim\n\u003e\u003e\u003e import translation\n\u003e\u003e\u003e echo MMT().tinyslation(\"white cat\", to=\"es\")  # Sync.\n\"gato blanco\"\n\u003e\u003e\u003e\n\u003e\u003e\u003e proc async_translation {.async.} = echo await AsyncMMT().tinyslation(\"black dog\", to=\"es\")\n\u003e\u003e\u003e wait_for async_translation()                  # Async.\n\"perro negro\"\n```\n\n\n# Install\n\n```\nnimble install translation\n```\n\n\n# Requisites\n\n- [Nim](https://nim-lang.org)\n\n\n# Documentation\n\n\u003cdetails\u003e\n    \u003csummary\u003e\u003cb\u003etinyslation()\u003c/b\u003e\u003c/summary\u003e\n\n**Description:**\nText string translation from [free online crowdsourced API](http://mymemory.translated.net).\nThe proc does not accept `char` only `string`.\n\n**Arguments:**\n- `text` A text to translate, `string` type, required.\n- `to` A target language to translate on ISO 2-char language code, `string` type, eg. `\"en\"` or `\"es\"`, required.\n- `from` A source language to translate on ISO 2-char language code, `string` type, eg. `\"en\"` or `\"es\"`, optional, defaults to `\"en\"`, required.\n- `timeout` A Timeout, `int8` type, optional.\n\n**Returns:** A translated text string, `string` type.\n\n\u003c/details\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuancarlospaco%2Fnim-tinyslation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjuancarlospaco%2Fnim-tinyslation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuancarlospaco%2Fnim-tinyslation/lists"}