Crates.io | meddl_translate |
lib.rs | meddl_translate |
version | 1.2.1 |
source | src |
created_at | 2021-06-21 21:26:37.528203 |
updated_at | 2024-01-14 03:15:45.84412 |
description | Translate German to Meddlfrängisch. |
homepage | https://github.com/CodeF0x/meddl_translate/ |
repository | https://github.com/CodeF0x/meddl_translate/ |
max_upload_size | |
id | 413101 |
size | 108,659 |
Translates German to Meddlfrängisch. If you don't know what that is, this is not for you.
Example:
fn main() {
println!("{}", meddl_translate::translate("Hallo"));
}
There's also other examples available:
$ cargo run --example hello
$ cargo run --example long-text
It's possible to exclude words that should not be translated, e. g. "den" by adding it to the "ignored" array in the translation file:
"ignored": [
"den"
]
To see it in action, run:
$ cargo run --example ignored
A dictionary can be found in the src
directory.