From 3aeb191154ef583516c8f5934e66fef5aa01f73a Mon Sep 17 00:00:00 2001 From: Brady Fomegne Date: Sun, 24 Mar 2024 18:20:03 +0100 Subject: [PATCH] chore: apply js nomenclature (#17) The implementation at PR (#13) was not completed. --- src/translator.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/translator.rs b/src/translator.rs index b3bbd46..45d68b0 100644 --- a/src/translator.rs +++ b/src/translator.rs @@ -17,6 +17,7 @@ pub struct Translator { #[wasm_bindgen] impl Translator { /// Initiate the translator. + #[wasm_bindgen(constructor)] pub fn new(dictionary: &JsValue, auto_commit: bool) -> Result { let dictionary: IndexMap> = serde_wasm_bindgen::from_value(dictionary.clone())