translation

Text string translation from free online crowdsourced API. Tinyslation a tiny translation. Sync and Async support (MultiSync). No API Key required.

Pure Nim score 15/100 · tests present · no docs generated

Summary

Latest Version 0.3.1
License MIT
CI Status Failing
Downloads 0
Last Indexed 2026-09-02 07:21

Authors

  • Juan Carlos <juancarlospaco@gmail.com>

Installation

nimble install translation
choosenim install translation
git clone https://github.com/juancarlospaco/nim-tinyslation

OS Compatibility

Platform Linux macOS Windows FreeBSD OpenBSD NetBSD Android iOS WASM Embedded
translation - - - - - - -

Dependencies

Package Version Optional
nim >= 0.20.0 No

README

nim-tinyslation

  • Text string translation from free online crowdsourced API. Tinyslation a tiny translation. Sync and Async support (MultiSync). No API Key required. Works with and without SSL -d:ssl. No Auth required.

screenshot

screenshot

Use

>>> import translation
>>> echo MMT().tinyslation("white cat", to="es")  # Sync.
"gato blanco"
>>>
>>> proc async_translation {.async.} = echo await AsyncMMT().tinyslation("black dog", to="es")
>>> wait_for async_translation()                  # Async.
"perro negro"

Install

nimble install translation

Requisites

Documentation

tinyslation() **Description:** Text string translation from [free online crowdsourced API](http://mymemory.translated.net). The proc does not accept `char` only `string`. **Arguments:** - `text` A text to translate, `string` type, required. - `to` A target language to translate on ISO 2-char language code, `string` type, eg. `"en"` or `"es"`, required. - `from` A source language to translate on ISO 2-char language code, `string` type, eg. `"en"` or `"es"`, optional, defaults to `"en"`, required. - `timeout` A Timeout, `int8` type, optional. **Returns:** A translated text string, `string` type.