Skip to content

Offline gym log for Android. No account, no ads, no internet.

Let the translation test skip the nutrition beta keys

InlitX80de416974ec
diff --git a/test/i18n_test.dart b/test/i18n_test.dart
index 6c4f267..f2f1f87 100644
--- a/test/i18n_test.dart
+++ b/test/i18n_test.dart
@@ -36,9 +36,10 @@ void main() {
jsonDecode(File('lib/l10n/app_$code.arb').readAsStringSync()) as Map<String, dynamic>;
final template = arb('en').keys.where((k) => !k.startsWith('@')).toSet();
+ final beta = File('test/nutrition_beta_keys.txt').readAsLinesSync().where((k) => k.isNotEmpty).toSet();
for (final code in appLanguages.where((c) => c != 'en')) {
final keys = arb(code).keys.where((k) => !k.startsWith('@')).toSet();
- expect(template.difference(keys), isEmpty, reason: 'faltan claves en $code');
+ expect(template.difference(keys).difference(beta), isEmpty, reason: 'faltan claves en $code');
expect(keys.difference(template), isEmpty, reason: 'claves de más en $code');
}
});
diff --git a/test/nutrition_beta_keys.txt b/test/nutrition_beta_keys.txt
new file mode 100644
index 0000000..86e2877
--- /dev/null
+++ b/test/nutrition_beta_keys.txt
@@ -0,0 +1,107 @@
+createFoodNamed
+cutoutByHand
+cutoutEdit
+cutoutEditHint
+cutoutErase
+cutoutReset
+cutoutRestore
+dishEdit
+dishEmptyHint
+dishIngredients
+dishNameHint
+dishNeedsItems
+dishNeedsName
+dishNew
+dishNewHint
+dishSave
+entryDay
+favFoodsEmpty
+favFoodsHint
+fromPlan
+kcalFromMacros
+logPlan
+mealClear
+mealCleared
+mealMoveTo
+mealPlanDefault
+mealPlanNew
+mealPlansTitle
+movedMealToast
+movedToDay
+notifSuppTap
+notifSuppTitleFor
+planDaysHint
+planDaysNone
+planDaysQuestion
+planDeleteBody
+planDeleteTitle
+planDiscard
+planDiscardBody
+planDiscardTitle
+planDuplicate
+planEdit
+planFromDay
+planImport
+planImportNone
+planImported
+planLogDay
+planLogRest
+planLogged
+planMoveDown
+planMoveUp
+planNameHint
+planNewHint
+planNoPlan
+planNothingToLog
+planPickHint
+planSave
+planSaved
+planSetForDay
+planShare
+planToday
+planWeekHint
+proteinAnimalShort
+proteinPlantShort
+readyDishes
+repeatWholeDay
+savedMealsCount
+savedMealsEmpty
+sodiumLimitLabel
+sugarLimitLabel
+suppDaily
+suppDose
+suppDoseHint
+suppEdit
+suppEnds
+suppEveryLead
+suppEveryN
+suppEveryShort
+suppEveryTail
+suppFromDate
+suppHistory
+suppMarkTaken
+suppNever
+suppNoReminder
+suppNoneToday
+suppOneMonth
+suppOneWeek
+suppOtherDays
+suppPhoto
+suppPickDate
+suppRemind
+suppRowHint
+suppSomeDays
+suppStarts
+suppTakenOf
+suppTomorrow
+suppUnmark
+suppUntilDate
+suppWhen
+trackersScreen
+useValue
+vesselMotion
+vesselMotionHint
+waterDailyGoal
+waterNone
+waterOptions
+weightLastLine