Skip to content

Commit 5220d93

Browse files
Sil van Diepensindresorhus
Sil van Diepen
authored andcommittedJan 21, 2020
Add Armenian characters (#29)
1 parent e95f1f7 commit 5220d93

File tree

2 files changed

+47
-1
lines changed

2 files changed

+47
-1
lines changed
 

‎replacements.js

+43-1
Original file line numberDiff line numberDiff line change
@@ -324,5 +324,47 @@ module.exports = [
324324
['ğ', 'g'],
325325
['Ğ', 'g'],
326326
['ı', 'i'],
327-
['İ', 'i']
327+
['İ', 'i'],
328+
329+
// Armenian
330+
['ա', 'a'],
331+
['բ', 'b'],
332+
['գ', 'ɡ'],
333+
['դ', 'd'],
334+
['ե', 'ye'],
335+
['զ', 'z'],
336+
['է', 'e'],
337+
['ը', 'u'],
338+
['թ', 't'],
339+
['ժ', 'zh'],
340+
['ի', 'i'],
341+
['լ', 'l'],
342+
['խ', 'kh'],
343+
['ծ', 'ts'],
344+
['կ', 'k'],
345+
['հ', 'h'],
346+
['ձ', 'dz'],
347+
['ղ', 'r'],
348+
['ճ', 'j'],
349+
['մ', 'm'],
350+
['յ', 'j'],
351+
['ն', 'n'],
352+
['շ', 'sh'],
353+
['ո', 'vo'],
354+
['չ', 'ch'],
355+
['պ', 'p'],
356+
['ջ', 'j'],
357+
['ռ', 'r'],
358+
['ս', 's'],
359+
['վ', 'v'],
360+
['տ', 't'],
361+
['ր', 're'],
362+
['ց', 'ts'],
363+
['ու', 'u'],
364+
['ւ', 'v'],
365+
['փ', 'p'],
366+
['ք', 'q'],
367+
['օ', 'o'],
368+
['ֆ', 'f'],
369+
['և', 'yev']
328370
];

‎test.js

+4
Original file line numberDiff line numberDiff line change
@@ -117,3 +117,7 @@ test('supports Romanian', t => {
117117
test('supports Turkish', t => {
118118
t.is(slugify('İ ı Ş ş Ç ç Ğ ğ', {lowercase: false, separator: ' '}), 'i i s s c c g g');
119119
});
120+
121+
test('supports Armenian', t => {
122+
t.is(slugify('Ե ր ե ւ ա ն', {lowercase: false, separator: ' '}), 're ye v a n');
123+
});

0 commit comments

Comments
 (0)
Please sign in to comment.