aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormordi <[email protected]>2024-04-04 23:13:50 +0300
committerGitHub <[email protected]>2024-04-04 20:13:50 +0000
commit5860783e81d392bc235408b697668ab8ecdd2d7c (patch)
treead5fe5314740ab4ed45b881016cdd1f343e2fdb7 /src
parentec3959c15f7387afe2b70f195230dc8440e90726 (diff)
downloadfaker-5860783e81d392bc235408b697668ab8ecdd2d7c.tar.xz
faker-5860783e81d392bc235408b697668ab8ecdd2d7c.zip
fix(internet): add Hebrew username charMapping (#2781)
Diffstat (limited to 'src')
-rw-r--r--src/modules/internet/char-mappings.ts31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/modules/internet/char-mappings.ts b/src/modules/internet/char-mappings.ts
index 6b784379..83801a25 100644
--- a/src/modules/internet/char-mappings.ts
+++ b/src/modules/internet/char-mappings.ts
@@ -276,10 +276,41 @@ const farsiMapping: { [key: string]: string } = Object.fromEntries([
['ژ', 'zh'],
['ی', 'y'],
]);
+const hebrewMapping: { [key: string]: string } = Object.fromEntries([
+ ['א', 'a'],
+ ['ב', 'b'],
+ ['ג', 'g'],
+ ['ד', 'd'],
+ ['ה', 'h'],
+ ['ו', 'v'],
+ ['ז', 'z'],
+ ['ח', 'ch'],
+ ['ט', 't'],
+ ['י', 'y'],
+ ['כ', 'k'],
+ ['ך', 'kh'],
+ ['ל', 'l'],
+ ['ם', 'm'],
+ ['מ', 'm'],
+ ['ן', 'n'],
+ ['נ', 'n'],
+ ['ס', 's'],
+ ['ע', 'a'],
+ ['פ', 'f'],
+ ['ף', 'ph'],
+ ['צ', 'ts'],
+ ['ץ', 'ts'],
+ ['ק', 'k'],
+ ['ר', 'r'],
+ ['ש', 'sh'],
+ ['ת', 't'],
+ ['ו', 'v'],
+]);
export const charMapping: { [key: string]: string } = {
...cyrillicMapping,
...greekMapping,
...arabicMapping,
...farsiMapping,
...armenianMapping,
+ ...hebrewMapping,
};