Skip to content

Commit e104534

Browse files
committed
update the ce translit package version to the latest and fix the usage of apply func accordingly
1 parent 96e6426 commit e104534

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@
2929
"prettier": "^3.2.5"
3030
},
3131
"dependencies": {
32-
"@ce/transliteration": "npm:@jsr/ce__transliteration@^0.1.3"
32+
"@ce/transliteration": "npm:@jsr/ce__transliteration@^0.1.6"
3333
}
3434
}

src/assets/repositories/chechen-transliterator/main.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ function updateQueryParameter(name, value) {
1313

1414
function handleTransliteration() {
1515
const input = document.getElementById('transliteration-input').value;
16-
const words = input.split(' '); // Split input into words
17-
const transliteratedWords = words.map(word => mod.apply(word)); // Transliterate each word
18-
const output = transliteratedWords.join(' '); // Join transliterated words into a single string
16+
const output = mod.apply(input);
1917
document.getElementById('transliteration-output').textContent = output;
2018
updateQueryParameter('text', input);
2119
}

0 commit comments

Comments
 (0)