Init commit
This commit is contained in:
commit
3a9f283e99
13 changed files with 418 additions and 0 deletions
9
autolingual/Cargo.toml
Normal file
9
autolingual/Cargo.toml
Normal file
|
@ -0,0 +1,9 @@
|
|||
[package]
|
||||
name = "autolingual"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
license = "MIT"
|
||||
description = "Compile-time natural language translations using translation APIs"
|
||||
|
||||
[dependencies]
|
||||
autolingual-macro = { path = "../autolingual-macro", version = "0.1.0" }
|
12
autolingual/src/lib.rs
Normal file
12
autolingual/src/lib.rs
Normal file
|
@ -0,0 +1,12 @@
|
|||
pub use autolingual_macro::translate;
|
||||
|
||||
pub struct Language {
|
||||
pub code: &'static str,
|
||||
pub name: &'static str,
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct TranslationSet {
|
||||
pub en: &'static str,
|
||||
pub fr: &'static str,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue