-
-
Notifications
You must be signed in to change notification settings - Fork 962
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: new plant module #2126
feat: new plant module #2126
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import type { LocaleEntry } from './definitions'; | ||
|
||
/** | ||
* The possible definitions related to plants. | ||
*/ | ||
export type PlantDefinition = LocaleEntry<{ | ||
tree: string[]; | ||
flower: string[]; | ||
}>; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
export default [ | ||
'African Daisy', | ||
'Agapanthus', | ||
'Alstroemeria', | ||
'Alyssum', | ||
'Amaranthus', | ||
'Amaryllis', | ||
'Anemone', | ||
'Angelonia', | ||
'Anthurium', | ||
'Aster', | ||
'Astilbe', | ||
'Baby’s Breath', | ||
'Bachelor Button', | ||
'Begonia', | ||
'Bellflower', | ||
'Bird of Paradise', | ||
'Black-Eyed Susan', | ||
'Bleeding Heart', | ||
'Bougainvillea', | ||
'Butterfly Bush', | ||
'Caladium', | ||
'Calendula', | ||
'Calla Lily', | ||
'Camellia', | ||
'Canna', | ||
'Carnation', | ||
'Celosia', | ||
'Chrysanthemum', | ||
'Clematis', | ||
'Columbine', | ||
'Coneflower', | ||
'Coreopsis', | ||
'Cosmos', | ||
'Crocus', | ||
'Cyclamen', | ||
'Daffodil', | ||
'Dahlia', | ||
'Daisy', | ||
'Dianthus', | ||
'Dusty Miller', | ||
'Echinacea', | ||
'Edelweiss', | ||
'Eustoma', | ||
'Freesia', | ||
'Gardenia', | ||
'Geranium', | ||
'Gerbera Daisy', | ||
'Gladiolus', | ||
'Globe Amaranth', | ||
'Hibiscus', | ||
'Hosta', | ||
'Hyacinth', | ||
'Hydrangea', | ||
'Iris', | ||
'Jasmine', | ||
'Kangaroo Paw', | ||
'Lantana', | ||
'Larkspur', | ||
'Lavender', | ||
'Liatris', | ||
'Lilac', | ||
'Lily', | ||
'Lisianthus', | ||
'Lobelia', | ||
'Marigold', | ||
'Morning Glory', | ||
'Narcissus', | ||
'Nasturtium', | ||
'Nemesia', | ||
'Nigella', | ||
'Orchid', | ||
'Pansy', | ||
'Passion Flower', | ||
'Peony', | ||
'Petunia', | ||
'Phlox', | ||
'Pincushion Flower', | ||
'Poppy', | ||
'Primrose', | ||
'Protea', | ||
'Queen Anne’s Lace', | ||
'Ranunculus', | ||
'Rose', | ||
'Salvia', | ||
'Scabiosa', | ||
'Snapdragon', | ||
'Spider Flower', | ||
'Star Jasmine', | ||
'Statice', | ||
'Stock', | ||
'Sunflower', | ||
'Sweet Pea', | ||
'Tulip', | ||
'Verbena', | ||
'Veronica', | ||
'Viola', | ||
'Violet', | ||
'Wax Flower', | ||
'Wisteria', | ||
'Yarrow', | ||
'Zinnia', | ||
]; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/* | ||
* This file is automatically generated. | ||
* Run 'pnpm run generate:locales' to update. | ||
*/ | ||
import type { PlantDefinition } from '../../..'; | ||
import flower from './flower'; | ||
import tree from './tree'; | ||
|
||
const plant: PlantDefinition = { | ||
flower, | ||
tree, | ||
}; | ||
|
||
export default plant; |
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For the trees, i think it would be better to keep the names to simpler, mostly one-word tree names. Then those could be used in other patterns like https://github.com/faker-js/faker/blob/next/src/locales/en/location/street_pattern.ts For example "Pine Street" or "Ash Drive" is realistic, but "Lavender Twist Redbud Avenue" is not. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe we should have a separate method/option for simple names? |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,161 @@ | ||
export default [ | ||
'Acacia', | ||
'Alder', | ||
'Almond', | ||
'Amur Corktree', | ||
'Apple', | ||
'Arborvitae', | ||
'Ash', | ||
'Aspen', | ||
'Australian Willow', | ||
'Bald Cypress', | ||
'Bamboo', | ||
'Banyan', | ||
'Basswood', | ||
'Bay Laurel', | ||
'Beech', | ||
'Birch', | ||
'Black Cherry', | ||
'Black Locust', | ||
'Black Oak', | ||
'Black Walnut', | ||
'Black Willow', | ||
'Blue Spruce', | ||
'Bottlebrush', | ||
'Bradford Pear', | ||
'Bristlecone Pine', | ||
'Broadleaf Maple', | ||
'Buckeye', | ||
'Bur Oak', | ||
'Butternut', | ||
'California Buckeye', | ||
'California Live Oak', | ||
'California Redwood', | ||
'California Sycamore', | ||
'Catalpa', | ||
'Cedar', | ||
'Cherry', | ||
'Chestnut', | ||
'Chinese Elm', | ||
'Chinkapin Oak', | ||
'Cinnamon Tree', | ||
'Colorado Blue Spruce', | ||
'Common Hackberry', | ||
'Common Lime', | ||
'Copper Beech', | ||
'Cork Oak', | ||
'Cornelian Cherry', | ||
'Cottonwood', | ||
'Crab Apple', | ||
'Crape Myrtle', | ||
'Dawn Redwood', | ||
'Deodar Cedar', | ||
'Dogwood', | ||
'Douglas Fir', | ||
'Eastern Hemlock', | ||
'Eastern Redbud', | ||
'Eastern White Pine', | ||
'English Oak', | ||
'English Walnut', | ||
'European Beech', | ||
'European Hornbeam', | ||
'European Larch', | ||
'European Silver Fir', | ||
'Fir', | ||
'Flowering Dogwood', | ||
'Flowering Plum', | ||
'Forsythia', | ||
'Gingko', | ||
'Ginkgo Biloba', | ||
'Golden Rain Tree', | ||
'Grand Fir', | ||
'Green Ash', | ||
'Hawthorn', | ||
'Hazelnut', | ||
'Hickory', | ||
'Holly', | ||
'Honeylocust', | ||
'Horse Chestnut', | ||
'Japanese Cherry', | ||
'Japanese Maple', | ||
'Japanese Tree Lilac', | ||
'Japanese Zelkova', | ||
'Juniper', | ||
'Katsura Tree', | ||
'Kentucky Coffeetree', | ||
'Larch', | ||
'Lavender Twist Redbud', | ||
'Lemon Tree', | ||
'Leyland Cypress', | ||
'Linden', | ||
'Liquidambar', | ||
'Locust', | ||
'Longleaf Pine', | ||
'Magnolia', | ||
'Maidenhair Tree', | ||
'Maple', | ||
'Mimosa', | ||
'Monterey Pine', | ||
'Mountain Ash', | ||
'Mulberry', | ||
'Needle Fir', | ||
'Norway Maple', | ||
'Norway Spruce', | ||
'Oak', | ||
'Ohio Buckeye', | ||
'Olive Tree', | ||
'Paper Birch', | ||
'Paperbark Maple', | ||
'Pecan', | ||
'Persian Ironwood', | ||
'Persimmon', | ||
'Pine', | ||
'Pin Oak', | ||
'Plane Tree', | ||
'Plum', | ||
'Ponderosa Pine', | ||
'Poplar', | ||
'Port Orford Cedar', | ||
'Purple Leaf Plum', | ||
'Quaking Aspen', | ||
'Red Alder', | ||
'Red Maple', | ||
'Red Oak', | ||
'Red Pine', | ||
'Red Spruce', | ||
'Redbud', | ||
'River Birch', | ||
'Sassafras', | ||
'Saucer Magnolia', | ||
'Scots Pine', | ||
'Serviceberry', | ||
'Shagbark Hickory', | ||
'Shingle Oak', | ||
'Silver Birch', | ||
'Silver Maple', | ||
'Smoke Tree', | ||
'Sourwood', | ||
'Southern Magnolia', | ||
'Southern Red Oak', | ||
'Spruce', | ||
'Sugar Maple', | ||
'Sweet Birch', | ||
'Sweet Chestnut', | ||
'Sweet Gum', | ||
'Sycamore', | ||
'Tamarack', | ||
'Thornless Honeylocust', | ||
'Tree Of Heaven', | ||
'Tulip Tree', | ||
'White Ash', | ||
'White Fir', | ||
'White Oak', | ||
'White Pine', | ||
'White Spruce', | ||
'Willow', | ||
'Witch Hazel', | ||
'Yellow Birch', | ||
'Yellowwood', | ||
'Yew', | ||
'Zelkova', | ||
]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is redundant as this is a new definition that didnt exist before.