From 3a8333c7e05a1a6755fd96e4711650d6c9b92fd7 Mon Sep 17 00:00:00 2001 From: Moritz Date: Thu, 14 Dec 2023 13:32:06 +0100 Subject: [PATCH] Add readme --- pkgs/sketch_pad/README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/sketch_pad/README.md b/pkgs/sketch_pad/README.md index 8069f3ef0..d9ea1cf11 100644 --- a/pkgs/sketch_pad/README.md +++ b/pkgs/sketch_pad/README.md @@ -23,4 +23,9 @@ We pass the `--disable-web-security` flag to Chrome as we're not able to configure the `flutter run` web server to pass CORS headers for `AssetManifest.json`, `FontManifest.json`, and other resources. -## Regenerating message files +## Localization + +To add a new locale: +* Copy and rename `de.arb`, and add the translated strings. Use the descriptions in `en.arb` as a reference. +* Add the locale to the `supportedLocales` in `main.dart`. +* Run `dart run build_runner build -d` to regenerate the calling code. \ No newline at end of file