From 5e2d5944fe612ce4764cf757f274f84da73ca700 Mon Sep 17 00:00:00 2001 From: Marco Date: Tue, 10 Dec 2024 22:37:13 +0100 Subject: [PATCH] Localize app for German and English --- l10n.yaml | 3 +++ lib/l10n/app_de.arb | 13 +++++++++++++ lib/l10n/app_en.arb | 13 +++++++++++++ metadata/en-US/full_description.txt | 2 ++ metadata/en-US/short_description.txt | 1 + metadata/en-US/title.txt | 1 + 6 files changed, 33 insertions(+) create mode 100644 l10n.yaml create mode 100644 lib/l10n/app_de.arb create mode 100644 lib/l10n/app_en.arb create mode 100644 metadata/en-US/full_description.txt create mode 100644 metadata/en-US/short_description.txt create mode 100644 metadata/en-US/title.txt diff --git a/l10n.yaml b/l10n.yaml new file mode 100644 index 0000000..15338f2 --- /dev/null +++ b/l10n.yaml @@ -0,0 +1,3 @@ +arb-dir: lib/l10n +template-arb-file: app_en.arb +output-localization-file: app_localizations.dart diff --git a/lib/l10n/app_de.arb b/lib/l10n/app_de.arb new file mode 100644 index 0000000..fb7e989 --- /dev/null +++ b/lib/l10n/app_de.arb @@ -0,0 +1,13 @@ +{ + "ok": "OK", + "name": "Name", + "amount": "Menge in 100 g/ml", + "kcalper": "kcal pro Menge", + "kcalToday": "kcal heute", + "menu": "Menü", + "settings": "Einstellungen", + "yourSettings": "Deine persönlichen Einstellungen", + "dayLimit": "Kalorienlimit pro Tag", + "errAmountNotANumber": "Menge muss eine Zahl sein", + "errKcalNotANumber": "kcal muss eine Zahl sein" +} diff --git a/lib/l10n/app_en.arb b/lib/l10n/app_en.arb new file mode 100644 index 0000000..c92ea54 --- /dev/null +++ b/lib/l10n/app_en.arb @@ -0,0 +1,13 @@ +{ + "ok": "OK", + "name": "Name", + "amount": "Amount in 100 grams/ml", + "kcalper": "kcal per amount", + "kcalToday": "kcal today", + "menu": "Menu", + "settings": "Settings", + "yourSettings": "Your personal settings", + "dayLimit": "Calorie limit per day", + "errAmountNotANumber": "Amount must be a number", + "errKcalNotANumber": "kcal must be a number" +} diff --git a/metadata/en-US/full_description.txt b/metadata/en-US/full_description.txt new file mode 100644 index 0000000..891b3ca --- /dev/null +++ b/metadata/en-US/full_description.txt @@ -0,0 +1,2 @@ +With Calorimeter you can track your daily calorie intake. +As simple as it gets. diff --git a/metadata/en-US/short_description.txt b/metadata/en-US/short_description.txt new file mode 100644 index 0000000..101463d --- /dev/null +++ b/metadata/en-US/short_description.txt @@ -0,0 +1 @@ +Track your calories! diff --git a/metadata/en-US/title.txt b/metadata/en-US/title.txt new file mode 100644 index 0000000..8be7ad7 --- /dev/null +++ b/metadata/en-US/title.txt @@ -0,0 +1 @@ +Calorimeter