diff --git a/src/locales/en/date/mod.rs b/src/locales/en/date/mod.rs new file mode 100644 index 0000000..1347565 --- /dev/null +++ b/src/locales/en/date/mod.rs @@ -0,0 +1,2 @@ +pub mod month; +pub mod weekday; \ No newline at end of file diff --git a/src/locales/en/date/month.rs b/src/locales/en/date/month.rs new file mode 100644 index 0000000..b2758f6 --- /dev/null +++ b/src/locales/en/date/month.rs @@ -0,0 +1,44 @@ +use crate::utils::seeder; +use wasm_bindgen::prelude::*; + +#[wasm_bindgen(js_name = date_month_wide)] +pub fn month_wide() -> String { + EN_MONTH_WIDE[seeder::gen_range(0..EN_MONTH_WIDE_LEN)].to_string() +} + +static EN_MONTH_WIDE: [&'static str; 12] = [ + "January", + "February", + "March", + "April", + "May", + "June", + "July", + "August", + "September", + "October", + "November", + "December", +]; +static EN_MONTH_WIDE_LEN: usize = EN_MONTH_WIDE.len(); + +#[wasm_bindgen(js_name = date_month_abbr)] +pub fn month_abbr() -> String { + EN_MONTH_ABBR[seeder::gen_range(0..EN_MONTH_ABBR_LEN)].to_string() +} + +static EN_MONTH_ABBR: [&'static str; 12] = [ + "Jan", + "Feb", + "Mar", + "Apr", + "May", + "Jun", + "Jul", + "Aug", + "Sep", + "Oct", + "Nov", + "Dec", +]; +static EN_MONTH_ABBR_LEN: usize = EN_MONTH_ABBR.len(); \ No newline at end of file diff --git a/src/locales/en/date/weekday.rs b/src/locales/en/date/weekday.rs new file mode 100644 index 0000000..f23403c --- /dev/null +++ b/src/locales/en/date/weekday.rs @@ -0,0 +1,29 @@ +use crate::utils::seeder; +use wasm_bindgen::prelude::*; + +#[wasm_bindgen(js_name = date_weekday_wide)] +pub fn weekday_wide() -> String { + EN_WEEKDAY_WIDE[seeder::gen_range(0..EN_WEEKDAY_WIDE_LEN)].to_string() +} + +static EN_WEEKDAY_WIDE: [&'static str; 7] = [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday", +]; +static EN_WEEKDAY_WIDE_LEN: usize = EN_WEEKDAY_WIDE.len(); + +#[wasm_bindgen(js_name = date_weekday_abbr)] +pub fn weekday_abbr() -> String { + EN_WEEKDAY_ABBR[seeder::gen_range(0..EN_WEEKDAY_ABBR_LEN)].to_string() +} + +static EN_WEEKDAY_ABBR: [&'static str; 7] = [ + "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", +]; +static EN_WEEKDAY_ABBR_LEN: usize = EN_WEEKDAY_ABBR.len(); + diff --git a/src/locales/en/mod.rs b/src/locales/en/mod.rs index 4d3d60d..0422141 100644 --- a/src/locales/en/mod.rs +++ b/src/locales/en/mod.rs @@ -17,3 +17,6 @@ pub mod color; pub mod app; pub mod lorem; pub mod team; +pub mod date; +pub mod sport; +pub mod tea; \ No newline at end of file diff --git a/src/locales/en/sport/ancient_olympics.rs b/src/locales/en/sport/ancient_olympics.rs new file mode 100644 index 0000000..3a09c57 --- /dev/null +++ b/src/locales/en/sport/ancient_olympics.rs @@ -0,0 +1,20 @@ +use crate::utils::seeder; +use wasm_bindgen::prelude::*; + +#[wasm_bindgen(js_name = sport_ancient_olympics)] +pub fn ancient_olympics_sport() -> String { + EN_ANCIENT_OLYMPICS[seeder::gen_range(0..EN_ANCIENT_OLYMPICS_LEN)].to_string() +} + +static EN_ANCIENT_OLYMPICS: [&'static str; 9] = [ + "Boxing", + "Chariot racing", + "Discus", + "Horse racing", + "Long jump", + "Pankration", + "Pentathlon", + "Running", + "Wrestling", +]; +static EN_ANCIENT_OLYMPICS_LEN: usize = EN_ANCIENT_OLYMPICS.len(); \ No newline at end of file diff --git a/src/locales/en/sport/mod.rs b/src/locales/en/sport/mod.rs new file mode 100644 index 0000000..d747de5 --- /dev/null +++ b/src/locales/en/sport/mod.rs @@ -0,0 +1,6 @@ +pub mod summer_olympics; +pub mod winter_olympics; +pub mod summer_paralympics; +pub mod winter_paralympics; +pub mod ancient_olympics; +pub mod unusual; \ No newline at end of file diff --git a/src/locales/en/sport/summer_olympics.rs b/src/locales/en/sport/summer_olympics.rs new file mode 100644 index 0000000..a8b4db3 --- /dev/null +++ b/src/locales/en/sport/summer_olympics.rs @@ -0,0 +1,58 @@ +use crate::utils::seeder; +use wasm_bindgen::prelude::*; + +#[wasm_bindgen(js_name = sport_summer_olympics)] +pub fn summer_olympics_sport() -> String { + EN_SUMMER_OLYMPICS[seeder::gen_range(0..EN_SUMMER_OLYMPICS_LEN)].to_string() +} + +static EN_SUMMER_OLYMPICS: [&'static str; 47] = [ + "3x3 basketball", + "Archery", + "Artistic gymnastics", + "Artistic swimming", + "Athletics", + "Badminton", + "Baseball # Technically part of \"Baseball Softball\" according to IOC website", + "Basketball", + "Beach volleyball", + "BMX freestyle # Officially \"Cycling BMX Freestyle\"", + "BMX racing # Officially \"Cycling BMX Racing\"", + "Boxing", + "Canoe/kayak flatwater", + "Canoe/kayak slalom", + "Diving", + "Equestrian", + "Fencing", + "Football", + "Golf", + "Handball", + "Hockey", + "Judo", + "Karate", + "Marathon swimming", + "Modern pentathlon", + "Mountain bike # Officially \"Cycling Mountain Bike\"", + "Rhythmic gymnastics", + "Road cycling # Officially \"Cycling Road\"", + "Rowing", + "Rugby # Officially \"Rugby Sevens\"", + "Sailing", + "Shooting", + "Skateboarding", + "Softball # Technically part of \"Baseball Softball\" according to IOC website", + "Sport climbing", + "Surfing", + "Swimming", + "Table tennis", + "Taekwondo", + "Tennis", + "Track cycling # Officially \"Cycling Track\"", + "Trampoline", + "Triathlon", + "Volleyball", + "Water polo", + "Weight lifting", + "Wrestling", +]; +static EN_SUMMER_OLYMPICS_LEN: usize = EN_SUMMER_OLYMPICS.len(); \ No newline at end of file diff --git a/src/locales/en/sport/summer_paralympics.rs b/src/locales/en/sport/summer_paralympics.rs new file mode 100644 index 0000000..a11fb12 --- /dev/null +++ b/src/locales/en/sport/summer_paralympics.rs @@ -0,0 +1,33 @@ +use crate::utils::seeder; +use wasm_bindgen::prelude::*; + +#[wasm_bindgen(js_name = sport_summer_paralympics)] +pub fn summer_paralympics_sport() -> String { + EN_SUMMER_PAEALYMPICS[seeder::gen_range(0..EN_SUMMER_PAEALYMPICS_LEN)].to_string() +} + +static EN_SUMMER_PAEALYMPICS: [&'static str; 22] = [ + "Archery", + "Athletics", + "Badminton", + "Blind football", + "Boccia", + "Canoe", + "Cycling", + "Equestrian", + "Goalball", + "Judo", + "Powerlifting", + "Rowing", + "Shooting", + "Sitting volleyball", + "Swimming", + "Table tennis", + "Taekwondo", + "Triathlon", + "Wheelchair basketball", + "Wheelchair fencing", + "Wheelchair rugby", + "Wheelchair tennis", +]; +static EN_SUMMER_PAEALYMPICS_LEN: usize = EN_SUMMER_PAEALYMPICS.len(); \ No newline at end of file diff --git a/src/locales/en/sport/unusual.rs b/src/locales/en/sport/unusual.rs new file mode 100644 index 0000000..1e3f365 --- /dev/null +++ b/src/locales/en/sport/unusual.rs @@ -0,0 +1,32 @@ +use crate::utils::seeder; +use wasm_bindgen::prelude::*; + +#[wasm_bindgen(js_name = sport_unusual)] +pub fn unusual_sport() -> String { + EN_UNUSUAL_SPORT[seeder::gen_range(0..EN_UNUSUAL_SPORT_LEN)].to_string() +} + +static EN_UNUSUAL_SPORT: [&'static str; 21] = [ + "Apple Racing", + "Ban'ei", + "Bathtubbing", + "Bed racing", + "Bossaball", + "Botaoshi", + "Beer Can Regatta", + "Black pudding throwing", + "Bog snorkelling", + "Bottle kicking", + "Camel jumping", + "Camel wrestling", + "Chess boxing", + "Extreme ironing", + "Flugtag/Birdman", + "Gurning", + "Kastenlauf (Beer crate running)", + "Oil wrestling", + "Poohsticks", + "Wife carrying", + "Zorbing", +]; +static EN_UNUSUAL_SPORT_LEN: usize = EN_UNUSUAL_SPORT.len(); \ No newline at end of file diff --git a/src/locales/en/sport/winter_olympics.rs b/src/locales/en/sport/winter_olympics.rs new file mode 100644 index 0000000..024c8ae --- /dev/null +++ b/src/locales/en/sport/winter_olympics.rs @@ -0,0 +1,27 @@ +use crate::utils::seeder; +use wasm_bindgen::prelude::*; + +#[wasm_bindgen(js_name = sport_winter_olympics)] +pub fn winter_olympics_sport() -> String { + EN_WINTER_OLYMPICS[seeder::gen_range(0..EN_WINTER_OLYMPICS_LEN)].to_string() +} + +static EN_WINTER_OLYMPICS: [&'static str; 16] = [ + "Alpine skiing", + "Biathlon", + "Bobsleigh", + "Cross-country skiing", + "Curling", + "Figure skating", + "Freestyle skiing", + "Ice hockey", + "Luge", + "Nordic combined", + "Short track speed skating", + "Skeleton", + "Ski jumping", + "Ski mountaineering", + "Snowboard", + "Speed skating", +]; +static EN_WINTER_OLYMPICS_LEN: usize = EN_WINTER_OLYMPICS.len(); \ No newline at end of file diff --git a/src/locales/en/sport/winter_paralympics.rs b/src/locales/en/sport/winter_paralympics.rs new file mode 100644 index 0000000..d03da7f --- /dev/null +++ b/src/locales/en/sport/winter_paralympics.rs @@ -0,0 +1,17 @@ +use crate::utils::seeder; +use wasm_bindgen::prelude::*; + +#[wasm_bindgen(js_name = sport_winter_paralympics)] +pub fn winter_paralympics_sport() -> String { + EN_WINTER_PAEALYMPICS[seeder::gen_range(0..EN_WINTER_PAEALYMPICS_LEN)].to_string() +} + +static EN_WINTER_PAEALYMPICS: [&'static str; 6] = [ + "Alpine skiing", + "Biathlon", + "Cross-country skiing", + "Para ice hockey", + "Snowboard", + "Wheelchair curling", +]; +static EN_WINTER_PAEALYMPICS_LEN: usize = EN_WINTER_PAEALYMPICS.len(); \ No newline at end of file diff --git a/src/locales/en/tea/black_tea.rs b/src/locales/en/tea/black_tea.rs new file mode 100644 index 0000000..be9b91c --- /dev/null +++ b/src/locales/en/tea/black_tea.rs @@ -0,0 +1,35 @@ +use crate::utils::seeder; +use wasm_bindgen::prelude::*; + +#[wasm_bindgen(js_name = tea_black_tea)] +pub fn black_tea() -> String { + EN_BLACK_TEA[seeder::gen_range(0..EN_BLACK_TEA_LEN)].to_string() +} + +static EN_BLACK_TEA: [&'static str; 24] = [ + "Assam", + "Ceylon", + "Congou", + "Darjeeling", + "Dianhong", + "Earl Grey", + "English Afternoon", + "English Breakfast", + "Irish Breakfast", + "Jaekseol", + "Jiu Qu Hong Mei", + "Kangra", + "Keemun", + "Lady Grey", + "Lahijan", + "Lapsang Souchong", + "Masala Chai", + "Munnar", + "Nepali", + "Nilgiri", + "Rize", + "Scottish Breakfast", + "Sun Moon Lake", + "Yingdehong", +]; +static EN_BLACK_TEA_LEN: usize = EN_BLACK_TEA.len(); \ No newline at end of file diff --git a/src/locales/en/tea/green_tea.rs b/src/locales/en/tea/green_tea.rs new file mode 100644 index 0000000..288d374 --- /dev/null +++ b/src/locales/en/tea/green_tea.rs @@ -0,0 +1,34 @@ +use crate::utils::seeder; +use wasm_bindgen::prelude::*; + +#[wasm_bindgen(js_name = tea_green_tea)] +pub fn green_tea() -> String { + EN_GREEN_TEA[seeder::gen_range(0..EN_GREEN_TEA_LEN)].to_string() +} + +static EN_GREEN_TEA: [&'static str; 23] = [ + "Bancha", + "Biluochun", + "Chun Mee", + "Daejak", + "Garucha", + "Genmaicha", + "Gunpowder", + "Gyokuro", + "Hojicha", + "Huangshan Maofeng", + "Ipcha", + "Jungjak", + "Kabusecha", + "Kukicha", + "Longjing", + "Lu'an Melon Seed", + "Matcha", + "Sejak", + "Sencha", + "Shincha", + "Taipin Houkui", + "Ujeon", + "Xinyang Maojian", +]; +static EN_GREEN_TEA_LEN: usize = EN_GREEN_TEA.len(); \ No newline at end of file diff --git a/src/locales/en/tea/herbal_tea.rs b/src/locales/en/tea/herbal_tea.rs new file mode 100644 index 0000000..bca9e28 --- /dev/null +++ b/src/locales/en/tea/herbal_tea.rs @@ -0,0 +1,96 @@ +use crate::utils::seeder; +use wasm_bindgen::prelude::*; + +#[wasm_bindgen(js_name = tea_herbal_tea)] +pub fn herbal_tea() -> String { + EN_HERBAL_TEA[seeder::gen_range(0..EN_HERBAL_TEA_LEN)].to_string() +} + +static EN_HERBAL_TEA: [&'static str; 85] = [ + "Anise", + "Asiatic Penny-Wort", + "Bael Fruit", + "Barley", + "Bee Balm", + "Boldo", + "Burdock", + "Cacao", + "Caraway", + "Cats Claw", + "Catnip", + "Cerasse", + "Chamomile", + "Che Dang", + "Chinese Knot-Weed", + "Chrysanthemum", + "Cinnamon", + "Citrus Peel", + "Dandelion", + "Dill", + "Dried Lime", + "Echinacea", + "Elderberry", + "Essiac", + "European Mistletoe", + "Fennel", + "Gentian", + "Ginger Root", + "Ginseng", + "Goji", + "Hawthorn", + "Hibiscus", + "Honeybush", + "Horehound", + "Houttuynia", + "Jiaogulan", + "Kapor", + "Kuzuyu", + "Labrador", + "Lemon Balm", + "Lemon Ginger", + "Lemon Grass", + "Licorice Root", + "Lime Blossom", + "Luo Han Guo", + "Mint", + "Moringa", + "Mountain Tea", + "Neem", + "Nettle", + "New Jersey Tea", + "Noni", + "Oksusu Cha", + "Olive Leaf", + "Osmanthus", + "Pandan", + "Patchouli", + "Pine", + "Qishr", + "Red Clover", + "Red Raspberry", + "Roasted Wheat", + "Rooibos", + "Rose Hip", + "Roselle", + "Rosemary", + "Sage", + "Sagebrush", + "Serendib", + "Skurayu", + "Sobacha", + "Spearmint", + "Spicebush", + "Spruce", + "St. John Wort", + "Thyme", + "Tulsi", + "Turmeric", + "Valerian", + "Verbena", + "Vetiver", + "Wax Gourd", + "Wong Lo Kat", + "Woodruff", + "Yarrow", +]; +static EN_HERBAL_TEA_LEN: usize = EN_HERBAL_TEA.len(); \ No newline at end of file diff --git a/src/locales/en/tea/mod.rs b/src/locales/en/tea/mod.rs new file mode 100644 index 0000000..1504e6a --- /dev/null +++ b/src/locales/en/tea/mod.rs @@ -0,0 +1,5 @@ +pub mod black_tea; +pub mod green_tea; +pub mod herbal_tea; +pub mod oolong_tea; +pub mod white_tea; \ No newline at end of file diff --git a/src/locales/en/tea/oolong_tea.rs b/src/locales/en/tea/oolong_tea.rs new file mode 100644 index 0000000..ab63efd --- /dev/null +++ b/src/locales/en/tea/oolong_tea.rs @@ -0,0 +1,31 @@ +use crate::utils::seeder; +use wasm_bindgen::prelude::*; + +#[wasm_bindgen(js_name = tea_oolong_tea)] +pub fn oolong_tea() -> String { + EN_OOLONG_TEA[seeder::gen_range(0..EN_OOLONG_TEA_LEN)].to_string() +} + +static EN_OOLONG_TEA: [&'static str; 20] = [ + "Alishan", + "Bai Jiguan", + "Da Hong Pao", + "Dancong", + "Dongding", + "Dongfang Meiren", + "Fujian", + "Gaoshan", + "Huangjin Gui", + "Ji Xuan", + "Lishan", + "Pouchong", + "Rougui", + "Ruan Zhi", + "Shui Jin Gui", + "Shui Xian", + "Tieguanyin", + "Tieluohan", + "Tienguanyin", + "Vietnamese", +]; +static EN_OOLONG_TEA_LEN: usize = EN_OOLONG_TEA.len(); \ No newline at end of file diff --git a/src/locales/en/tea/white_tea.rs b/src/locales/en/tea/white_tea.rs new file mode 100644 index 0000000..708520d --- /dev/null +++ b/src/locales/en/tea/white_tea.rs @@ -0,0 +1,16 @@ +use crate::utils::seeder; +use wasm_bindgen::prelude::*; + +#[wasm_bindgen(js_name = tea_white_tea)] +pub fn white_tea() -> String { + EN_WHITE_TEA[seeder::gen_range(0..EN_WHITE_TEA_LEN)].to_string() +} + +static EN_WHITE_TEA: [&'static str; 5] = [ + "Bai Mu Dan", + "Fujian New Craft", + "Gongmei", + "Shou Mei", + "Yi Zhen Bai Hao", +]; +static EN_WHITE_TEA_LEN: usize = EN_WHITE_TEA.len(); \ No newline at end of file