@jjlmoya/utils-alcohol 1.8.0 → 1.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/tool/alcoholClearance/i18n/en.ts +22 -10
- package/src/tool/alcoholClearance/i18n/es.ts +22 -10
- package/src/tool/alcoholClearance/i18n/fr.ts +22 -10
- package/src/tool/beerCooler/i18n/en.ts +4 -4
- package/src/tool/beerCooler/i18n/es.ts +4 -4
- package/src/tool/beerCooler/i18n/fr.ts +4 -4
- package/src/tool/carbonationCalculator/i18n/en.ts +8 -4
- package/src/tool/carbonationCalculator/i18n/es.ts +8 -4
- package/src/tool/carbonationCalculator/i18n/fr.ts +8 -4
- package/src/tool/cocktailBalancer/i18n/en.ts +3 -3
- package/src/tool/cocktailBalancer/i18n/es.ts +3 -3
- package/src/tool/cocktailBalancer/i18n/fr.ts +3 -3
- package/src/tool/partyKeg/i18n/en.ts +9 -5
- package/src/tool/partyKeg/i18n/es.ts +9 -5
- package/src/tool/partyKeg/i18n/fr.ts +12 -8
- package/src/types.ts +2 -2
package/package.json
CHANGED
|
@@ -2,8 +2,8 @@ import type { WithContext, SoftwareApplication } from 'schema-dts';
|
|
|
2
2
|
import type { AlcoholClearanceUI, AlcoholClearanceLocaleContent } from '../index';
|
|
3
3
|
|
|
4
4
|
const slug = 'alcohol-clearance-calculator';
|
|
5
|
-
const title = '
|
|
6
|
-
const description = '
|
|
5
|
+
const title = 'Hangover & BAC Calculator: Recovery Predictor';
|
|
6
|
+
const description = 'Calculate your Blood Alcohol Content (BAC) and time to reach 0.0 using Widmark\'s formula. Plan your pre-sleep hydration and know when you\'ll be fully recovered.';
|
|
7
7
|
|
|
8
8
|
const ui: AlcoholClearanceUI = {
|
|
9
9
|
biologicalSexLabel: 'Biological Sex',
|
|
@@ -35,23 +35,35 @@ const bibliographyTitle = 'Bibliography & Sources';
|
|
|
35
35
|
|
|
36
36
|
const faq: AlcoholClearanceLocaleContent['faq'] = [
|
|
37
37
|
{
|
|
38
|
-
question: "What is
|
|
39
|
-
answer: "
|
|
38
|
+
question: "What is a Standard Drink Unit and how much is in each drink?",
|
|
39
|
+
answer: "A Standard Drink Unit contains approximately 10 grams of pure alcohol (UK/EU definition; 14g in the US). A regular beer (330ml at 5%) contains ~1.3 units, a glass of wine (150ml at 12%) ~1.4 units, and a shot (40ml at 40%) ~1.3 units. Knowing the units in what you drink is essential for interpreting the calculator's results correctly.",
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
|
-
question: "
|
|
43
|
-
answer: "
|
|
42
|
+
question: "Why does biological sex affect BAC calculations?",
|
|
43
|
+
answer: "Biological sex influences the Widmark factor 'r', which represents total body water as a fraction of weight. Men average r=0.68 because they have proportionally more body water. Women average r=0.55 due to a higher percentage of body fat, which retains less alcohol. This means that for the same drinks and body weight, women will reach a higher BAC.",
|
|
44
44
|
},
|
|
45
45
|
{
|
|
46
|
-
question: "
|
|
47
|
-
answer: "
|
|
46
|
+
question: "Can coffee, water or exercise speed up alcohol elimination?",
|
|
47
|
+
answer: "No. The liver eliminates alcohol at a constant rate of approximately 0.15 g/L per hour (zero-order kinetics). Coffee can mask tiredness, water helps with dehydration, and exercise improves general wellbeing — but none of them reduce your actual BAC. Only time eliminates alcohol from the blood.",
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
question: "Does eating after drinking help lower BAC?",
|
|
51
|
+
answer: "Eating after drinking does not reduce the alcohol already in your bloodstream. Where food makes a huge difference is before or during drinking: food in the stomach — especially proteins and fats — slows gastric absorption and can reduce your peak BAC by up to 50%. Once alcohol is absorbed, only hepatic metabolism can eliminate it.",
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
question: "How long does it take to reach 0.0 BAC?",
|
|
55
|
+
answer: "It depends on your starting BAC. Divide your estimated BAC (in g/L) by 0.15 to get the approximate hours. For example, a BAC of 1.5 g/L takes around 10 hours. The liver never stops: it processes alcohol even while you sleep. But be aware — alcohol can still be present in your blood even when you feel completely recovered.",
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
question: "Is this calculator 100% reliable for deciding whether to drive?",
|
|
59
|
+
answer: "No. This tool is a theoretical estimate based on Widmark's formula. Factors such as food intake, medications, fatigue, genetic ADH enzyme variants, and stress can shift your actual BAC by 20–30% in either direction. Never use this calculator to decide whether to drive. If you have been drinking, do not drive — that is the only rule with zero margin for error.",
|
|
48
60
|
},
|
|
49
61
|
];
|
|
50
62
|
|
|
51
63
|
const bibliography: AlcoholClearanceLocaleContent['bibliography'] = [
|
|
52
64
|
{
|
|
53
|
-
name: "
|
|
54
|
-
url: "https://
|
|
65
|
+
name: "Alcohol calculations and their uncertainty - PMC",
|
|
66
|
+
url: "https://pmc.ncbi.nlm.nih.gov/articles/PMC4361698/",
|
|
55
67
|
},
|
|
56
68
|
{
|
|
57
69
|
name: "Alcohol Metabolism: How the body processes alcohol - NIH",
|
|
@@ -2,8 +2,8 @@ import type { WithContext, SoftwareApplication } from 'schema-dts';
|
|
|
2
2
|
import type { AlcoholClearanceUI, AlcoholClearanceLocaleContent } from '../index';
|
|
3
3
|
|
|
4
4
|
const slug = 'calculadora-alcohol-resaca';
|
|
5
|
-
const title = 'Calculadora de
|
|
6
|
-
const description = '
|
|
5
|
+
const title = 'Calculadora de Resaca y Alcoholemia: Predictor de Recuperación';
|
|
6
|
+
const description = 'Calcula tu alcoholemia (BAC) y el tiempo hasta 0.0 según la fórmula de Widmark. Planifica tu hidratación pre-sueño y sabe cuándo estarás recuperado.';
|
|
7
7
|
|
|
8
8
|
const ui: AlcoholClearanceUI = {
|
|
9
9
|
biologicalSexLabel: 'Sexo Biológico',
|
|
@@ -35,17 +35,29 @@ const bibliographyTitle = 'Bibliografía y Fuentes';
|
|
|
35
35
|
|
|
36
36
|
const faq: AlcoholClearanceLocaleContent['faq'] = [
|
|
37
37
|
{
|
|
38
|
-
question: "¿Qué es
|
|
39
|
-
answer: "
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
question: "¿Se puede acelerar la eliminación con café?",
|
|
43
|
-
answer: "No. El hígado elimina el alcohol a una tasa constante (aprox. 0.15 g/L por hora). El café puede espabilarte, pero no reduce el alcohol en sangre.",
|
|
38
|
+
question: "¿Qué es una UBE y cuántas lleva cada bebida?",
|
|
39
|
+
answer: "Una UBE (Unidad de Bebida Estándar) equivale a 10 gramos de alcohol puro en España. Una caña (330ml al 5%) aporta ~1.3 UBE, una copa de vino (150ml al 12%) ~1.4 UBE y un chupito (40ml al 40%) ~1.3 UBE. Conocer las UBE de lo que bebes es clave para interpretar correctamente el resultado de la calculadora.",
|
|
44
40
|
},
|
|
45
41
|
{
|
|
46
42
|
question: "¿Por qué el sexo biológico afecta al cálculo de la alcoholemia?",
|
|
47
43
|
answer: "El sexo biológico influye en el factor de Widmark 'r', que representa el agua corporal total como fracción del peso. Los hombres tienen de media r=0.68 porque tienen proporcionalmente más agua corporal. Las mujeres tienen de media r=0.55 debido a un mayor porcentaje de grasa corporal, que retiene menos el alcohol. Esto significa que, con las mismas bebidas y peso, las mujeres tendrán una tasa de alcoholemia más alta.",
|
|
48
44
|
},
|
|
45
|
+
{
|
|
46
|
+
question: "¿Se puede acelerar la eliminación con café, agua o ejercicio?",
|
|
47
|
+
answer: "No. El hígado elimina el alcohol a una tasa constante de aproximadamente 0.15 g/L por hora (cinética de orden cero). El café puede disimular el cansancio, el agua ayuda con la deshidratación y el ejercicio mejora el bienestar general, pero ninguno reduce el BAC real. Solo el tiempo elimina el alcohol de la sangre.",
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
question: "¿Comer después de beber ayuda a bajar el BAC?",
|
|
51
|
+
answer: "Comer después de beber no reduce el alcohol que ya está en sangre. Donde sí marca una diferencia enorme es antes o durante: la comida en el estómago, especialmente proteínas y grasas, ralentiza la absorción gástrica y puede reducir el BAC máximo alcanzado hasta un 50%. Una vez el alcohol está absorbido, solo el metabolismo hepático puede eliminarlo.",
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
question: "¿Cuánto tiempo tardo en dar 0.0?",
|
|
55
|
+
answer: "Depende de tu BAC inicial. Dividiendo tu alcoholemia estimada (en g/L) entre 0.15 obtienes las horas aproximadas. Por ejemplo, un BAC de 1.5 g/L requiere unas 10 horas. El hígado no descansa: procesa alcohol incluso mientras duermes. Pero atención: todavía puede haber alcohol en sangre aunque te sientas completamente recuperado.",
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
question: "¿Es esta calculadora 100% fiable para decidir si puedo conducir?",
|
|
59
|
+
answer: "No. Esta herramienta es una estimación teórica basada en la fórmula de Widmark. Factores como la comida, medicamentos, fatiga, genética de la enzima ADH o el estrés pueden desviarte un 20-30% del valor calculado. Nunca uses esta calculadora para decidir si conduces. Si has bebido, no conduzcas — es la única regla sin margen de error.",
|
|
60
|
+
},
|
|
49
61
|
];
|
|
50
62
|
|
|
51
63
|
const howTo: AlcoholClearanceLocaleContent['howTo'] = [
|
|
@@ -65,8 +77,8 @@ const howTo: AlcoholClearanceLocaleContent['howTo'] = [
|
|
|
65
77
|
|
|
66
78
|
const bibliography: AlcoholClearanceLocaleContent['bibliography'] = [
|
|
67
79
|
{
|
|
68
|
-
name: "
|
|
69
|
-
url: "https://
|
|
80
|
+
name: "Alcohol calculations and their uncertainty - PMC",
|
|
81
|
+
url: "https://pmc.ncbi.nlm.nih.gov/articles/PMC4361698/",
|
|
70
82
|
},
|
|
71
83
|
{
|
|
72
84
|
name: "Alcohol Metabolism: How the body processes alcohol - NIH",
|
|
@@ -2,8 +2,8 @@ import type { WithContext, SoftwareApplication } from 'schema-dts';
|
|
|
2
2
|
import type { AlcoholClearanceUI, AlcoholClearanceLocaleContent } from '../index';
|
|
3
3
|
|
|
4
4
|
const slug = 'calculateur-elimination-alcohol';
|
|
5
|
-
const title = 'Calculateur
|
|
6
|
-
const description = '
|
|
5
|
+
const title = 'Calculateur de Gueule de Bois et Alcoolémie : Prédicteur de Récupération';
|
|
6
|
+
const description = 'Calculez votre alcoolémie (BAC) et le temps jusqu\'à 0,0 selon la formule de Widmark. Planifiez votre hydratation pré-sommeil et sachez quand vous serez complètement rétabli.';
|
|
7
7
|
|
|
8
8
|
const ui: AlcoholClearanceUI = {
|
|
9
9
|
biologicalSexLabel: 'Sexe Biologique',
|
|
@@ -35,23 +35,35 @@ const bibliographyTitle = 'Bibliographie & Sources';
|
|
|
35
35
|
|
|
36
36
|
const faq: AlcoholClearanceLocaleContent['faq'] = [
|
|
37
37
|
{
|
|
38
|
-
question: "Qu'est-ce
|
|
39
|
-
answer: "
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
question: "Le café peut-il accélérer l'élimination de l'alcool ?",
|
|
43
|
-
answer: "Non. Le foie élimine l'alcool à un taux constant (environ 0,15 g/L par heure). Le café peut vous réveiller, mais ne réduit pas le taux d'alcool dans le sang.",
|
|
38
|
+
question: "Qu'est-ce qu'une Unité Standard de Boisson et combien chaque verre en contient-il ?",
|
|
39
|
+
answer: "Une Unité Standard de Boisson contient environ 10 grammes d'alcool pur (définition européenne). Une bière ordinaire (330ml à 5%) représente ~1,3 unité, un verre de vin (150ml à 12%) ~1,4 unité et un shot (40ml à 40%) ~1,3 unité. Connaître les unités de ce que vous buvez est essentiel pour interpréter correctement les résultats du calculateur.",
|
|
44
40
|
},
|
|
45
41
|
{
|
|
46
42
|
question: "Pourquoi le sexe biologique affecte-t-il le calcul de l'alcoolémie ?",
|
|
47
43
|
answer: "Le sexe biologique influence le facteur de Widmark 'r', qui représente l'eau corporelle totale en fraction du poids. Les hommes ont en moyenne r=0,68 car ils ont proportionnellement plus d'eau corporelle. Les femmes ont en moyenne r=0,55 en raison d'un pourcentage plus élevé de graisses corporelles, qui retiennent moins l'alcool. Ainsi, à boissons et poids égaux, les femmes auront un BAC plus élevé.",
|
|
48
44
|
},
|
|
45
|
+
{
|
|
46
|
+
question: "Le café, l'eau ou le sport peuvent-ils accélérer l'élimination de l'alcool ?",
|
|
47
|
+
answer: "Non. Le foie élimine l'alcool à un taux constant d'environ 0,15 g/L par heure (cinétique d'ordre zéro). Le café peut masquer la fatigue, l'eau aide contre la déshydratation et le sport améliore le bien-être général — mais aucun ne réduit votre alcoolémie réelle. Seul le temps élimine l'alcool du sang.",
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
question: "Manger après avoir bu aide-t-il à faire baisser l'alcoolémie ?",
|
|
51
|
+
answer: "Manger après avoir bu ne réduit pas l'alcool déjà présent dans le sang. Là où la nourriture fait une énorme différence, c'est avant ou pendant la consommation : les aliments dans l'estomac — notamment les protéines et les graisses — ralentissent l'absorption gastrique et peuvent réduire le BAC maximum atteint jusqu'à 50 %. Une fois l'alcool absorbé, seul le métabolisme hépatique peut l'éliminer.",
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
question: "Combien de temps faut-il pour atteindre 0,0 ?",
|
|
55
|
+
answer: "Cela dépend de votre BAC initial. Divisez votre alcoolémie estimée (en g/L) par 0,15 pour obtenir le nombre d'heures approximatif. Par exemple, un BAC de 1,5 g/L nécessite environ 10 heures. Le foie ne s'arrête jamais : il traite l'alcool même pendant le sommeil. Attention : il peut encore y avoir de l'alcool dans le sang même si vous vous sentez complètement rétabli.",
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
question: "Ce calculateur est-il fiable à 100 % pour décider si je peux conduire ?",
|
|
59
|
+
answer: "Non. Cet outil est une estimation théorique basée sur la formule de Widmark. Des facteurs comme l'alimentation, les médicaments, la fatigue, les variants génétiques de l'enzyme ADH et le stress peuvent faire dévier votre alcoolémie réelle de 20 à 30 % dans les deux sens. N'utilisez jamais ce calculateur pour décider de conduire. Si vous avez bu, ne conduisez pas — c'est la seule règle sans marge d'erreur.",
|
|
60
|
+
},
|
|
49
61
|
];
|
|
50
62
|
|
|
51
63
|
const bibliography: AlcoholClearanceLocaleContent['bibliography'] = [
|
|
52
64
|
{
|
|
53
|
-
name: "
|
|
54
|
-
url: "https://
|
|
65
|
+
name: "Alcohol calculations and their uncertainty - PMC",
|
|
66
|
+
url: "https://pmc.ncbi.nlm.nih.gov/articles/PMC4361698/",
|
|
55
67
|
},
|
|
56
68
|
{
|
|
57
69
|
name: "Alcohol Metabolism: How the body processes alcohol - NIH",
|
|
@@ -72,12 +72,12 @@ const howTo: BeerCoolerLocaleContent['howTo'] = [
|
|
|
72
72
|
|
|
73
73
|
const bibliography: BeerCoolerLocaleContent['bibliography'] = [
|
|
74
74
|
{
|
|
75
|
-
name: "Newton's Law of Cooling -
|
|
76
|
-
url: "https://
|
|
75
|
+
name: "Newton's Law of Cooling - Wikipedia",
|
|
76
|
+
url: "https://en.wikipedia.org/wiki/Newton%27s_law_of_cooling",
|
|
77
77
|
},
|
|
78
78
|
{
|
|
79
|
-
name: "
|
|
80
|
-
url: "https://www.acs.org/
|
|
79
|
+
name: "Advanced Chemistry of Beer and Brewing - American Chemical Society",
|
|
80
|
+
url: "https://www.acs.org/acs-webinars/library/advanced-chemistry-of-beer-and-brewing.html",
|
|
81
81
|
},
|
|
82
82
|
];
|
|
83
83
|
|
|
@@ -72,12 +72,12 @@ const howTo: BeerCoolerLocaleContent['howTo'] = [
|
|
|
72
72
|
|
|
73
73
|
const bibliography: BeerCoolerLocaleContent['bibliography'] = [
|
|
74
74
|
{
|
|
75
|
-
name: "
|
|
76
|
-
url: "https://
|
|
75
|
+
name: "Ley del enfriamiento de Newton - Wikipedia",
|
|
76
|
+
url: "https://en.wikipedia.org/wiki/Newton%27s_law_of_cooling",
|
|
77
77
|
},
|
|
78
78
|
{
|
|
79
|
-
name: "
|
|
80
|
-
url: "https://www.acs.org/
|
|
79
|
+
name: "Advanced Chemistry of Beer and Brewing - American Chemical Society",
|
|
80
|
+
url: "https://www.acs.org/acs-webinars/library/advanced-chemistry-of-beer-and-brewing.html",
|
|
81
81
|
},
|
|
82
82
|
];
|
|
83
83
|
|
|
@@ -72,12 +72,12 @@ const howTo: BeerCoolerLocaleContent['howTo'] = [
|
|
|
72
72
|
|
|
73
73
|
const bibliography: BeerCoolerLocaleContent['bibliography'] = [
|
|
74
74
|
{
|
|
75
|
-
name: "
|
|
76
|
-
url: "https://
|
|
75
|
+
name: "Loi du refroidissement de Newton - Wikipedia",
|
|
76
|
+
url: "https://en.wikipedia.org/wiki/Newton%27s_law_of_cooling",
|
|
77
77
|
},
|
|
78
78
|
{
|
|
79
|
-
name: "
|
|
80
|
-
url: "https://www.acs.org/
|
|
79
|
+
name: "Advanced Chemistry of Beer and Brewing - American Chemical Society",
|
|
80
|
+
url: "https://www.acs.org/acs-webinars/library/advanced-chemistry-of-beer-and-brewing.html",
|
|
81
81
|
},
|
|
82
82
|
];
|
|
83
83
|
|
|
@@ -3,7 +3,7 @@ import type { CarbonationUI, CarbonationLocaleContent } from '../index';
|
|
|
3
3
|
|
|
4
4
|
const slug = 'beer-carbonation-calculator';
|
|
5
5
|
const title = 'Beer Carbonation & Priming Calculator';
|
|
6
|
-
const description = 'Calculate the exact
|
|
6
|
+
const description = 'Calculate the exact grams of Dextrose, Table Sugar or DME (Dry Malt Extract) for bottling your homebrew. Enter your volume, fermentation temperature and style for a perfect priming.';
|
|
7
7
|
|
|
8
8
|
const ui: CarbonationUI = {
|
|
9
9
|
parametersTitle: 'Parameters',
|
|
@@ -34,7 +34,7 @@ const bibliographyTitle = 'Bibliography & Sources';
|
|
|
34
34
|
const faq: CarbonationLocaleContent['faq'] = [
|
|
35
35
|
{
|
|
36
36
|
question: "Why does temperature matter for carbonation?",
|
|
37
|
-
answer: "The residual CO2 in your beer depends on the highest temperature reached after fermentation
|
|
37
|
+
answer: "The residual CO2 in your beer depends on the highest temperature reached after fermentation: cold liquid holds more dissolved gas than warm liquid. If you enter a temperature lower than the actual one, the calculator assumes more residual CO2 than is really there and gives you less sugar than needed. Enter it too high and the opposite happens — you add more sugar than necessary and push your batch into bottle bomb territory, where excess pressure causes bottles to rupture or caps to blow off violently.",
|
|
38
38
|
},
|
|
39
39
|
{
|
|
40
40
|
question: "What sugar is best for priming?",
|
|
@@ -44,6 +44,10 @@ const faq: CarbonationLocaleContent['faq'] = [
|
|
|
44
44
|
question: "What happens if I add too much priming sugar?",
|
|
45
45
|
answer: "Over-priming generates excess CO2 pressure inside the bottle. Standard glass bottles fail at approximately 3.5-4.0 volumes of CO2. Beyond this point, the bottle can rupture or the cap can blow off violently. This is why precision matters — even 5 extra grams per liter can push a batch into the danger zone.",
|
|
46
46
|
},
|
|
47
|
+
{
|
|
48
|
+
question: "How long does beer take to carbonate after bottling?",
|
|
49
|
+
answer: "Between 2 and 3 weeks at room temperature (18-22°C) is the typical range for yeast to fully ferment the added sugar and for CO2 to integrate into the liquid. Opening a bottle before the process is complete always gives a misleading result: the beer will seem under-carbonated even though carbonation is still developing. With DME the process can be slightly slower due to the complexity of its fermentable sugars.",
|
|
50
|
+
},
|
|
47
51
|
];
|
|
48
52
|
|
|
49
53
|
const howTo: CarbonationLocaleContent['howTo'] = [
|
|
@@ -64,11 +68,11 @@ const howTo: CarbonationLocaleContent['howTo'] = [
|
|
|
64
68
|
const bibliography: CarbonationLocaleContent['bibliography'] = [
|
|
65
69
|
{
|
|
66
70
|
name: "How to Brew: Carbonation Tables - John Palmer",
|
|
67
|
-
url: "
|
|
71
|
+
url: "https://howtobrew.com/section-1/chapter-11/",
|
|
68
72
|
},
|
|
69
73
|
{
|
|
70
74
|
name: "BJCP Style Guidelines: Carbonation Levels",
|
|
71
|
-
url: "https://www.bjcp.org/
|
|
75
|
+
url: "https://www.bjcp.org/style/2021/beer/",
|
|
72
76
|
},
|
|
73
77
|
];
|
|
74
78
|
|
|
@@ -3,7 +3,7 @@ import type { CarbonationUI, CarbonationLocaleContent } from '../index';
|
|
|
3
3
|
|
|
4
4
|
const slug = 'calculadora-carbonatacion';
|
|
5
5
|
const title = 'Calculadora de Carbonatación y Priming';
|
|
6
|
-
const description = 'Calcula
|
|
6
|
+
const description = 'Calcula los gramos exactos de Dextrosa, Azúcar de Mesa o DME (Extracto de Malta Seco) para embotellar tu cerveza casera. Introduce el volumen, la temperatura de fermentación y el estilo para un priming perfecto.';
|
|
7
7
|
|
|
8
8
|
const ui: CarbonationUI = {
|
|
9
9
|
parametersTitle: 'Parámetros',
|
|
@@ -34,7 +34,7 @@ const bibliographyTitle = 'Bibliografía y Fuentes';
|
|
|
34
34
|
const faq: CarbonationLocaleContent['faq'] = [
|
|
35
35
|
{
|
|
36
36
|
question: "¿Por qué influye la temperatura en el cálculo?",
|
|
37
|
-
answer: "El CO2 residual que ya tiene tu cerveza depende de la temperatura máxima alcanzada tras la fermentación
|
|
37
|
+
answer: "El CO2 residual que ya tiene tu cerveza depende de la temperatura máxima alcanzada tras la fermentación: el líquido frío retiene más gas disuelto que el caliente. Si introduces una temperatura más baja de la real, la calculadora asumirá más residual del que hay y te dará menos azúcar del necesario. Si la introduces más alta, ocurre lo contrario: añadirás más azúcar de la cuenta y entrarás en la zona de peligro de las bombas de botella — botellas que explotan por exceso de presión.",
|
|
38
38
|
},
|
|
39
39
|
{
|
|
40
40
|
question: "¿Qué azúcar es mejor para el priming?",
|
|
@@ -44,6 +44,10 @@ const faq: CarbonationLocaleContent['faq'] = [
|
|
|
44
44
|
question: "¿Qué pasa si añado demasiado azúcar de priming?",
|
|
45
45
|
answer: "Un exceso de azúcar genera una presión de CO2 excesiva dentro de la botella. Las botellas de vidrio estándar fallan a partir de 3.5-4.0 volúmenes de CO2. Por encima de este punto, la botella puede romperse violentamente o el tapón puede saltar disparado. Por eso la precisión es crítica — incluso 5 gramos extra por litro pueden llevar un lote a la zona de peligro.",
|
|
46
46
|
},
|
|
47
|
+
{
|
|
48
|
+
question: "¿Cuánto tiempo tarda la cerveza en carbonatarse tras el embotellado?",
|
|
49
|
+
answer: "Entre 2 y 3 semanas a temperatura ambiente (18-22°C) es el rango habitual para que la levadura fermente completamente el azúcar añadido y el CO2 se integre en el líquido. Abrir una botella antes de que el proceso termine da siempre una lectura engañosa: la cerveza parecerá poco carbonatada aunque el proceso siga en marcha. Con el DME el proceso puede ser ligeramente más lento por la complejidad de sus azúcares fermentables.",
|
|
50
|
+
},
|
|
47
51
|
];
|
|
48
52
|
|
|
49
53
|
const howTo: CarbonationLocaleContent['howTo'] = [
|
|
@@ -64,11 +68,11 @@ const howTo: CarbonationLocaleContent['howTo'] = [
|
|
|
64
68
|
const bibliography: CarbonationLocaleContent['bibliography'] = [
|
|
65
69
|
{
|
|
66
70
|
name: "How to Brew: Carbonation Tables - John Palmer",
|
|
67
|
-
url: "
|
|
71
|
+
url: "https://howtobrew.com/section-1/chapter-11/",
|
|
68
72
|
},
|
|
69
73
|
{
|
|
70
74
|
name: "BJCP Style Guidelines: Carbonation Levels",
|
|
71
|
-
url: "https://www.bjcp.org/
|
|
75
|
+
url: "https://www.bjcp.org/style/2021/beer/",
|
|
72
76
|
},
|
|
73
77
|
];
|
|
74
78
|
|
|
@@ -3,7 +3,7 @@ import type { CarbonationUI, CarbonationLocaleContent } from '../index';
|
|
|
3
3
|
|
|
4
4
|
const slug = 'calculateur-carbonatation-biere';
|
|
5
5
|
const title = 'Calculateur de Carbonatation et Priming';
|
|
6
|
-
const description = 'Calculez
|
|
6
|
+
const description = 'Calculez les grammes exacts de Dextrose, Sucre de Table ou DME (Extrait de Malt Sec) pour embouteiller votre bière artisanale. Entrez le volume, la température de fermentation et le style pour un priming parfait.';
|
|
7
7
|
|
|
8
8
|
const ui: CarbonationUI = {
|
|
9
9
|
parametersTitle: 'Paramètres',
|
|
@@ -34,7 +34,7 @@ const bibliographyTitle = 'Bibliographie & Sources';
|
|
|
34
34
|
const faq: CarbonationLocaleContent['faq'] = [
|
|
35
35
|
{
|
|
36
36
|
question: "Pourquoi la température influence-t-elle le calcul ?",
|
|
37
|
-
answer: "Le CO2 résiduel
|
|
37
|
+
answer: "Le CO2 résiduel dans votre bière dépend de la température maximale atteinte après la fermentation : un liquide froid retient plus de gaz dissous qu'un liquide chaud. Si vous entrez une température inférieure à la réalité, le calculateur suppose plus de CO2 résiduel qu'il n'en existe et vous donne moins de sucre que nécessaire. À l'inverse, une température trop haute vous pousse à ajouter trop de sucre et fait basculer votre lot dans la zone de danger des bombes de bouteilles — des bouteilles qui explosent sous l'excès de pression.",
|
|
38
38
|
},
|
|
39
39
|
{
|
|
40
40
|
question: "Quel sucre est le meilleur pour le priming ?",
|
|
@@ -44,6 +44,10 @@ const faq: CarbonationLocaleContent['faq'] = [
|
|
|
44
44
|
question: "Que se passe-t-il si j'ajoute trop de sucre de priming ?",
|
|
45
45
|
answer: "Un excès de sucre génère une pression de CO2 excessive à l'intérieur de la bouteille. Les bouteilles en verre standard cèdent à environ 3,5-4,0 volumes de CO2. Au-delà, la bouteille peut se rompre violemment ou le bouchon peut sauter. C'est pourquoi la précision est essentielle — même 5 grammes de plus par litre peuvent faire basculer un lot dans la zone de danger.",
|
|
46
46
|
},
|
|
47
|
+
{
|
|
48
|
+
question: "Combien de temps faut-il pour que la bière se carbonate après la mise en bouteille ?",
|
|
49
|
+
answer: "Entre 2 et 3 semaines à température ambiante (18-22°C) est la plage habituelle pour que la levure fermente complètement le sucre ajouté et que le CO2 s'intègre au liquide. Ouvrir une bouteille avant la fin du processus donne toujours un résultat trompeur : la bière semblera peu carbonatée alors que la carbonatation est toujours en cours. Avec le DME, le processus peut être légèrement plus lent en raison de la complexité de ses sucres fermentescibles.",
|
|
50
|
+
},
|
|
47
51
|
];
|
|
48
52
|
|
|
49
53
|
const howTo: CarbonationLocaleContent['howTo'] = [
|
|
@@ -64,11 +68,11 @@ const howTo: CarbonationLocaleContent['howTo'] = [
|
|
|
64
68
|
const bibliography: CarbonationLocaleContent['bibliography'] = [
|
|
65
69
|
{
|
|
66
70
|
name: "How to Brew: Carbonation Tables - John Palmer",
|
|
67
|
-
url: "
|
|
71
|
+
url: "https://howtobrew.com/section-1/chapter-11/",
|
|
68
72
|
},
|
|
69
73
|
{
|
|
70
74
|
name: "BJCP Style Guidelines: Carbonation Levels",
|
|
71
|
-
url: "https://www.bjcp.org/
|
|
75
|
+
url: "https://www.bjcp.org/style/2021/beer/",
|
|
72
76
|
},
|
|
73
77
|
];
|
|
74
78
|
|
|
@@ -88,11 +88,11 @@ const howTo: CocktailBalancerLocaleContent['howTo'] = [
|
|
|
88
88
|
const bibliography: CocktailBalancerLocaleContent['bibliography'] = [
|
|
89
89
|
{
|
|
90
90
|
name: "Liquid Intelligence: The Art and Science of the Perfect Cocktail",
|
|
91
|
-
url: "
|
|
91
|
+
url: "https://www.indigo.ca/en-ca/liquid-intelligence-the-art-and-science-of-the-perfect-cocktail/9780393089035.html",
|
|
92
92
|
},
|
|
93
93
|
{
|
|
94
|
-
name: "The
|
|
95
|
-
url: "https://
|
|
94
|
+
name: "Cocktails: The Science of Shaking",
|
|
95
|
+
url: "https://cookingissues.com/2009/07/22/cocktails-the-science-of-shaking/",
|
|
96
96
|
},
|
|
97
97
|
{
|
|
98
98
|
name: "Cocktail Balance - Difford's Guide",
|
|
@@ -88,11 +88,11 @@ const howTo: CocktailBalancerLocaleContent['howTo'] = [
|
|
|
88
88
|
const bibliography: CocktailBalancerLocaleContent['bibliography'] = [
|
|
89
89
|
{
|
|
90
90
|
name: "Liquid Intelligence: The Art and Science of the Perfect Cocktail",
|
|
91
|
-
url: "
|
|
91
|
+
url: "https://www.indigo.ca/en-ca/liquid-intelligence-the-art-and-science-of-the-perfect-cocktail/9780393089035.html",
|
|
92
92
|
},
|
|
93
93
|
{
|
|
94
|
-
name: "The
|
|
95
|
-
url: "https://
|
|
94
|
+
name: "Cocktails: The Science of Shaking",
|
|
95
|
+
url: "https://cookingissues.com/2009/07/22/cocktails-the-science-of-shaking/",
|
|
96
96
|
},
|
|
97
97
|
{
|
|
98
98
|
name: "Cocktail Balance - Difford's Guide",
|
|
@@ -88,11 +88,11 @@ const howTo: CocktailBalancerLocaleContent['howTo'] = [
|
|
|
88
88
|
const bibliography: CocktailBalancerLocaleContent['bibliography'] = [
|
|
89
89
|
{
|
|
90
90
|
name: "Liquid Intelligence: The Art and Science of the Perfect Cocktail",
|
|
91
|
-
url: "
|
|
91
|
+
url: "https://www.indigo.ca/en-ca/liquid-intelligence-the-art-and-science-of-the-perfect-cocktail/9780393089035.html",
|
|
92
92
|
},
|
|
93
93
|
{
|
|
94
|
-
name: "The
|
|
95
|
-
url: "https://
|
|
94
|
+
name: "Cocktails: The Science of Shaking",
|
|
95
|
+
url: "https://cookingissues.com/2009/07/22/cocktails-the-science-of-shaking/",
|
|
96
96
|
},
|
|
97
97
|
{
|
|
98
98
|
name: "Cocktail Balance - Difford's Guide",
|
|
@@ -2,8 +2,8 @@ import type { WithContext, SoftwareApplication } from 'schema-dts';
|
|
|
2
2
|
import type { PartyKegUI, PartyKegLocaleContent } from '../index';
|
|
3
3
|
|
|
4
4
|
const slug = 'party-stock-calculator';
|
|
5
|
-
const title = 'Party Beer &
|
|
6
|
-
const description = '
|
|
5
|
+
const title = 'Party Beer Calculator: Amount Per Person for Weddings & Birthdays';
|
|
6
|
+
const description = 'Free tool to calculate how much beer and ice you need based on guests, duration and temperature. Perfect for weddings, birthdays and outdoor events.';
|
|
7
7
|
|
|
8
8
|
const ui: PartyKegUI = {
|
|
9
9
|
calcStockTitle: 'Stock Calculator',
|
|
@@ -36,12 +36,16 @@ const faq: PartyKegLocaleContent['faq'] = [
|
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
38
|
question: "How much ice do I need for 100 beers?",
|
|
39
|
-
answer: "You will need approximately 15-20 kilos of ice (7-10 bags). The
|
|
39
|
+
answer: "You will need approximately 15-20 kilos of ice (7-10 bags). The practical rule is 0.75kg of ice per liter of drink under normal conditions. In summer or outdoors above 25°C, raise that to 1kg per liter: ambient heat accelerates melting and you will run out much sooner than expected.",
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
42
|
question: "What is the difference between a standard keg and a party keg?",
|
|
43
43
|
answer: "A standard commercial keg holds 50 liters, which yields approximately 200 servings (250ml each). A party keg (mini-keg) typically holds 5 liters — about 20 servings. Knowing these sizes helps you translate the calculator's liter output into the number of containers to purchase.",
|
|
44
44
|
},
|
|
45
|
+
{
|
|
46
|
+
question: "Why do I need so much ice if the beers are already cold?",
|
|
47
|
+
answer: "Because cooling and maintaining are two separate processes. Bringing a can from 25°C to 4°C consumes the latent heat of fusion of the ice: around 334 kJ/kg. Once cold, ice keeps working to offset ambient heat. On a summer day at 35°C, heat transfer into the cooler can melt 1kg of ice per liter of drink every 2-3 hours. That is why pre-chilling your drinks before the party cuts your total ice consumption in half.",
|
|
48
|
+
},
|
|
45
49
|
];
|
|
46
50
|
|
|
47
51
|
const howTo: PartyKegLocaleContent['howTo'] = [
|
|
@@ -62,11 +66,11 @@ const howTo: PartyKegLocaleContent['howTo'] = [
|
|
|
62
66
|
const bibliography: PartyKegLocaleContent['bibliography'] = [
|
|
63
67
|
{
|
|
64
68
|
name: "Event Planning: Alcohol & Bar Calculations - Spruce Eats",
|
|
65
|
-
url: "https://www.thespruceeats.com/
|
|
69
|
+
url: "https://www.thespruceeats.com/stock-your-bar-for-a-party-760394",
|
|
66
70
|
},
|
|
67
71
|
{
|
|
68
72
|
name: "Thermodynamics of Ice Melting - Engineering Toolbox",
|
|
69
|
-
url: "https://www.engineeringtoolbox.com/ice-
|
|
73
|
+
url: "https://www.engineeringtoolbox.com/saturated-ice-steam-d_970.html",
|
|
70
74
|
},
|
|
71
75
|
];
|
|
72
76
|
|
|
@@ -2,8 +2,8 @@ import type { WithContext, SoftwareApplication } from 'schema-dts';
|
|
|
2
2
|
import type { PartyKegUI, PartyKegLocaleContent } from '../index';
|
|
3
3
|
|
|
4
4
|
const slug = 'calculadora-barriles-fiesta';
|
|
5
|
-
const title = 'Calculadora de Cerveza
|
|
6
|
-
const description = '
|
|
5
|
+
const title = 'Calculadora de Cerveza para Fiestas: Cantidad por Persona, Boda o Cumpleaños';
|
|
6
|
+
const description = 'Herramienta gratuita para calcular cuánta cerveza y hielo necesitas según los invitados, la duración y la temperatura. Perfecta para bodas, cumpleaños y eventos al aire libre.';
|
|
7
7
|
|
|
8
8
|
const ui: PartyKegUI = {
|
|
9
9
|
calcStockTitle: 'Calculadora de Stock',
|
|
@@ -36,12 +36,16 @@ const faq: PartyKegLocaleContent['faq'] = [
|
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
38
|
question: "¿Cuánto hielo necesito para 100 cervezas?",
|
|
39
|
-
answer: "Necesitarás aproximadamente 15-20 kilos de hielo (7-10 bolsas). La regla
|
|
39
|
+
answer: "Necesitarás aproximadamente 15-20 kilos de hielo (7-10 bolsas). La regla práctica es 0.75kg de hielo por cada litro de bebida en condiciones normales. En verano o en exteriores con más de 25°C, sube a 1kg por litro: el calor ambiental acelera la fusión y te quedas sin hielo mucho antes de lo esperado.",
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
42
|
question: "¿Cuál es la diferencia entre un barril estándar y un barril de fiesta?",
|
|
43
43
|
answer: "Un barril comercial estándar contiene 50 litros, lo que equivale a unas 200 raciones de 250ml. Un barril de fiesta (mini-barril) suele contener 5 litros — unas 20 raciones. Conocer estos volúmenes te ayuda a convertir la salida en litros de la calculadora al número de envases que debes comprar.",
|
|
44
44
|
},
|
|
45
|
+
{
|
|
46
|
+
question: "¿Por qué necesito tanto hielo si las cervezas ya están frías?",
|
|
47
|
+
answer: "Porque enfriar y mantener son dos procesos distintos. Llevar una lata de 25°C a 4°C consume el calor latente de fusión del hielo: unos 334 kJ/kg. Una vez fría, el hielo sigue trabajando para compensar el calor del ambiente. En un día de verano a 35°C, la transferencia de calor al recipiente puede fundir 1kg de hielo por litro de bebida cada 2-3 horas. Por eso pre-enfriar las bebidas antes de la fiesta reduce el consumo de hielo a la mitad.",
|
|
48
|
+
},
|
|
45
49
|
];
|
|
46
50
|
|
|
47
51
|
const howTo: PartyKegLocaleContent['howTo'] = [
|
|
@@ -62,11 +66,11 @@ const howTo: PartyKegLocaleContent['howTo'] = [
|
|
|
62
66
|
const bibliography: PartyKegLocaleContent['bibliography'] = [
|
|
63
67
|
{
|
|
64
68
|
name: "Event Planning: Alcohol & Bar Calculations - Spruce Eats",
|
|
65
|
-
url: "https://www.thespruceeats.com/
|
|
69
|
+
url: "https://www.thespruceeats.com/stock-your-bar-for-a-party-760394",
|
|
66
70
|
},
|
|
67
71
|
{
|
|
68
72
|
name: "Thermodynamics of Ice Melting - Engineering Toolbox",
|
|
69
|
-
url: "https://www.engineeringtoolbox.com/ice-
|
|
73
|
+
url: "https://www.engineeringtoolbox.com/saturated-ice-steam-d_970.html",
|
|
70
74
|
},
|
|
71
75
|
];
|
|
72
76
|
|
|
@@ -2,8 +2,8 @@ import type { WithContext, SoftwareApplication } from 'schema-dts';
|
|
|
2
2
|
import type { PartyKegUI, PartyKegLocaleContent } from '../index';
|
|
3
3
|
|
|
4
4
|
const slug = 'calculateur-fete-fût';
|
|
5
|
-
const title = 'Calculateur de Bière
|
|
6
|
-
const description = '
|
|
5
|
+
const title = 'Calculateur de Bière pour Fêtes : Quantité par Personne, Mariage ou Anniversaire';
|
|
6
|
+
const description = 'Outil gratuit pour calculer la quantité de bière et de glace selon les invités, la durée et la température. Idéal pour les mariages, anniversaires et événements en plein air.';
|
|
7
7
|
|
|
8
8
|
const ui: PartyKegUI = {
|
|
9
9
|
calcStockTitle: 'Calculateur de Stock',
|
|
@@ -35,13 +35,17 @@ const faq: PartyKegLocaleContent['faq'] = [
|
|
|
35
35
|
answer: "En moyenne, on compte 1 à 1,5 bière par heure par personne pour une fête standard. Pour un événement plus intense comme un Beer Pong, cela peut monter à 2 ou plus.",
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
|
-
question: "
|
|
39
|
-
answer: "
|
|
38
|
+
question: "Combien de glace faut-il pour 100 bières ?",
|
|
39
|
+
answer: "Il vous faudra environ 15 à 20 kilos de glace (7 à 10 sacs). La règle pratique est de 0,75 kg de glace par litre de boisson dans des conditions normales. En été ou en extérieur à plus de 25°C, montez à 1 kg par litre : la chaleur ambiante accélère la fonte et vous manquerez de glace bien plus tôt que prévu.",
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
42
|
question: "Quelle est la différence entre un fût standard et un mini-fût ?",
|
|
43
43
|
answer: "Un fût commercial standard contient 50 litres, soit environ 200 portions de 250ml. Un mini-fût de fête contient généralement 5 litres — environ 20 portions. Connaître ces volumes vous aide à convertir la sortie en litres du calculateur en nombre de contenants à acheter.",
|
|
44
44
|
},
|
|
45
|
+
{
|
|
46
|
+
question: "Pourquoi ai-je besoin d'autant de glace si les bières sont déjà froides ?",
|
|
47
|
+
answer: "Parce que refroidir et maintenir sont deux processus distincts. Amener une canette de 25°C à 4°C consomme la chaleur latente de fusion de la glace : environ 334 kJ/kg. Une fois froide, la glace continue de travailler pour compenser la chaleur ambiante. Par une journée d'été à 35°C, les transferts thermiques peuvent faire fondre 1 kg de glace par litre de boisson toutes les 2 à 3 heures. C'est pourquoi pré-refroidir les boissons avant la fête réduit la consommation de glace de moitié.",
|
|
48
|
+
},
|
|
45
49
|
];
|
|
46
50
|
|
|
47
51
|
const howTo: PartyKegLocaleContent['howTo'] = [
|
|
@@ -61,12 +65,12 @@ const howTo: PartyKegLocaleContent['howTo'] = [
|
|
|
61
65
|
|
|
62
66
|
const bibliography: PartyKegLocaleContent['bibliography'] = [
|
|
63
67
|
{
|
|
64
|
-
name: "Event Planning:
|
|
65
|
-
url: "https://www.thespruceeats.com/
|
|
68
|
+
name: "Event Planning: Alcohol & Bar Calculations - Spruce Eats",
|
|
69
|
+
url: "https://www.thespruceeats.com/stock-your-bar-for-a-party-760394",
|
|
66
70
|
},
|
|
67
71
|
{
|
|
68
|
-
name: "Ice
|
|
69
|
-
url: "https://www.engineeringtoolbox.com/ice-
|
|
72
|
+
name: "Thermodynamics of Ice Melting - Engineering Toolbox",
|
|
73
|
+
url: "https://www.engineeringtoolbox.com/saturated-ice-steam-d_970.html",
|
|
70
74
|
},
|
|
71
75
|
];
|
|
72
76
|
|
package/src/types.ts
CHANGED
|
@@ -66,7 +66,7 @@ export interface AlcoholCategoryEntry {
|
|
|
66
66
|
export interface ToolDefinition {
|
|
67
67
|
entry: AlcoholToolEntry<Record<string, string>>;
|
|
68
68
|
Component: unknown;
|
|
69
|
-
SEOComponent
|
|
70
|
-
BibliographyComponent
|
|
69
|
+
SEOComponent: unknown;
|
|
70
|
+
BibliographyComponent: unknown;
|
|
71
71
|
}
|
|
72
72
|
|