Home

Awesome

nim-tinyslation

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

<details> <summary><b>tinyslation()</b></summary>

Description: Text string translation from free online crowdsourced API. The proc does not accept char only string.

Arguments:

Returns: A translated text string, string type.

</details>