@gram-lang/i18n 1.3.0 → 1.4.1
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/README.md +19 -1
- package/dist/index.d.ts +328 -4
- package/dist/index.js +684 -25
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -203,6 +203,115 @@ function isCoarseUnit(rawUnit) {
|
|
|
203
203
|
}
|
|
204
204
|
return false;
|
|
205
205
|
}
|
|
206
|
+
var METRIC_LADDER = {
|
|
207
|
+
mass: { units: ["mg", "g", "kg"], large: "kg" },
|
|
208
|
+
volume: { units: ["ml", "cl", "dl", "l"], large: "l" }
|
|
209
|
+
};
|
|
210
|
+
function isMetricMassUnit(rawUnit, lang) {
|
|
211
|
+
return METRIC_LADDER.mass.units.includes(
|
|
212
|
+
normalizeUnit(rawUnit, lang)
|
|
213
|
+
);
|
|
214
|
+
}
|
|
215
|
+
function toLargerMetricUnit(value, rawUnit, lang) {
|
|
216
|
+
const unit = rawUnit ?? "";
|
|
217
|
+
const canonical = normalizeUnit(unit, lang);
|
|
218
|
+
for (const [category, ladder] of Object.entries(METRIC_LADDER)) {
|
|
219
|
+
if (canonical === ladder.large) break;
|
|
220
|
+
if (!ladder.units.includes(canonical)) continue;
|
|
221
|
+
const factor = UNIT_CONVERSIONS[category].map[canonical] ?? 1;
|
|
222
|
+
const base = value * factor;
|
|
223
|
+
if (base < 1e3) break;
|
|
224
|
+
return { value: Math.round(base / 10) / 100, unit: ladder.large };
|
|
225
|
+
}
|
|
226
|
+
return { value, unit };
|
|
227
|
+
}
|
|
228
|
+
function isMeasureUnit(rawUnit, lang) {
|
|
229
|
+
const canonical = normalizeUnit(rawUnit, lang);
|
|
230
|
+
return UNIT_CONVERSIONS.mass.map[canonical] !== void 0 || UNIT_CONVERSIONS.volume.map[canonical] !== void 0;
|
|
231
|
+
}
|
|
232
|
+
function unitContainsQuantity(rawUnit, lang) {
|
|
233
|
+
const words = (rawUnit ?? "").trim().split(/\s+/);
|
|
234
|
+
return words.some((word, i) => {
|
|
235
|
+
const number = word.match(/^\d+(?:[.,/]\d+)?(.*)$/);
|
|
236
|
+
if (!number) return false;
|
|
237
|
+
const next = number[1] || words[i + 1];
|
|
238
|
+
return !!next && isMeasureUnit(next, lang);
|
|
239
|
+
});
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
// src/numbers.ts
|
|
243
|
+
var formatters = /* @__PURE__ */ new Map();
|
|
244
|
+
function formatter(lang, maxDecimals) {
|
|
245
|
+
const key = `${lang ?? "en"}|${maxDecimals}`;
|
|
246
|
+
let format = formatters.get(key);
|
|
247
|
+
if (!format) {
|
|
248
|
+
const options = {
|
|
249
|
+
maximumFractionDigits: maxDecimals,
|
|
250
|
+
// "1500 g", as a recipe writes it: no thousands separator, which
|
|
251
|
+
// would also read as a decimal comma in English.
|
|
252
|
+
useGrouping: false
|
|
253
|
+
};
|
|
254
|
+
try {
|
|
255
|
+
format = new Intl.NumberFormat(lang || "en", options);
|
|
256
|
+
} catch {
|
|
257
|
+
format = new Intl.NumberFormat("en", options);
|
|
258
|
+
}
|
|
259
|
+
formatters.set(key, format);
|
|
260
|
+
}
|
|
261
|
+
return format;
|
|
262
|
+
}
|
|
263
|
+
function formatNumber(value, lang, maxDecimals = 2) {
|
|
264
|
+
return formatter(lang, maxDecimals).format(value);
|
|
265
|
+
}
|
|
266
|
+
function decimalSeparator(lang) {
|
|
267
|
+
return formatter(lang, 1).formatToParts(1.5).find((part) => part.type === "decimal")?.value ?? ".";
|
|
268
|
+
}
|
|
269
|
+
function localizeDecimals(text, lang) {
|
|
270
|
+
const separator = decimalSeparator(lang);
|
|
271
|
+
return separator === "." ? text : text.replace(/(\d)\.(\d)/g, `$1${separator}$2`);
|
|
272
|
+
}
|
|
273
|
+
var COMMON_FRACTIONS = [
|
|
274
|
+
{ value: 0.5, text: "1/2" },
|
|
275
|
+
{ value: 0.25, text: "1/4" },
|
|
276
|
+
{ value: 0.75, text: "3/4" },
|
|
277
|
+
{ value: 1 / 3, text: "1/3" },
|
|
278
|
+
{ value: 2 / 3, text: "2/3" },
|
|
279
|
+
{ value: 0.125, text: "1/8" },
|
|
280
|
+
{ value: 0.375, text: "3/8" },
|
|
281
|
+
{ value: 0.625, text: "5/8" },
|
|
282
|
+
{ value: 0.875, text: "7/8" }
|
|
283
|
+
];
|
|
284
|
+
function commonFraction(value) {
|
|
285
|
+
if (value <= 0 || value >= 1) return void 0;
|
|
286
|
+
return COMMON_FRACTIONS.find((f) => Math.abs(value - f.value) < 0.01)?.text;
|
|
287
|
+
}
|
|
288
|
+
var FRACTION_UNITS = /* @__PURE__ */ new Set([
|
|
289
|
+
"tsp",
|
|
290
|
+
"tbsp",
|
|
291
|
+
"tad",
|
|
292
|
+
"dash",
|
|
293
|
+
"pinch",
|
|
294
|
+
"smidgen",
|
|
295
|
+
"drop",
|
|
296
|
+
"cup",
|
|
297
|
+
"tasse",
|
|
298
|
+
"fl oz",
|
|
299
|
+
"pt",
|
|
300
|
+
"qt",
|
|
301
|
+
"gal",
|
|
302
|
+
"oz",
|
|
303
|
+
"lb"
|
|
304
|
+
]);
|
|
305
|
+
function isFractionUnit(rawUnit, lang) {
|
|
306
|
+
return FRACTION_UNITS.has(normalizeUnit(rawUnit, lang));
|
|
307
|
+
}
|
|
308
|
+
function toKitchenFraction(value, rawUnit, lang) {
|
|
309
|
+
if (!isFractionUnit(rawUnit, lang) || value <= 0) return void 0;
|
|
310
|
+
const whole = Math.floor(value);
|
|
311
|
+
const fraction = commonFraction(value - whole);
|
|
312
|
+
if (!fraction) return void 0;
|
|
313
|
+
return whole > 0 ? `${whole} ${fraction}` : fraction;
|
|
314
|
+
}
|
|
206
315
|
|
|
207
316
|
// src/ai.ts
|
|
208
317
|
var LANGUAGE_NAMES = {
|
|
@@ -287,23 +396,174 @@ function getDefaultCategories(lang = "en") {
|
|
|
287
396
|
}
|
|
288
397
|
|
|
289
398
|
// src/locales/en.ts
|
|
399
|
+
var VIEWS_PAUSED = {
|
|
400
|
+
title: "Generation paused",
|
|
401
|
+
description: "The recipe contains blocking errors preventing preview generation."
|
|
402
|
+
};
|
|
290
403
|
var en3 = {
|
|
291
404
|
renderer: {
|
|
405
|
+
viewsPaused: VIEWS_PAUSED.title,
|
|
406
|
+
viewsPausedDescription: VIEWS_PAUSED.description,
|
|
407
|
+
/** What a surface offers next to paused views: jump to the error. */
|
|
408
|
+
showError: "Show the error",
|
|
409
|
+
/** An output the recipe has nothing for (a run sheet with nothing to schedule). */
|
|
410
|
+
outputEmpty: "Nothing to show for this recipe.",
|
|
411
|
+
/** The serving time controls of a view laid out in time (the editor's panel). */
|
|
412
|
+
serving: {
|
|
413
|
+
label: "Served at",
|
|
414
|
+
clear: "Clear",
|
|
415
|
+
clearTitle: "Back to the plan in days before the service",
|
|
416
|
+
suggest: "When to serve?",
|
|
417
|
+
none: "No serving time works in the next seven days.",
|
|
418
|
+
whyNot: "Why not the others?",
|
|
419
|
+
earliest: "Earliest: {when}"
|
|
420
|
+
},
|
|
421
|
+
/** The session controls of a view (the editor's panel): scale, baker's reference, stock. */
|
|
422
|
+
session: {
|
|
423
|
+
title: "Scale and stock",
|
|
424
|
+
scale: "Scale",
|
|
425
|
+
portions: "Portions",
|
|
426
|
+
byIngredient: "or by ingredient",
|
|
427
|
+
ingredient: "Choose an ingredient",
|
|
428
|
+
qty: "Quantity",
|
|
429
|
+
unit: "Unit",
|
|
430
|
+
apply: "Apply",
|
|
431
|
+
bakersReference: "Baker's reference",
|
|
432
|
+
auto: "Automatic (@*)",
|
|
433
|
+
stock: "In stock",
|
|
434
|
+
stockHint: "Already on hand: one shopping-list line, and its steps leave the plan.",
|
|
435
|
+
reset: "Reset",
|
|
436
|
+
scaled: "{factor} %",
|
|
437
|
+
inStock: "{n} in stock",
|
|
438
|
+
scaleError: "Scale not applied: {reason}"
|
|
439
|
+
},
|
|
440
|
+
/** The name of each output of the renderer (`outputs`), by its id. */
|
|
441
|
+
outputs: {
|
|
442
|
+
recipe: "Recipe",
|
|
443
|
+
runSheet: "Run sheet",
|
|
444
|
+
ast: "AST",
|
|
445
|
+
json: "JSON",
|
|
446
|
+
"json-tree": "JSON tree"
|
|
447
|
+
},
|
|
448
|
+
/** The name of each format a view can be written in (`FORMATS`). */
|
|
449
|
+
formats: {
|
|
450
|
+
html: "HTML",
|
|
451
|
+
markdown: "Markdown",
|
|
452
|
+
text: "Text",
|
|
453
|
+
print: "Print"
|
|
454
|
+
},
|
|
292
455
|
shoppingList: "Shopping List",
|
|
456
|
+
/** The ingredients a section uses, above its steps. */
|
|
457
|
+
ingredients: "Ingredients",
|
|
458
|
+
instructions: "Instructions",
|
|
459
|
+
/** The comments at the end of a line, gathered under the recipe. */
|
|
460
|
+
notes: "Notes",
|
|
461
|
+
/** Between the options of an alternative (`@butter|oil`). */
|
|
462
|
+
or: "or",
|
|
463
|
+
/** The head of the metadata block of the Markdown recipe. */
|
|
464
|
+
metadata: "Metadata",
|
|
465
|
+
/** Marks a composite ingredient (`@yolk<@egg`) in a list. */
|
|
466
|
+
composite: "Composite",
|
|
467
|
+
/** Under a composite in the shopping list, the share of the item used whole (`@egg{1}` next to `@yolk<@egg`). */
|
|
468
|
+
directUse: "Direct use",
|
|
469
|
+
/** The label of the total mass in the recipe's header. */
|
|
470
|
+
totalMass: "Total Mass",
|
|
471
|
+
incomplete: "Incomplete",
|
|
472
|
+
/** After a timer that is a passive wait, and the short mark of an alternative. */
|
|
473
|
+
passive: "passive",
|
|
474
|
+
alt: "alt",
|
|
475
|
+
unknownIngredient: "[Unknown Ingredient]",
|
|
476
|
+
unknownReference: "[Unknown Reference]",
|
|
477
|
+
/** The portions of the recipe (`portions:`), and once it is scaled. */
|
|
478
|
+
servings: "{count} portions",
|
|
479
|
+
servingsScaled: "{count} portions (\xD7{factor})",
|
|
480
|
+
/** The word after the portions stepper, by plural category (`Intl.PluralRules`). */
|
|
481
|
+
portionsUnit: { one: "portion", other: "portions" },
|
|
482
|
+
/** The badge of a scaled recipe in the hero bar ("×1.5"). */
|
|
483
|
+
scaledRecipe: "Scaled recipe",
|
|
484
|
+
/** The pencil button beside the portions, where the surface can change them. */
|
|
485
|
+
changePortions: "Change the portions",
|
|
293
486
|
cookware: "Cookware",
|
|
294
487
|
equipment: "Equipment",
|
|
295
488
|
nutrition: "Nutrition",
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
489
|
+
/** The units of a computed duration (`formatDuration`): "1d 2h", "1h 30min", "45s". */
|
|
490
|
+
durationUnits: { day: "d", hour: "h", minute: "min", second: "s" },
|
|
491
|
+
totalTime: "Total time",
|
|
492
|
+
idleTime: "Idle time",
|
|
493
|
+
activeTime: "Active time",
|
|
494
|
+
prepTime: "Prep time",
|
|
495
|
+
totalTimeTooltip: "Total time = prep + active + idle",
|
|
496
|
+
/** Under the total time's breakdown: where the hour-by-hour plan lives. */
|
|
497
|
+
totalTimeRunSheetHint: "For the hour-by-hour plan, see the {view}.",
|
|
498
|
+
activeTimeCardTooltip: "Active time = sum of manual work time",
|
|
499
|
+
prepTimeTooltip: "Prep time = time to gather and prepare ingredients and cookware",
|
|
500
|
+
miseEnPlace: "Mise en place",
|
|
501
|
+
scheduleLabel: "Mise en place",
|
|
502
|
+
restsLabel: "Waits",
|
|
503
|
+
restsShortest: "Shortest",
|
|
504
|
+
restsBalanced: "Middle",
|
|
505
|
+
restsLongest: "Longest",
|
|
506
|
+
schedulePerSection: "By section",
|
|
507
|
+
scheduleUpfront: "All at the start",
|
|
508
|
+
schedulePerDay: "By working day",
|
|
509
|
+
dayBefore: "D-",
|
|
510
|
+
dayToday: "Day D",
|
|
511
|
+
runSheetStep: "Step {n}",
|
|
512
|
+
runSheetRest: "Wait",
|
|
513
|
+
runSheetUnnamedSection: "Recipe",
|
|
514
|
+
runSheetProblems: "To fix",
|
|
515
|
+
runSheetOutside: "{task}, around {time}, falls when you are not available, and no wait can be moved to fix it.",
|
|
516
|
+
runSheetExceeds: "{task} takes {duration} without a break, more than your longest availability ({largest}): widen it.",
|
|
517
|
+
runSheetDayMismatch: "The work of {day} falls on {actual} instead of {expected}.",
|
|
518
|
+
runSheetPast: "The first task should have started {start}, and it is already {now}.",
|
|
519
|
+
runSheetMulti: "Only the first of {count} recipes is planned.",
|
|
520
|
+
runSheetTitle: "Run sheet",
|
|
521
|
+
runSheetFor: "For {date} at {time}",
|
|
522
|
+
runSheetDays: "{n} day",
|
|
523
|
+
runSheetDaysMany: "{n} days",
|
|
524
|
+
runSheetVisits: "{n} visit to the kitchen",
|
|
525
|
+
runSheetVisitsMany: "{n} visits to the kitchen",
|
|
526
|
+
runSheetWork: "{duration} of work in all",
|
|
527
|
+
runSheetServe: "Serve",
|
|
528
|
+
runSheetAbout: "~ {duration}",
|
|
529
|
+
runSheetKit: "To take out",
|
|
530
|
+
runSheetLegendCook: "in the kitchen",
|
|
531
|
+
runSheetLegendThread: "what goes on without you",
|
|
532
|
+
runSheetProgram: "To do",
|
|
533
|
+
runSheetExecution: "Execution",
|
|
534
|
+
runSheetIngredients: "Ingredients",
|
|
535
|
+
runSheetStart: "Start: {time}",
|
|
536
|
+
runSheetContinued: "continued",
|
|
537
|
+
runSheetLeaving: "Before leaving",
|
|
538
|
+
runSheetMadeOn: "made {day}",
|
|
539
|
+
runSheetMadeAt: "made at {time}",
|
|
540
|
+
runSheetMadeEarlier: "made earlier",
|
|
541
|
+
runSheetInStock: "in stock",
|
|
542
|
+
runSheetProgramStep: "step {n}",
|
|
543
|
+
runSheetProgramSteps: "steps {from} to {to}",
|
|
544
|
+
runSheetRange: "{min} to {max}",
|
|
545
|
+
runSheetPossibleFrom: "Possible from {time}.",
|
|
546
|
+
runSheetFixedService: "Can't start earlier: the \u201C{rest}\u201D wait ({section}) can't be longer than {length} and ends when you serve.",
|
|
547
|
+
runSheetFixedVisit: "Can't start earlier: the \u201C{rest}\u201D wait ({section}) can't be longer than {length} and must be over before {sections}.",
|
|
548
|
+
runSheetNextVisit: "Next visit: {when}",
|
|
549
|
+
runSheetNextVisitSameDay: "Next visit: later the same day",
|
|
550
|
+
runSheetServeAt: "Serve at {time}",
|
|
551
|
+
runSheetStretchedTo: "{wait} extended to {to} (planned {range}) so the work falls within your availability.",
|
|
552
|
+
runSheetShortenedTo: "{wait} shortened to {to} (planned {range}) so the work falls within your availability.",
|
|
553
|
+
runSheetUntilClock: "until {time}",
|
|
554
|
+
runSheetNothing: "Nothing to plan.",
|
|
555
|
+
runSheetFindOk: "{when} \u2014 start {start} \xB7 {visits} \xB7 {adjusted}",
|
|
556
|
+
runSheetFindRejected: "{when} \u2014 not possible. {reason}",
|
|
557
|
+
runSheetFindStart: "You would have to start {start}, which has passed.",
|
|
558
|
+
runSheetFindNone: "No serving time works between {from} and {to}.",
|
|
559
|
+
runSheetAdjusted: "{n} wait adjusted",
|
|
560
|
+
runSheetAdjustedMany: "{n} waits adjusted",
|
|
561
|
+
runSheetNoAdjustment: "no wait adjusted",
|
|
562
|
+
runSheetEarliest: "Ready as early as {when} if you start now.",
|
|
563
|
+
runSheetEarliestNone: "Nothing works in the next {days} days (searched until {until}).",
|
|
304
564
|
est: "(est.)",
|
|
305
565
|
passiveTimeTooltip: "Passive Time (Waiting, resting...)",
|
|
306
|
-
activeTimeTooltip: "Active
|
|
566
|
+
activeTimeTooltip: "Active time",
|
|
307
567
|
estimateTooltip: "Estimate",
|
|
308
568
|
coverageTooltip: "Coverage",
|
|
309
569
|
unknownCookware: "[Unknown Cookware]",
|
|
@@ -320,16 +580,28 @@ var en3 = {
|
|
|
320
580
|
breakdownPassive: "Passive",
|
|
321
581
|
breakdownTimer: "Timer",
|
|
322
582
|
breakdownPrep: "Preparation",
|
|
583
|
+
// What separates a label from its value: no space before the colon in English.
|
|
584
|
+
colon: ": ",
|
|
323
585
|
standardizedMass: "Standardized mass",
|
|
324
586
|
quantity: "Quantity",
|
|
325
|
-
intermediateIngredient: "Intermediate
|
|
587
|
+
intermediateIngredient: "Intermediate ingredient",
|
|
588
|
+
// The rows of the tooltip of an ingredient in a step.
|
|
589
|
+
tooltipMass: "Mass",
|
|
590
|
+
tooltipPreparation: "Preparation",
|
|
591
|
+
tooltipBakers: "Baker's %",
|
|
592
|
+
tooltipTakenFrom: "Taken from",
|
|
326
593
|
alternatives: "Alternatives",
|
|
594
|
+
// The deprecated portions stepper of the HTML recipe (`interactiveScaling`).
|
|
595
|
+
// @remove-in: 2.0.0 [renderer-interactive-scaling]
|
|
327
596
|
decreasePortions: "Decrease portions",
|
|
328
597
|
editPortions: "Edit portions directly",
|
|
329
598
|
increasePortions: "Increase portions",
|
|
330
599
|
returnToStep: "Return to step",
|
|
331
600
|
mixedUnitsTooltip: "Couldn't be combined into one total \u2014 add a density to the ingredient database to merge them",
|
|
332
601
|
mixedUnits: "Mixed units",
|
|
602
|
+
copyShoppingList: "Copy list",
|
|
603
|
+
copied: "Copied!",
|
|
604
|
+
toggleStepDone: "Toggle step completion",
|
|
333
605
|
purchasingWeight: "Purchasing Weight (including waste/peel)",
|
|
334
606
|
gross: "gross",
|
|
335
607
|
intermediateResult: "Intermediate result for this section",
|
|
@@ -337,6 +609,16 @@ var en3 = {
|
|
|
337
609
|
estimatedSuffix: " (Estimated)",
|
|
338
610
|
missingMass: " (Missing: ",
|
|
339
611
|
someIngredients: "some ingredients",
|
|
612
|
+
// The tooltip of a mass (the hero bar's total, a section's badge).
|
|
613
|
+
massTitle: "Ingredient mass, before cooking",
|
|
614
|
+
massSectionTitle: "Mass of this section's ingredients, before cooking",
|
|
615
|
+
massEstimated: "Estimated",
|
|
616
|
+
massEstimatedDetail: "converted with an average value",
|
|
617
|
+
massIncomplete: "Incomplete",
|
|
618
|
+
massIncompleteDetail: "no known mass",
|
|
619
|
+
massMethodDensity: "average density",
|
|
620
|
+
massMethodUnitWeight: "average unit weight",
|
|
621
|
+
massIncompleteHint: "Give these a weight in grams, or a density or unit weight in densities: or the ingredient database",
|
|
340
622
|
// Nutrition bases. Which one is shown is the renderer's
|
|
341
623
|
// `nutritionBasis` option; the analyzer computes all three.
|
|
342
624
|
nutritionWholeRecipe: "Whole recipe",
|
|
@@ -351,13 +633,23 @@ var en3 = {
|
|
|
351
633
|
nutritionRawMassNote: "Based on {mass} of ingredients, before cooking",
|
|
352
634
|
nutritionRawMassNotePartial: "Based on the {mass} with nutrition data, before cooking",
|
|
353
635
|
incompleteData: "Incomplete data",
|
|
636
|
+
/** Under the nutrition of the text format when a mass was estimated from a density. */
|
|
637
|
+
nutritionEstimated: "estimated values",
|
|
354
638
|
// One entry per key in @gram-lang/analyzer's NUTRIENTS table; the
|
|
355
639
|
// renderer test asserts the two stay in step. A sub-macro's label is
|
|
356
640
|
// prefixed with `ofWhich` at display time rather than baked in here,
|
|
357
641
|
// so the same string works standalone and nested.
|
|
642
|
+
// The nutrition table of the HTML recipe: salt is shown in place of
|
|
643
|
+
// sodium, and the reference intakes are the EU ones.
|
|
644
|
+
nutritionSalt: "Salt",
|
|
645
|
+
nutritionTableTitle: "Nutrition information",
|
|
646
|
+
nutritionReferenceIntake: "%RI",
|
|
647
|
+
nutritionReferenceIntakeNote: "Reference intake of an average adult (8,400 kJ / 2,000 kcal)",
|
|
648
|
+
nutritionNutrient: "Nutrient",
|
|
649
|
+
nutritionWholeRecipeTotal: "Whole recipe: {kcal}",
|
|
358
650
|
ofWhich: "of which",
|
|
359
651
|
nutrients: {
|
|
360
|
-
calories: "
|
|
652
|
+
calories: "Energy",
|
|
361
653
|
fat: "Fat",
|
|
362
654
|
sat_fat: "saturates",
|
|
363
655
|
mono_fat: "mono-unsaturates",
|
|
@@ -375,22 +667,78 @@ var en3 = {
|
|
|
375
667
|
inputTab: "Input (.gram)",
|
|
376
668
|
writePlaceholder: "Write your recipe here...",
|
|
377
669
|
outputTab: "Output",
|
|
670
|
+
// The label of the old view selector: the views are tabs now.
|
|
671
|
+
// @remove-in: 2.0.0 [i18n-playground-view-labels]
|
|
378
672
|
viewLabel: "View:",
|
|
673
|
+
formatLabel: "Format",
|
|
379
674
|
loadExample: "Load Example...",
|
|
380
675
|
recipe: "Recipe",
|
|
381
|
-
|
|
676
|
+
studioTitle: "Recipe settings",
|
|
677
|
+
settingsButton: "Settings",
|
|
678
|
+
settingsHint: {
|
|
679
|
+
text: "Adjust quantities, schedule service, customize the display\u2026 it all happens in Settings.",
|
|
680
|
+
dismiss: "Got it"
|
|
681
|
+
},
|
|
682
|
+
activeOptionsBadge: "{count} active",
|
|
683
|
+
resetAll: "Reset all",
|
|
684
|
+
resetSection: "Reset",
|
|
685
|
+
openScheduleSettings: "Adjust schedule",
|
|
686
|
+
scheduleButton: "Schedule",
|
|
687
|
+
sections: {
|
|
688
|
+
schedule: "Schedule",
|
|
689
|
+
scale: "Quantities",
|
|
690
|
+
bakersMath: "Baker's percentages",
|
|
691
|
+
display: "Display",
|
|
692
|
+
physics: "Nutrition and mass",
|
|
693
|
+
stock: "Stocked bases"
|
|
694
|
+
},
|
|
695
|
+
badges: {
|
|
696
|
+
default: "Default",
|
|
697
|
+
active: "Active",
|
|
698
|
+
inactive: "Inactive",
|
|
699
|
+
standardized: "Standardized",
|
|
700
|
+
nutritionActive: "Nutrition active",
|
|
701
|
+
byIngredient: "By ingredient",
|
|
702
|
+
inStock: "{count} in stock",
|
|
703
|
+
serveAt: "Served at {time}",
|
|
704
|
+
customHours: "Custom hours"
|
|
705
|
+
},
|
|
706
|
+
a11y: {
|
|
707
|
+
closeDrawer: "Close settings panel"
|
|
708
|
+
},
|
|
382
709
|
examples: {
|
|
383
710
|
newRecipe: "Blank (New Recipe)",
|
|
384
711
|
canneles: "Bordeaux Cannel\xE9s",
|
|
385
712
|
empanadas: "Beef Empanadas"
|
|
386
713
|
},
|
|
387
714
|
views: {
|
|
715
|
+
// The labels of the old view selector: the outputs are now named by
|
|
716
|
+
// `renderer.outputs`, and the formats by `renderer.formats`.
|
|
717
|
+
// @remove-in: 2.0.0 [i18n-playground-view-labels]
|
|
388
718
|
json: "JSON Output",
|
|
389
719
|
ast: "AST (Raw)",
|
|
390
720
|
jsonTree: "Interactive Tree",
|
|
391
721
|
markdown: "Markdown",
|
|
392
722
|
preview: "Preview (HTML)",
|
|
393
|
-
|
|
723
|
+
runSheet: "Run sheet",
|
|
724
|
+
serveWhenTitle: "When to serve?",
|
|
725
|
+
serveWhenNone: "No serving time works in the next seven days.",
|
|
726
|
+
serveWhenWhyNot: "Why not the others?",
|
|
727
|
+
earliestTitle: "Ready as early as",
|
|
728
|
+
earliestNone: "Nothing works in the next 14 days.",
|
|
729
|
+
earliestUse: "Serve then",
|
|
730
|
+
planSummary: "Plan",
|
|
731
|
+
planServeAt: "Serving time",
|
|
732
|
+
planTimeZone: "Time zone",
|
|
733
|
+
planAvailability: "Daily availability",
|
|
734
|
+
planSpecificHours: "Specific hours by day of the week",
|
|
735
|
+
planDayUnavailable: "Unavailable",
|
|
736
|
+
serveAtClear: "Clear",
|
|
737
|
+
serveAtClearTitle: "Clear serve time",
|
|
738
|
+
serveOtherSlots: "Other slots",
|
|
739
|
+
planClear: "Clear the plan",
|
|
740
|
+
planInvalid: "This plan can't be made: {message}",
|
|
741
|
+
// @remove-in: 2.0.0 [i18n-gantt-keys]
|
|
394
742
|
gantt_active: "Active Task",
|
|
395
743
|
gantt_passive: "Background Task",
|
|
396
744
|
gantt_compact: "Compact View",
|
|
@@ -410,6 +758,7 @@ var en3 = {
|
|
|
410
758
|
},
|
|
411
759
|
options: {
|
|
412
760
|
scaleTitle: "Modify Quantities",
|
|
761
|
+
scalePortions: "Portions",
|
|
413
762
|
scaleGlobal: "Overall Scale",
|
|
414
763
|
scaleByIngredient: "By Ingredient",
|
|
415
764
|
selectIngredient: "Select ingredient...",
|
|
@@ -420,6 +769,13 @@ var en3 = {
|
|
|
420
769
|
enableBakersMath: "Enable Baker's Math",
|
|
421
770
|
bakersMathDesc: "Shows ingredients as % of reference.",
|
|
422
771
|
hideAbsolute: "Hide absolute weights",
|
|
772
|
+
showComments: "Show comments",
|
|
773
|
+
commentsDesc: "The notes of the recipe (// like this), in the recipe and in the run sheet.",
|
|
774
|
+
showStepQuantities: "Quantities in the steps",
|
|
775
|
+
stepQuantitiesDesc: "Writes the quantity of each ingredient in the text of the steps, after its name.",
|
|
776
|
+
nutritionBasis: "Nutrition basis",
|
|
777
|
+
nutritionBasisAuto: "Automatic (every basis, side by side)",
|
|
778
|
+
rejectedSlots: "Unavailable slots:",
|
|
423
779
|
forceReference: "Force Reference:",
|
|
424
780
|
autoDetect: "Auto (detect @*)",
|
|
425
781
|
physicalAnalysis: "Physical Analysis",
|
|
@@ -430,8 +786,38 @@ var en3 = {
|
|
|
430
786
|
stockTitle: "Stock (skip steps)",
|
|
431
787
|
stockDesc: "Treat as already on hand \u2014 collapses to one shopping-list line, no timeline steps."
|
|
432
788
|
},
|
|
789
|
+
help: {
|
|
790
|
+
schedule: "Controls when ingredient prep and weighing take place in the schedule: right before each section, all upfront at the start of the recipe, or at the beginning of each working day.",
|
|
791
|
+
rests: "Sets the target duration for steps with a flexible time range (e.g. 2h to 12h): the minimum required time, the maximum allowed time, or a balanced midpoint.",
|
|
792
|
+
serveAt: "Target meal date and time. The schedule is calculated backwards from this deadline to tell you when to start and be ready right on time.",
|
|
793
|
+
serveSuggestions: "Recommended serving times. Gram evaluates rest ranges and your kitchen hours to suggest feasible meal times that require no overnight work.",
|
|
794
|
+
timeZone: "Sets the time zone used to display exact clock times on the run sheet and accurately handle day transitions.",
|
|
795
|
+
availability: "Your daily kitchen hours. The schedule organizes tasks so you never have to cook outside this window (such as overnight).",
|
|
796
|
+
scalePortions: "Sets how many portions the recipe makes: every quantity follows. The same as the overall scale, counted in portions.",
|
|
797
|
+
scaleGlobal: "Adjusts all ingredient quantities and portions according to the specified percentage (e.g. 200% to double, 50% to halve).",
|
|
798
|
+
scaleByIngredient: "Proportionally recalculates the entire recipe to match the exact quantity you have on hand for a specific ingredient (e.g. only 3 eggs or 250g of butter).",
|
|
799
|
+
bakersMath: "Expresses each ingredient as a percentage of a base ingredient set at 100% (typically flour, or any chosen ingredient), making ratios and formulation easy to evaluate.",
|
|
800
|
+
comments: "Shows or leaves out the comments written in the recipe with //: the notes alone on a line and the ones at the end of a line. They are set apart discreetly in the run sheet.",
|
|
801
|
+
stepQuantities: "Writes each quantity in the step that uses it, with its weight in grams when the masses are standardized. Leave it off for shorter steps: the quantities stay in the ingredient lists.",
|
|
802
|
+
nutritionBasis: "Which basis the nutrition panel shows, when the nutrition is estimated. Automatic shows per 100 g and per portion side by side, with the whole recipe under them, in every recipe format.",
|
|
803
|
+
bakersMathOnly: "Hides gram weights to display only relative percentages, turning the recipe into a pure ratio formula.",
|
|
804
|
+
bakersReference: "Manually selects which ingredient serves as the 100% baseline, overriding automatic detection of the @* ingredient in the recipe.",
|
|
805
|
+
massStandardization: "Converts volume measurements (spoons, cups, ml) into grams according to the database densities.",
|
|
806
|
+
yieldManagement: "Calculates gross purchasing weight to obtain the desired net quantity, accounting for peeling and trimming waste in the database.",
|
|
807
|
+
nutrition: "Estimates calories and macronutrients (protein, carbs, fat, fiber) per serving or per 100g via the nutritional tables in the database.",
|
|
808
|
+
/** The note of the "Schedule & Service" section: what these settings change in each view. */
|
|
809
|
+
scheduleNote: "These settings mostly shape the run sheet. In the recipe, only the total and idle times change.",
|
|
810
|
+
scheduleNoteLink: "See the run sheet",
|
|
811
|
+
physicsDisclaimer: "In this playground, physical and nutritional calculations rely on an ingredient database limited to example recipes.",
|
|
812
|
+
stockItem: "Marks this imported preparation as already on hand in your kitchen. Its prep steps are removed from the schedule, keeping only its final use."
|
|
813
|
+
},
|
|
433
814
|
output: {
|
|
434
815
|
copy: "Copy to clipboard",
|
|
816
|
+
print: "Print this view",
|
|
817
|
+
/** The tabs of the views of the recipe. */
|
|
818
|
+
views: "Views",
|
|
819
|
+
/** The tab of the inspectors (AST, JSON), apart from the views. */
|
|
820
|
+
inspect: "Inspect",
|
|
435
821
|
loading: "Loading viewer..."
|
|
436
822
|
},
|
|
437
823
|
warnings: {
|
|
@@ -448,8 +834,8 @@ var en3 = {
|
|
|
448
834
|
collapseConsole: "Collapse console"
|
|
449
835
|
},
|
|
450
836
|
errorState: {
|
|
451
|
-
title:
|
|
452
|
-
blockingDescription:
|
|
837
|
+
title: VIEWS_PAUSED.title,
|
|
838
|
+
blockingDescription: VIEWS_PAUSED.description,
|
|
453
839
|
jumpToError: "Jump to error",
|
|
454
840
|
line: "Line"
|
|
455
841
|
},
|
|
@@ -467,6 +853,8 @@ var en3 = {
|
|
|
467
853
|
editor: "Editor",
|
|
468
854
|
preview: "Preview"
|
|
469
855
|
},
|
|
856
|
+
fullscreen: "Fullscreen",
|
|
857
|
+
exitFullscreen: "Exit fullscreen",
|
|
470
858
|
analysisOptions: "Analysis Options",
|
|
471
859
|
analysis: "Analysis",
|
|
472
860
|
massNorm: "Mass Normalization",
|
|
@@ -479,20 +867,151 @@ var en3 = {
|
|
|
479
867
|
};
|
|
480
868
|
|
|
481
869
|
// src/locales/fr.ts
|
|
870
|
+
var VIEWS_PAUSED2 = {
|
|
871
|
+
title: "G\xE9n\xE9ration interrompue",
|
|
872
|
+
description: "La recette contient des erreurs bloquantes emp\xEAchant la g\xE9n\xE9ration de l'aper\xE7u."
|
|
873
|
+
};
|
|
482
874
|
var fr3 = {
|
|
483
875
|
renderer: {
|
|
876
|
+
viewsPaused: VIEWS_PAUSED2.title,
|
|
877
|
+
viewsPausedDescription: VIEWS_PAUSED2.description,
|
|
878
|
+
showError: "Voir l'erreur",
|
|
879
|
+
outputEmpty: "Rien \xE0 afficher pour cette recette.",
|
|
880
|
+
serving: {
|
|
881
|
+
label: "Service le",
|
|
882
|
+
clear: "Effacer",
|
|
883
|
+
clearTitle: "Revenir au plan de marche en jours avant le service",
|
|
884
|
+
suggest: "Quand servir ?",
|
|
885
|
+
none: "Aucune heure de service ne convient dans les sept prochains jours.",
|
|
886
|
+
whyNot: "Pourquoi pas les autres ?",
|
|
887
|
+
earliest: "Au plus t\xF4t : {when}"
|
|
888
|
+
},
|
|
889
|
+
session: {
|
|
890
|
+
title: "\xC9chelle et stock",
|
|
891
|
+
scale: "\xC9chelle",
|
|
892
|
+
portions: "Portions",
|
|
893
|
+
byIngredient: "ou par ingr\xE9dient",
|
|
894
|
+
ingredient: "Choisir un ingr\xE9dient",
|
|
895
|
+
qty: "Quantit\xE9",
|
|
896
|
+
unit: "Unit\xE9",
|
|
897
|
+
apply: "Appliquer",
|
|
898
|
+
bakersReference: "R\xE9f\xE9rence boulang\xE8re",
|
|
899
|
+
auto: "Automatique (@*)",
|
|
900
|
+
stock: "En stock",
|
|
901
|
+
stockHint: "D\xE9j\xE0 pr\xEAt : une seule ligne d'achat, et ses \xE9tapes quittent le plan de marche.",
|
|
902
|
+
reset: "R\xE9initialiser",
|
|
903
|
+
scaled: "{factor} %",
|
|
904
|
+
inStock: "{n} en stock",
|
|
905
|
+
scaleError: "\xC9chelle non appliqu\xE9e : {reason}"
|
|
906
|
+
},
|
|
907
|
+
outputs: {
|
|
908
|
+
recipe: "Recette",
|
|
909
|
+
runSheet: "Plan de marche",
|
|
910
|
+
ast: "AST",
|
|
911
|
+
json: "JSON",
|
|
912
|
+
"json-tree": "Arbre JSON"
|
|
913
|
+
},
|
|
914
|
+
formats: {
|
|
915
|
+
html: "HTML",
|
|
916
|
+
markdown: "Markdown",
|
|
917
|
+
text: "Texte",
|
|
918
|
+
print: "Impression"
|
|
919
|
+
},
|
|
484
920
|
shoppingList: "Liste de courses",
|
|
921
|
+
ingredients: "Ingr\xE9dients",
|
|
922
|
+
instructions: "\xC9tapes",
|
|
923
|
+
notes: "Notes",
|
|
924
|
+
or: "ou",
|
|
925
|
+
metadata: "M\xE9tadonn\xE9es",
|
|
926
|
+
composite: "Composite",
|
|
927
|
+
directUse: "Utilisation directe",
|
|
928
|
+
totalMass: "Masse totale",
|
|
929
|
+
incomplete: "Incomplet",
|
|
930
|
+
passive: "passif",
|
|
931
|
+
alt: "alt.",
|
|
932
|
+
unknownIngredient: "[Ingr\xE9dient inconnu]",
|
|
933
|
+
unknownReference: "[R\xE9f\xE9rence inconnue]",
|
|
934
|
+
servings: "{count} portions",
|
|
935
|
+
servingsScaled: "{count} portions (\xD7{factor})",
|
|
936
|
+
portionsUnit: { one: "portion", other: "portions" },
|
|
937
|
+
scaledRecipe: "Recette mise \xE0 l'\xE9chelle",
|
|
938
|
+
changePortions: "Modifier les portions",
|
|
485
939
|
cookware: "Mat\xE9riel",
|
|
486
940
|
equipment: "\xC9quipement",
|
|
487
941
|
nutrition: "Nutrition",
|
|
488
|
-
|
|
942
|
+
durationUnits: { day: "j", hour: "h", minute: "min", second: "s" },
|
|
943
|
+
totalTime: "Temps total",
|
|
489
944
|
idleTime: "Attente",
|
|
490
945
|
activeTime: "Actif",
|
|
491
946
|
prepTime: "Pr\xE9paration",
|
|
492
|
-
totalTimeTooltip: "Temps
|
|
493
|
-
|
|
494
|
-
activeTimeCardTooltip: "Temps
|
|
495
|
-
prepTimeTooltip: "Pr\xE9paration =
|
|
947
|
+
totalTimeTooltip: "Temps total = pr\xE9paration + actif + attente",
|
|
948
|
+
totalTimeRunSheetHint: "Le d\xE9roul\xE9 heure par heure est dans le {view}.",
|
|
949
|
+
activeTimeCardTooltip: "Temps actif = somme des temps de manipulation manuelle",
|
|
950
|
+
prepTimeTooltip: "Pr\xE9paration = temps pour rassembler et pr\xE9parer ingr\xE9dients et ustensiles",
|
|
951
|
+
miseEnPlace: "Mise en place",
|
|
952
|
+
scheduleLabel: "Mise en place",
|
|
953
|
+
restsLabel: "Attentes",
|
|
954
|
+
restsShortest: "Les plus courtes",
|
|
955
|
+
restsBalanced: "Au milieu",
|
|
956
|
+
restsLongest: "Les plus longues",
|
|
957
|
+
schedulePerSection: "Par section",
|
|
958
|
+
scheduleUpfront: "Tout au d\xE9but",
|
|
959
|
+
schedulePerDay: "Par journ\xE9e de travail",
|
|
960
|
+
dayBefore: "J-",
|
|
961
|
+
dayToday: "Jour J",
|
|
962
|
+
runSheetStep: "\xC9tape {n}",
|
|
963
|
+
runSheetRest: "Attente",
|
|
964
|
+
runSheetUnnamedSection: "Recette",
|
|
965
|
+
runSheetProblems: "\xC0 r\xE9gler",
|
|
966
|
+
runSheetOutside: "{task}, vers {time}, tombe quand vous n'\xEAtes pas disponible, et aucune attente ne peut bouger pour arranger \xE7a.",
|
|
967
|
+
runSheetExceeds: "{task} dure {duration} sans pause, plus que votre plus longue disponibilit\xE9 ({largest}) : \xE9largissez-la.",
|
|
968
|
+
runSheetDayMismatch: "Le travail de {day} tombe le {actual} au lieu du {expected}.",
|
|
969
|
+
runSheetPast: "La premi\xE8re t\xE2che aurait d\xFB commencer {start}, et nous sommes d\xE9j\xE0 {now}.",
|
|
970
|
+
runSheetMulti: "Seule la premi\xE8re des {count} recettes est planifi\xE9e.",
|
|
971
|
+
runSheetTitle: "Plan de marche",
|
|
972
|
+
runSheetFor: "Pour le {date} \xE0 {time}",
|
|
973
|
+
runSheetDays: "{n} jour",
|
|
974
|
+
runSheetDaysMany: "{n} jours",
|
|
975
|
+
runSheetVisits: "{n} passage en cuisine",
|
|
976
|
+
runSheetVisitsMany: "{n} passages en cuisine",
|
|
977
|
+
runSheetWork: "{duration} de travail en tout",
|
|
978
|
+
runSheetServe: "Servir",
|
|
979
|
+
runSheetAbout: "~ {duration}",
|
|
980
|
+
runSheetKit: "\xC0 sortir",
|
|
981
|
+
runSheetLegendCook: "en cuisine",
|
|
982
|
+
runSheetLegendThread: "ce qui continue sans vous",
|
|
983
|
+
runSheetProgram: "Au programme",
|
|
984
|
+
runSheetExecution: "Ex\xE9cution",
|
|
985
|
+
runSheetIngredients: "Ingr\xE9dients",
|
|
986
|
+
runSheetStart: "D\xE9but : {time}",
|
|
987
|
+
runSheetContinued: "suite",
|
|
988
|
+
runSheetLeaving: "En partant",
|
|
989
|
+
runSheetMadeOn: "fait {day}",
|
|
990
|
+
runSheetMadeAt: "fait \xE0 {time}",
|
|
991
|
+
runSheetMadeEarlier: "fait plus t\xF4t",
|
|
992
|
+
runSheetInStock: "en stock",
|
|
993
|
+
runSheetProgramStep: "\xE9tape {n}",
|
|
994
|
+
runSheetProgramSteps: "\xE9tapes {from} \xE0 {to}",
|
|
995
|
+
runSheetRange: "{min} \xE0 {max}",
|
|
996
|
+
runSheetPossibleFrom: "Possible d\xE8s {time}.",
|
|
997
|
+
runSheetFixedService: "D\xE9but non avan\xE7able : l'attente \xAB {rest} \xBB ({section}) ne peut pas d\xE9passer {length} et se termine au service.",
|
|
998
|
+
runSheetFixedVisit: "D\xE9but non avan\xE7able : l'attente \xAB {rest} \xBB ({section}) ne peut pas d\xE9passer {length} et doit \xEAtre termin\xE9e avant {sections}.",
|
|
999
|
+
runSheetNextVisit: "Prochain passage : {when}",
|
|
1000
|
+
runSheetNextVisitSameDay: "Prochain passage : plus tard le m\xEAme jour",
|
|
1001
|
+
runSheetServeAt: "Servir \xE0 {time}",
|
|
1002
|
+
runSheetStretchedTo: "{wait} prolong\xE9 \xE0 {to} (pr\xE9vu {range}) pour que le travail tombe dans vos disponibilit\xE9s.",
|
|
1003
|
+
runSheetShortenedTo: "{wait} raccourci \xE0 {to} (pr\xE9vu {range}) pour que le travail tombe dans vos disponibilit\xE9s.",
|
|
1004
|
+
runSheetUntilClock: "jusqu'\xE0 {time}",
|
|
1005
|
+
runSheetNothing: "Rien \xE0 planifier.",
|
|
1006
|
+
runSheetFindOk: "{when} \u2014 d\xE9but {start} \xB7 {visits} \xB7 {adjusted}",
|
|
1007
|
+
runSheetFindRejected: "{when} \u2014 impossible. {reason}",
|
|
1008
|
+
runSheetFindStart: "Il faudrait commencer {start}, c'est d\xE9j\xE0 pass\xE9.",
|
|
1009
|
+
runSheetFindNone: "Aucune heure de service ne convient entre {from} et {to}.",
|
|
1010
|
+
runSheetAdjusted: "{n} attente ajust\xE9e",
|
|
1011
|
+
runSheetAdjustedMany: "{n} attentes ajust\xE9es",
|
|
1012
|
+
runSheetNoAdjustment: "aucune attente ajust\xE9e",
|
|
1013
|
+
runSheetEarliest: "Pr\xEAt d\xE8s {when} si vous commencez maintenant.",
|
|
1014
|
+
runSheetEarliestNone: "Rien ne convient dans les {days} prochains jours (cherch\xE9 jusqu'au {until}).",
|
|
496
1015
|
est: "(est.)",
|
|
497
1016
|
passiveTimeTooltip: "Temps passif (Repos, attente...)",
|
|
498
1017
|
activeTimeTooltip: "Temps actif",
|
|
@@ -512,16 +1031,28 @@ var fr3 = {
|
|
|
512
1031
|
breakdownPassive: "Passif",
|
|
513
1032
|
breakdownTimer: "Minuteur",
|
|
514
1033
|
breakdownPrep: "Pr\xE9paration",
|
|
1034
|
+
// What separates a label from its value: a space before the colon in French.
|
|
1035
|
+
colon: " : ",
|
|
515
1036
|
standardizedMass: "Masse standardis\xE9e",
|
|
516
1037
|
quantity: "Quantit\xE9",
|
|
517
1038
|
intermediateIngredient: "Ingr\xE9dient interm\xE9diaire",
|
|
1039
|
+
// Les lignes de la bulle d'un ingrédient dans une étape.
|
|
1040
|
+
tooltipMass: "Masse",
|
|
1041
|
+
tooltipPreparation: "Pr\xE9paration",
|
|
1042
|
+
tooltipBakers: "% boulanger",
|
|
1043
|
+
tooltipTakenFrom: "Pr\xE9lev\xE9 sur",
|
|
518
1044
|
alternatives: "Alternatives",
|
|
1045
|
+
// The deprecated portions stepper of the HTML recipe (`interactiveScaling`).
|
|
1046
|
+
// @remove-in: 2.0.0 [renderer-interactive-scaling]
|
|
519
1047
|
decreasePortions: "Diminuer les portions",
|
|
520
1048
|
editPortions: "Modifier directement les portions",
|
|
521
1049
|
increasePortions: "Augmenter les portions",
|
|
522
1050
|
returnToStep: "Retour \xE0 l'\xE9tape",
|
|
523
1051
|
mixedUnitsTooltip: "Impossible de fusionner en un seul total \u2014 ajoutez une densit\xE9 \xE0 la base de donn\xE9es pour les convertir",
|
|
524
1052
|
mixedUnits: "Unit\xE9s mixtes",
|
|
1053
|
+
copyShoppingList: "Copier la liste",
|
|
1054
|
+
copied: "Copi\xE9 !",
|
|
1055
|
+
toggleStepDone: "Marquer l'\xE9tape comme termin\xE9e",
|
|
525
1056
|
purchasingWeight: "Poids d'achat (incluant d\xE9chets/\xE9pluchures)",
|
|
526
1057
|
gross: "brut",
|
|
527
1058
|
intermediateResult: "R\xE9sultat interm\xE9diaire pour cette section",
|
|
@@ -529,15 +1060,34 @@ var fr3 = {
|
|
|
529
1060
|
estimatedSuffix: " (Estim\xE9)",
|
|
530
1061
|
missingMass: " (Manquant : ",
|
|
531
1062
|
someIngredients: "certains ingr\xE9dients",
|
|
1063
|
+
// La bulle d'une masse (le total de la barre, le badge d'une section).
|
|
1064
|
+
massTitle: "Masse des ingr\xE9dients, avant cuisson",
|
|
1065
|
+
massSectionTitle: "Masse des ingr\xE9dients de cette section, avant cuisson",
|
|
1066
|
+
massEstimated: "Estim\xE9e",
|
|
1067
|
+
massEstimatedDetail: "convertis avec une valeur moyenne",
|
|
1068
|
+
massIncomplete: "Incompl\xE8te",
|
|
1069
|
+
massIncompleteDetail: "masse inconnue",
|
|
1070
|
+
massMethodDensity: "densit\xE9 moyenne",
|
|
1071
|
+
massMethodUnitWeight: "poids moyen \xE0 l'unit\xE9",
|
|
1072
|
+
massIncompleteHint: "Indique leur poids en grammes, ou une densit\xE9 ou un poids \xE0 l'unit\xE9 dans densities: ou la base d'ingr\xE9dients",
|
|
532
1073
|
nutritionWholeRecipe: "Recette enti\xE8re",
|
|
533
1074
|
nutritionPerPortion: "Par portion",
|
|
534
1075
|
nutritionPer100g: "Pour 100 g",
|
|
535
1076
|
nutritionRawMassNote: "Sur {mass} d'ingr\xE9dients, avant cuisson",
|
|
536
1077
|
nutritionRawMassNotePartial: "Sur les {mass} renseign\xE9s, avant cuisson",
|
|
537
1078
|
incompleteData: "Donn\xE9es incompl\xE8tes",
|
|
1079
|
+
nutritionEstimated: "valeurs estim\xE9es",
|
|
1080
|
+
// The nutrition table of the HTML recipe: salt is shown in place of
|
|
1081
|
+
// sodium, and the reference intakes are the EU ones.
|
|
1082
|
+
nutritionSalt: "Sel",
|
|
1083
|
+
nutritionTableTitle: "Valeurs nutritionnelles",
|
|
1084
|
+
nutritionReferenceIntake: "%AR",
|
|
1085
|
+
nutritionReferenceIntakeNote: "Apport de r\xE9f\xE9rence pour un adulte type (8 400 kJ / 2 000 kcal)",
|
|
1086
|
+
nutritionNutrient: "Nutriment",
|
|
1087
|
+
nutritionWholeRecipeTotal: "Recette enti\xE8re : {kcal}",
|
|
538
1088
|
ofWhich: "dont",
|
|
539
1089
|
nutrients: {
|
|
540
|
-
calories: "
|
|
1090
|
+
calories: "\xC9nergie",
|
|
541
1091
|
fat: "Mati\xE8res grasses",
|
|
542
1092
|
sat_fat: "acides gras satur\xE9s",
|
|
543
1093
|
mono_fat: "acides gras mono-insatur\xE9s",
|
|
@@ -555,22 +1105,75 @@ var fr3 = {
|
|
|
555
1105
|
inputTab: "Entr\xE9e (.gram)",
|
|
556
1106
|
writePlaceholder: "\xC9crivez votre recette ici...",
|
|
557
1107
|
outputTab: "Sortie",
|
|
1108
|
+
// @remove-in: 2.0.0 [i18n-playground-view-labels]
|
|
558
1109
|
viewLabel: "Vue :",
|
|
1110
|
+
formatLabel: "Format",
|
|
559
1111
|
loadExample: "Charger un exemple...",
|
|
560
1112
|
recipe: "Recette",
|
|
561
|
-
|
|
1113
|
+
studioTitle: "R\xE9glages de la recette",
|
|
1114
|
+
settingsButton: "R\xE9glages",
|
|
1115
|
+
settingsHint: {
|
|
1116
|
+
text: "Ajuster les quantit\xE9s, planifier le service, personnaliser l'affichage\u2026 tout se passe dans les r\xE9glages.",
|
|
1117
|
+
dismiss: "Compris"
|
|
1118
|
+
},
|
|
1119
|
+
activeOptionsBadge: "{count} actifs",
|
|
1120
|
+
resetAll: "R\xE9initialiser tout",
|
|
1121
|
+
resetSection: "R\xE9initialiser",
|
|
1122
|
+
openScheduleSettings: "Ajuster la planification",
|
|
1123
|
+
scheduleButton: "Planifier",
|
|
1124
|
+
sections: {
|
|
1125
|
+
schedule: "Planification",
|
|
1126
|
+
scale: "Quantit\xE9s",
|
|
1127
|
+
bakersMath: "Pourcentages boulangers",
|
|
1128
|
+
display: "Affichage",
|
|
1129
|
+
physics: "Nutrition et masses",
|
|
1130
|
+
stock: "Bases en stock"
|
|
1131
|
+
},
|
|
1132
|
+
badges: {
|
|
1133
|
+
default: "Par d\xE9faut",
|
|
1134
|
+
active: "Actif",
|
|
1135
|
+
inactive: "Inactif",
|
|
1136
|
+
standardized: "Standardis\xE9",
|
|
1137
|
+
nutritionActive: "Nutrition active",
|
|
1138
|
+
byIngredient: "Par ingr\xE9dient",
|
|
1139
|
+
inStock: "{count} en stock",
|
|
1140
|
+
serveAt: "Service \xE0 {time}",
|
|
1141
|
+
customHours: "Horaires personnalis\xE9s"
|
|
1142
|
+
},
|
|
1143
|
+
a11y: {
|
|
1144
|
+
closeDrawer: "Fermer le panneau des r\xE9glages"
|
|
1145
|
+
},
|
|
562
1146
|
examples: {
|
|
563
1147
|
newRecipe: "Vide (Nouvelle recette)",
|
|
564
1148
|
canneles: "Cannel\xE9s Bordelais",
|
|
565
1149
|
empanadas: "Empanadas de Boeuf"
|
|
566
1150
|
},
|
|
567
1151
|
views: {
|
|
1152
|
+
// @remove-in: 2.0.0 [i18n-playground-view-labels]
|
|
568
1153
|
json: "Sortie JSON",
|
|
569
1154
|
ast: "AST (Brut)",
|
|
570
1155
|
jsonTree: "Arbre Interactif",
|
|
571
1156
|
markdown: "Markdown",
|
|
572
1157
|
preview: "Aper\xE7u (HTML)",
|
|
573
|
-
|
|
1158
|
+
runSheet: "Plan de marche",
|
|
1159
|
+
serveWhenTitle: "Quand servir ?",
|
|
1160
|
+
serveWhenNone: "Aucune heure de service ne convient dans les sept prochains jours.",
|
|
1161
|
+
serveWhenWhyNot: "Pourquoi pas les autres ?",
|
|
1162
|
+
earliestTitle: "Pr\xEAt d\xE8s",
|
|
1163
|
+
earliestNone: "Rien ne convient dans les 14 prochains jours.",
|
|
1164
|
+
earliestUse: "Servir \xE0 ce moment",
|
|
1165
|
+
planSummary: "Plan",
|
|
1166
|
+
planServeAt: "Heure de service",
|
|
1167
|
+
planTimeZone: "Fuseau horaire",
|
|
1168
|
+
planAvailability: "Disponibilit\xE9 quotidienne",
|
|
1169
|
+
planSpecificHours: "Horaires sp\xE9cifiques par jour",
|
|
1170
|
+
planDayUnavailable: "Indisponible",
|
|
1171
|
+
serveAtClear: "Effacer",
|
|
1172
|
+
serveAtClearTitle: "Effacer la date de service",
|
|
1173
|
+
serveOtherSlots: "Autres cr\xE9neaux",
|
|
1174
|
+
planClear: "Effacer le plan",
|
|
1175
|
+
planInvalid: "Ce plan est impossible \xE0 faire : {message}",
|
|
1176
|
+
// @remove-in: 2.0.0 [i18n-gantt-keys]
|
|
574
1177
|
gantt_active: "T\xE2che active",
|
|
575
1178
|
gantt_passive: "T\xE2che de fond",
|
|
576
1179
|
gantt_compact: "Vue compacte",
|
|
@@ -590,6 +1193,7 @@ var fr3 = {
|
|
|
590
1193
|
},
|
|
591
1194
|
options: {
|
|
592
1195
|
scaleTitle: "Modifier les quantit\xE9s",
|
|
1196
|
+
scalePortions: "Portions",
|
|
593
1197
|
scaleGlobal: "Au global",
|
|
594
1198
|
scaleByIngredient: "Par ingr\xE9dient",
|
|
595
1199
|
selectIngredient: "S\xE9lectionner un ingr\xE9dient...",
|
|
@@ -600,6 +1204,13 @@ var fr3 = {
|
|
|
600
1204
|
enableBakersMath: "Activer le pourcentage du boulanger",
|
|
601
1205
|
bakersMathDesc: "Affiche les ingr\xE9dients en % de la r\xE9f\xE9rence.",
|
|
602
1206
|
hideAbsolute: "Masquer les poids absolus",
|
|
1207
|
+
showComments: "Afficher les commentaires",
|
|
1208
|
+
commentsDesc: "Les notes de la recette (// comme ceci), dans la recette et dans le plan de marche.",
|
|
1209
|
+
showStepQuantities: "Quantit\xE9s dans les \xE9tapes",
|
|
1210
|
+
stepQuantitiesDesc: "\xC9crit la quantit\xE9 de chaque ingr\xE9dient dans le texte des \xE9tapes, juste apr\xE8s son nom.",
|
|
1211
|
+
nutritionBasis: "Base nutritionnelle",
|
|
1212
|
+
nutritionBasisAuto: "Automatique (toutes les bases c\xF4te \xE0 c\xF4te)",
|
|
1213
|
+
rejectedSlots: "Cr\xE9neaux non retenus :",
|
|
603
1214
|
forceReference: "Forcer la r\xE9f\xE9rence :",
|
|
604
1215
|
autoDetect: "Auto (d\xE9tecte @*)",
|
|
605
1216
|
physicalAnalysis: "Analyse physique",
|
|
@@ -610,8 +1221,35 @@ var fr3 = {
|
|
|
610
1221
|
stockTitle: "En stock (masquer les \xE9tapes)",
|
|
611
1222
|
stockDesc: "Consid\xE9r\xE9 comme d\xE9j\xE0 disponible \u2014 se r\xE9duit \xE0 une ligne d'achat, sans \xE9tapes sur la frise."
|
|
612
1223
|
},
|
|
1224
|
+
help: {
|
|
1225
|
+
schedule: "D\xE9termine \xE0 quel moment pr\xE9parer et peser les ingr\xE9dients dans le plan de marche : au fur et \xE0 mesure de chaque section, regroup\xE9 tout au d\xE9but de la recette, ou au d\xE9marrage de chaque journ\xE9e de travail.",
|
|
1226
|
+
rests: "D\xE9termine la dur\xE9e retenue pour les \xE9tapes qui acceptent une plage de temps (ex. 2h \xE0 12h) : la dur\xE9e minimale requise, la dur\xE9e maximale autoris\xE9e, ou une valeur m\xE9diane \xE9quilibr\xE9e.",
|
|
1227
|
+
serveAt: "Date et heure souhait\xE9es du repas. Le plan de marche est calcul\xE9 \xE0 rebours \xE0 partir de cette \xE9ch\xE9ance pour vous indiquer quand d\xE9marrer et \xEAtre pr\xEAt pile \xE0 l'heure.",
|
|
1228
|
+
serveSuggestions: "Horaires recommand\xE9s pour passer \xE0 table. Gram explore les plages de repos et vos disponibilit\xE9s pour vous proposer des cr\xE9neaux r\xE9alistes sans action nocturne.",
|
|
1229
|
+
timeZone: "D\xE9finit le fuseau horaire utilis\xE9 pour afficher les heures exactes sur le plan de marche et g\xE9rer correctement les passages de journ\xE9e.",
|
|
1230
|
+
availability: "Vos horaires de disponibilit\xE9 en cuisine. Le plan de marche s'organise pour que vous n'ayez rien \xE0 faire en dehors de cette plage (la nuit par exemple).",
|
|
1231
|
+
scalePortions: "Indique le nombre de portions voulu : toutes les quantit\xE9s suivent. C'est l'\xE9chelle globale, compt\xE9e en portions.",
|
|
1232
|
+
scaleGlobal: "Ajuste les quantit\xE9s de tous les ingr\xE9dients et le nombre de portions selon le pourcentage indiqu\xE9 (ex. 200 % pour doubler, 50 % pour diviser par deux).",
|
|
1233
|
+
scaleByIngredient: "Recalcule proportionnellement toute la recette pour l'ajuster \xE0 la quantit\xE9 exacte dont vous disposez pour un ingr\xE9dient donn\xE9 (ex. seulement 3 \u0153ufs ou 250 g de beurre).",
|
|
1234
|
+
bakersMath: "Exprime chaque ingr\xE9dient en pourcentage d'un ingr\xE9dient de base fix\xE9 \xE0 100 % (par d\xE9faut la farine, ou l'ingr\xE9dient de votre choix), facilitant l'\xE9valuation des \xE9quilibres et des ratios.",
|
|
1235
|
+
comments: "Affiche ou masque les commentaires \xE9crits dans la recette avec // : les notes seules sur une ligne et celles en fin de ligne. Dans le plan de marche, ils sont mis \xE0 part, discr\xE8tement.",
|
|
1236
|
+
stepQuantities: "Rappelle chaque quantit\xE9 dans l'\xE9tape qui l'utilise, avec son poids en grammes si les masses sont standardis\xE9es. D\xE9cochez pour des \xE9tapes plus courtes : les quantit\xE9s restent dans les listes d'ingr\xE9dients.",
|
|
1237
|
+
nutritionBasis: "La base du panneau nutritionnel, quand la nutrition est estim\xE9e. En automatique, pour 100 g et par portion c\xF4te \xE0 c\xF4te, la recette enti\xE8re en dessous, dans tous les formats de la recette.",
|
|
1238
|
+
bakersMathOnly: "Masque les poids en grammes pour n'afficher que les pourcentages relatifs, transformant la recette en une formule de proportions pure.",
|
|
1239
|
+
bakersReference: "Choisit manuellement l'ingr\xE9dient qui sert de base \xE0 100 %, \xE0 la place de la d\xE9tection automatique de l'ingr\xE9dient annot\xE9 @* dans la recette.",
|
|
1240
|
+
massStandardization: "Convertit les mesures de volume (cuill\xE8res, tasses, ml) en grammes selon les densit\xE9s renseign\xE9es en base.",
|
|
1241
|
+
yieldManagement: "Calcule le poids brut \xE0 acheter pour obtenir la quantit\xE9 nette voulue, en tenant compte des pertes \xE0 l'\xE9pluchage ou au parage renseign\xE9es en base.",
|
|
1242
|
+
nutrition: "Estime les calories et les macronutriments (prot\xE9ines, glucides, lipides, fibres) par portion ou pour 100 g via les tables de composition en base.",
|
|
1243
|
+
scheduleNote: "Ces r\xE9glages servent surtout au plan de marche. Dans la recette, seuls le temps total et le temps d'attente changent.",
|
|
1244
|
+
scheduleNoteLink: "Voir le plan de marche",
|
|
1245
|
+
physicsDisclaimer: "Dans ce playground, les calculs physiques et nutritionnels reposent sur une base restreinte aux recettes d'exemple.",
|
|
1246
|
+
stockItem: "D\xE9clare cette pr\xE9paration import\xE9e comme d\xE9j\xE0 pr\xEAte dans votre cuisine. Ses \xE9tapes de fabrication sont masqu\xE9es du plan de marche pour ne garder que son utilisation finale."
|
|
1247
|
+
},
|
|
613
1248
|
output: {
|
|
614
1249
|
copy: "Copier dans le presse-papier",
|
|
1250
|
+
print: "Imprimer cette vue",
|
|
1251
|
+
views: "Vues",
|
|
1252
|
+
inspect: "Inspecter",
|
|
615
1253
|
loading: "Chargement du lecteur..."
|
|
616
1254
|
},
|
|
617
1255
|
warnings: {
|
|
@@ -628,8 +1266,8 @@ var fr3 = {
|
|
|
628
1266
|
collapseConsole: "R\xE9duire la console"
|
|
629
1267
|
},
|
|
630
1268
|
errorState: {
|
|
631
|
-
title:
|
|
632
|
-
blockingDescription:
|
|
1269
|
+
title: VIEWS_PAUSED2.title,
|
|
1270
|
+
blockingDescription: VIEWS_PAUSED2.description,
|
|
633
1271
|
jumpToError: "Aller \xE0 l'erreur",
|
|
634
1272
|
line: "Ligne"
|
|
635
1273
|
},
|
|
@@ -647,6 +1285,8 @@ var fr3 = {
|
|
|
647
1285
|
editor: "\xC9diteur",
|
|
648
1286
|
preview: "Aper\xE7u"
|
|
649
1287
|
},
|
|
1288
|
+
fullscreen: "Plein \xE9cran",
|
|
1289
|
+
exitFullscreen: "Quitter le plein \xE9cran",
|
|
650
1290
|
analysisOptions: "Options d'Analyse",
|
|
651
1291
|
analysis: "Analyse",
|
|
652
1292
|
massNorm: "Standardisation des Masses",
|
|
@@ -668,6 +1308,14 @@ function getDictionary(lang) {
|
|
|
668
1308
|
const code = (parts[0] || "en").toLowerCase();
|
|
669
1309
|
return dictionaries[code] || en3;
|
|
670
1310
|
}
|
|
1311
|
+
|
|
1312
|
+
// src/template.ts
|
|
1313
|
+
function fillTemplate(template, values) {
|
|
1314
|
+
return template.replace(
|
|
1315
|
+
/\{(\w+)\}/g,
|
|
1316
|
+
(whole, key) => Object.hasOwn(values, key) ? values[key] : whole
|
|
1317
|
+
);
|
|
1318
|
+
}
|
|
671
1319
|
export {
|
|
672
1320
|
CATEGORY_KEYS,
|
|
673
1321
|
TIME_BY_LANG,
|
|
@@ -678,14 +1326,25 @@ export {
|
|
|
678
1326
|
UNIT_CONVERSIONS,
|
|
679
1327
|
UNIT_DICTIONARIES,
|
|
680
1328
|
UNIT_GLOBAL,
|
|
1329
|
+
commonFraction,
|
|
681
1330
|
compileDictionary,
|
|
1331
|
+
decimalSeparator,
|
|
1332
|
+
fillTemplate,
|
|
1333
|
+
formatNumber,
|
|
682
1334
|
getAiLanguageInstruction,
|
|
683
1335
|
getCategoryLabels,
|
|
684
1336
|
getDefaultCategories,
|
|
685
1337
|
getDictionary,
|
|
686
1338
|
isCategoryKey,
|
|
687
1339
|
isCoarseUnit,
|
|
1340
|
+
isFractionUnit,
|
|
1341
|
+
isMeasureUnit,
|
|
1342
|
+
isMetricMassUnit,
|
|
1343
|
+
localizeDecimals,
|
|
688
1344
|
normalizeUnit,
|
|
689
1345
|
resolveTimeUnit,
|
|
1346
|
+
toKitchenFraction,
|
|
1347
|
+
toLargerMetricUnit,
|
|
1348
|
+
unitContainsQuantity,
|
|
690
1349
|
unitKey
|
|
691
1350
|
};
|