Init commit

This commit is contained in:
Markus Scully 2024-11-14 20:56:28 +00:00
commit 3a9f283e99
No known key found for this signature in database
GPG key ID: B8470B38660AF9E8
13 changed files with 418 additions and 0 deletions

9
autolingual/Cargo.toml Normal file
View 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
View 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,
}