@gram-lang/i18n 1.0.0 → 1.1.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/dist/index.d.ts CHANGED
@@ -105,6 +105,26 @@ declare const en: {
105
105
  estimatedSuffix: string;
106
106
  missingMass: string;
107
107
  someIngredients: string;
108
+ nutritionWholeRecipe: string;
109
+ nutritionPerPortion: string;
110
+ nutritionPer100g: string;
111
+ nutritionRawMassNote: string;
112
+ nutritionRawMassNotePartial: string;
113
+ incompleteData: string;
114
+ ofWhich: string;
115
+ nutrients: {
116
+ calories: string;
117
+ fat: string;
118
+ sat_fat: string;
119
+ mono_fat: string;
120
+ poly_fat: string;
121
+ carbs: string;
122
+ sugar: string;
123
+ fiber: string;
124
+ protein: string;
125
+ sodium: string;
126
+ alcohol: string;
127
+ };
108
128
  };
109
129
  playground: {
110
130
  title: string;
package/dist/index.js CHANGED
@@ -316,7 +316,39 @@ var en3 = {
316
316
  intermediateResult: "Intermediate result for this section",
317
317
  estimatedSuffix: " (Estimated)",
318
318
  missingMass: " (Missing: ",
319
- someIngredients: "some ingredients"
319
+ someIngredients: "some ingredients",
320
+ // Nutrition bases. Which one is shown is the renderer's
321
+ // `nutritionBasis` option; the analyzer computes all three.
322
+ nutritionWholeRecipe: "Whole recipe",
323
+ nutritionPerPortion: "Per portion",
324
+ nutritionPer100g: "Per 100 g",
325
+ // Gram models no cooking loss, so a per-100 g figure is per 100 g of
326
+ // the raw assembled mixture — said plainly rather than left implied.
327
+ // The partial variant is used as soon as some ingredient lacks
328
+ // nutrition data, because the mass then covers only what was counted
329
+ // and not the whole recipe; hedging that way when everything *is*
330
+ // covered would only weaken the message.
331
+ nutritionRawMassNote: "Based on {mass} of ingredients, before cooking",
332
+ nutritionRawMassNotePartial: "Based on the {mass} with nutrition data, before cooking",
333
+ incompleteData: "Incomplete data",
334
+ // One entry per key in @gram-lang/analyzer's NUTRIENTS table; the
335
+ // renderer test asserts the two stay in step. A sub-macro's label is
336
+ // prefixed with `ofWhich` at display time rather than baked in here,
337
+ // so the same string works standalone and nested.
338
+ ofWhich: "of which",
339
+ nutrients: {
340
+ calories: "Calories",
341
+ fat: "Fat",
342
+ sat_fat: "saturates",
343
+ mono_fat: "mono-unsaturates",
344
+ poly_fat: "poly-unsaturates",
345
+ carbs: "Carbohydrates",
346
+ sugar: "sugars",
347
+ fiber: "Fiber",
348
+ protein: "Protein",
349
+ sodium: "Sodium",
350
+ alcohol: "Alcohol"
351
+ }
320
352
  },
321
353
  playground: {
322
354
  title: "Gram Playground",
@@ -446,7 +478,27 @@ var fr3 = {
446
478
  intermediateResult: "R\xE9sultat interm\xE9diaire pour cette section",
447
479
  estimatedSuffix: " (Estim\xE9)",
448
480
  missingMass: " (Manquant : ",
449
- someIngredients: "certains ingr\xE9dients"
481
+ someIngredients: "certains ingr\xE9dients",
482
+ nutritionWholeRecipe: "Recette enti\xE8re",
483
+ nutritionPerPortion: "Par portion",
484
+ nutritionPer100g: "Pour 100 g",
485
+ nutritionRawMassNote: "Sur {mass} d'ingr\xE9dients, avant cuisson",
486
+ nutritionRawMassNotePartial: "Sur les {mass} renseign\xE9s, avant cuisson",
487
+ incompleteData: "Donn\xE9es incompl\xE8tes",
488
+ ofWhich: "dont",
489
+ nutrients: {
490
+ calories: "Calories",
491
+ fat: "Mati\xE8res grasses",
492
+ sat_fat: "acides gras satur\xE9s",
493
+ mono_fat: "acides gras mono-insatur\xE9s",
494
+ poly_fat: "acides gras polyinsatur\xE9s",
495
+ carbs: "Glucides",
496
+ sugar: "sucres",
497
+ fiber: "Fibres",
498
+ protein: "Prot\xE9ines",
499
+ sodium: "Sodium",
500
+ alcohol: "Alcool"
501
+ }
450
502
  },
451
503
  playground: {
452
504
  title: "Playground Gram",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gram-lang/i18n",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "description": "Gram recipe i18n and unit normalization logic",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",