Skip to content

Commit

Permalink
chore: apply js nomenclature (#17)
Browse files Browse the repository at this point in the history
The implementation at PR (#13) was not completed.
  • Loading branch information
pythonbrad authored Mar 24, 2024
1 parent 7dc73ff commit 3aeb191
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/translator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Translator, String> {
let dictionary: IndexMap<String, Vec<String>> =
serde_wasm_bindgen::from_value(dictionary.clone())
Expand Down

0 comments on commit 3aeb191

Please sign in to comment.