Skip to content

Commit

Permalink
feat(i18n): add Hebrew translations for bird names (#380)
Browse files Browse the repository at this point in the history
* Add Hebrew bird example

* feat: Add accesory list for hebrew

* fixes
  • Loading branch information
ChenReuven authored Aug 25, 2024
1 parent 9159c6e commit 4aeb71e
Show file tree
Hide file tree
Showing 6 changed files with 113 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ node_modules
*.launch
.settings/
*.sublime-workspace
.history

# IDE - VSCode
.vscode/*
Expand All @@ -38,4 +39,4 @@ testem.log
.DS_Store
Thumbs.db

.nx/cache
.nx/cache
43 changes: 43 additions & 0 deletions packages/falso/src/lib/i18n/he/accessory.i18n.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"data": [
"אביזר אופנה",
"סרט זרוע",
"מנשא תינוקות",
"כובע בייסבול",
"כובע צמר",
"תכשיט",
"חולצונת",
"נרתיק סיגריות",
"מחזיק סיגריות",
"ארנק מטבעות",
"סיכת צווארון",
"קומפקט",
"אבנט",
"כובע בובה",
"וו שמלה",
"כתפייה",
"כפפת ערב",
"אבזם מתקפל",
"ביריות",
"תליון שיער",
"מקל שיער",
"כובע",
"מניפת יד",
"ממחטה",
"טלפון נייד",
"מחמם ידיים",
"גומיית שיער",
"משקפת שמש",
"ארנק",
"שעון",
"גרביים",
"עניבה",
"כפפות",
"גרבי ניילון",
"כובע צמר",
"כובע מצחייה",
"ברט",
"כובע קש",
"כובע דרבי"
]
}
22 changes: 22 additions & 0 deletions packages/falso/src/lib/i18n/he/accessory.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { FakeOptions, fake } from '../../core/core';
import { data } from './accessory.i18n.json';

/**
* Generate a random accessory.
*
* @category Commerce
*
* @example
*
* randAccessory()
*
* @example
*
* randAccessory({ length: 10 })
*
*/
export function randAccessory<Options extends FakeOptions = never>(
options?: Options
) {
return fake(data, options);
}
22 changes: 22 additions & 0 deletions packages/falso/src/lib/i18n/he/bird.i18n.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"data": [
"פלרופוס צוואר-אדום",
"סנונית מצוקים",
"טירן ראש-גדול",
"קיכלי אצטקית",
"סבכי מצויץ",
"צולל מצוי",
"אוריול סקוט",
"אלבטרוס גבה-שחור",
"תוכי נזירי",
"קוליברי מפואר",
"חופמי מקור-רחב",
"ירגזי שיחים",
"עורבני מקסיקני",
"מרגון מצויץ",
"חסידה יערנית",
"שחף רוס",
"ביצנית ירוקת-רגל",
"עגור צווח"
]
}
22 changes: 22 additions & 0 deletions packages/falso/src/lib/i18n/he/bird.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { FakeOptions, fake } from '../../core/core';
import { data } from './bird.i18n.json';

/**
* Generate a random bird.
*
* @category animals
*
* @example
*
* randBird()
*
* @example
*
* randBird({ length: 10 })
*
*/
export function randBird<Options extends FakeOptions = never>(
options?: Options
) {
return fake(data, options);
}
2 changes: 2 additions & 0 deletions packages/falso/src/lib/i18n/he/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export { randBird } from './bird';
export { randAccessory } from './accessory';

0 comments on commit 4aeb71e

Please sign in to comment.