Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(i18n): add Hebrew translations for bird names #380

Merged
merged 3 commits into from
Aug 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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';
Loading