-
-
Notifications
You must be signed in to change notification settings - Fork 975
feat(food): new module #2484
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
Merged
Merged
feat(food): new module #2484
Changes from 5 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
c77c60c
feat(food): new module
xDivisionByZerox 697c9ed
feat(locale): add food data for en
xDivisionByZerox 27cd5e6
test(food): add
xDivisionByZerox 40ded56
docs: add food to api page
xDivisionByZerox 3e10b78
docs: add basic JSDocs
xDivisionByZerox 8d8f704
chore: remove accidental committed file
xDivisionByZerox 44889ec
fix merge
matthewmayer a5d743c
new definitions and methods
matthewmayer c21cf81
fix lint
matthewmayer f5515d4
fix tests
matthewmayer be599a5
tweak descriptions
matthewmayer 368d9ce
fix snapshot
matthewmayer ee30d87
Update index.ts
matthewmayer c78f0d5
fix imports
matthewmayer 958f1b6
Merge branch 'next' into feat/food-module
matthewmayer a3da8ce
fix lint, tweak title case
matthewmayer e7e8f05
MD tweak
matthewmayer 20b8414
Merge branch 'next' into feat/food-module
matthewmayer 8389722
Update index.ts
matthewmayer 2118804
Merge branch 'next' into feat/food-module
ST-DDT File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import type { LocaleEntry } from './definitions'; | ||
|
||
export type FoodDefinition = LocaleEntry<{ | ||
/** | ||
* List of description patterns. | ||
*/ | ||
description_pattern: string[]; | ||
|
||
/** | ||
* Common dish names. | ||
*/ | ||
dish: string[]; | ||
|
||
/** | ||
* A list of cooking styles that are commonly associated with a particular food item or recipe. | ||
*/ | ||
ethnic_category: string[]; | ||
|
||
/** | ||
* A list of common fruit names. | ||
*/ | ||
fruit: string[]; | ||
|
||
/** | ||
* Common ingredient names. | ||
*/ | ||
ingredient: string[]; | ||
|
||
/** | ||
* A list of common spice names. | ||
*/ | ||
spice: string[]; | ||
|
||
/** | ||
* A list of common vegetable names. | ||
*/ | ||
vegetable: string[]; | ||
}>; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
export default [ | ||
'Three {{food.ingredient}} with {{food.vegetable}}, {{food.vegetable}}, {{food.vegetable}}, {{food.vegetable}} and {{food.ingredient}}. With a side of baked {{food.fruit}}, and your choice of {{food.ingredient}} or {{food.ingredient}}.', | ||
'{{food.ingredient}} with a pinch of {{food.spice}}, topped by a caramelized {{food.fruit}} with whipped cream', | ||
'A slow-roasted {{animal.bird}} with a crisp, golden exterior. Stuffed with {{food.fruit}} and covered in {{food.fruit}} sauce. Sides with {{food.vegetable}} puree and wild {{food.vegetable}}.', | ||
'One slice of exotic {{animal.crocodilia}} meat, {{food.spice}} {{food.spice}} butter, with an additional side.', | ||
'28-day aged 300g {{animal.cow}} steak, with choice of two sides.', | ||
matthewmayer marked this conversation as resolved.
Show resolved
Hide resolved
|
||
'A simple {{food.fruit}} pie. No fancy stuff. Just pie.', | ||
'A special {{color.human}} {{food.ingredient}} from {{location.country}}. To support the strong flavor it is sided with a tablespoon of {{food.spice}}.', | ||
]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
export default [ | ||
'Arepas', | ||
matthewmayer marked this conversation as resolved.
Show resolved
Hide resolved
|
||
'Barbecue Ribs', | ||
'Bruschette with Tomato', | ||
'Bunny Chow', | ||
'Caesar Salad', | ||
'California Maki', | ||
'Caprese Salad', | ||
'Cauliflower Penne', | ||
'Cheeseburger', | ||
'Chicken Fajitas', | ||
'Chicken Milanese', | ||
'Chicken Parm', | ||
'Chicken Wings', | ||
'Chilli con Carne', | ||
'Ebiten maki', | ||
'Fettuccine Alfredo', | ||
'Fish and Chips', | ||
'French Fries with Sausages', | ||
'French Toast', | ||
'Hummus', | ||
'Katsu Curry', | ||
'Kebab', | ||
'Lasagne', | ||
'Linguine with Clams', | ||
'Massaman Curry', | ||
'Meatballs with Sauce', | ||
'Mushroom Risotto', | ||
'Pappardelle alla Bolognese', | ||
'Pasta Carbonara', | ||
'Pasta and Beans', | ||
'Pasta with Tomato and Basil', | ||
'Peking Duck', | ||
'Philadelphia Maki', | ||
'Pho', | ||
'Pierogi', | ||
'Pizza', | ||
'Poke', | ||
'Pork Belly Buns', | ||
'Pork Sausage Roll', | ||
'Poutine', | ||
'Ricotta Stuffed Ravioli', | ||
'Risotto with Seafood', | ||
'Salmon Nigiri', | ||
'Scotch Eggs', | ||
'Seafood Paella', | ||
'Som Tam', | ||
'Souvlaki', | ||
'Stinky Tofu', | ||
'Sushi', | ||
'Tacos', | ||
'Teriyaki Chicken Donburi', | ||
'Tiramisù', | ||
'Tuna Sashimi', | ||
'Vegetable Soup', | ||
]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
export default [ | ||
'Ainu', | ||
'Albanian', | ||
'Argentine', | ||
'Andhra', | ||
'American', | ||
'Anglo-Indian', | ||
'Arab', | ||
'Armenian', | ||
'Assyrian', | ||
'Awadhi', | ||
'Azerbaijani', | ||
'Balochi', | ||
'Bashkir', | ||
'Belarusian', | ||
'Bangladeshi', | ||
'Bengali', | ||
'Berber', | ||
'Brazilian', | ||
'British', | ||
'Buddhist', | ||
'Bulgarian', | ||
'Cajun', | ||
'Cantonese', | ||
'Caribbean', | ||
'Chechen', | ||
'Chinese cuisine', | ||
'Chinese Islamic', | ||
'Circassian', | ||
'Crimean Tatar', | ||
'Cypriot', | ||
'Czech', | ||
'Danish', | ||
'Egyptian', | ||
'English', | ||
'Ethiopian', | ||
'Eritrean', | ||
'Estonian', | ||
'French', | ||
'Filipino', | ||
'Georgian', | ||
'German', | ||
'Goan', | ||
'Goan Catholic', | ||
'Greek', | ||
'Gujarati', | ||
'Hyderabad', | ||
'Indian cuisine', | ||
'Indian Chinese', | ||
'Indian Singaporean cuisine', | ||
'Indonesian', | ||
'Inuit', | ||
'Irish', | ||
'Italian-American', | ||
'Italian cuisine', | ||
'Jamaican', | ||
'Japanese', | ||
'Jewish - Israeli', | ||
'Karnataka', | ||
'Kazakh', | ||
'Keralite', | ||
'Korean', | ||
'Kurdish', | ||
'Laotian', | ||
'Lebanese', | ||
'Latvian', | ||
'Lithuanian', | ||
'Louisiana Creole', | ||
'Maharashtrian', | ||
'Mangalorean', | ||
'Malay', | ||
'Malaysian Chinese cuisine', | ||
'Malaysian Indian cuisine', | ||
'Mediterranean cuisine', | ||
'Mennonite', | ||
'Mexican', | ||
'Mordovian', | ||
'Mughal', | ||
'Native American', | ||
'Nepalese', | ||
'New Mexican', | ||
'Odia', | ||
'Parsi', | ||
'Pashtun', | ||
'Polish', | ||
'Pennsylvania Dutch', | ||
'Pakistani', | ||
'Peranakan', | ||
'Persian', | ||
'Peruvian', | ||
'Portuguese', | ||
'Punjabi', | ||
'Québécois', | ||
'Rajasthani', | ||
'Romani', | ||
'Romanian', | ||
'Russian', | ||
'Sami', | ||
'Serbian', | ||
'Sindhi', | ||
'Slovak', | ||
'Slovenian', | ||
'Somali', | ||
'South Indian', | ||
'Soviet', | ||
'Spanish', | ||
'Sri Lankan', | ||
'Taiwanese', | ||
'Tatar', | ||
'Texan', | ||
'Thai', | ||
'Turkish', | ||
'Tamil', | ||
'Udupi', | ||
'Ukrainian', | ||
'Vietnamese', | ||
'Yamal', | ||
'Zambian', | ||
'Zanzibari', | ||
]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
export default [ | ||
'Apples', | ||
matthewmayer marked this conversation as resolved.
Show resolved
Hide resolved
|
||
'Apricots', | ||
'Aubergine', | ||
'Avocado', | ||
'Banana', | ||
'Berries', | ||
'Blackberries', | ||
'Blood oranges', | ||
'Blueberries', | ||
'Bush Tomato', | ||
'Butternut pumpkin', | ||
'Cantaloupe', | ||
'Cavalo', | ||
'Starfruit', | ||
'Cherries', | ||
'Corella Pear', | ||
'Cranberry', | ||
'Cumquat', | ||
'Currants', | ||
'Custard Apples', | ||
'Custard Apples Daikon', | ||
'Dates', | ||
'Dragonfruit', | ||
'Dried Apricots', | ||
'Elderberry', | ||
'Feijoa', | ||
'Grapefruit', | ||
'Grapes', | ||
'Figs', | ||
'Fingerlime', | ||
'Goji Berry', | ||
'Guava', | ||
'Honeydew melon', | ||
'Incaberries', | ||
'Jarrahdale pumpkin', | ||
'Juniper Berries', | ||
'Kiwi Fruit', | ||
'Kiwiberries', | ||
'Lemon', | ||
'Limes', | ||
'Longan', | ||
'Loquats', | ||
'Lychees', | ||
'Mango', | ||
'Mangosteens', | ||
'Melon', | ||
'Mandarins', | ||
'Mulberries', | ||
'Nashi Pear', | ||
'Nectarines', | ||
'Olives', | ||
'Oranges', | ||
'Papaw', | ||
'Papaya', | ||
'Passionfruit', | ||
'Peaches', | ||
'Pears', | ||
'Pineapple', | ||
'Pomegranate', | ||
'Plums', | ||
'Prunes', | ||
'Rockmelon', | ||
'Snowpeas', | ||
'Sprouts', | ||
'Strawberries', | ||
'Sultanas', | ||
'Tangelo', | ||
'Tomatoes', | ||
'Watermelon', | ||
]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/* | ||
* This file is automatically generated. | ||
* Run 'pnpm run generate:locales' to update. | ||
*/ | ||
import type { FoodDefinition } from '../../..'; | ||
import description_pattern from './description_pattern'; | ||
import dish from './dish'; | ||
import ethnic_category from './ethnic_category'; | ||
import fruit from './fruit'; | ||
import ingredient from './ingredient'; | ||
import spice from './spice'; | ||
import vegetable from './vegetable'; | ||
|
||
const food: FoodDefinition = { | ||
description_pattern, | ||
dish, | ||
ethnic_category, | ||
fruit, | ||
ingredient, | ||
spice, | ||
vegetable, | ||
}; | ||
|
||
export default food; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.