Skip to content

Translation Workflow

Sky Blu edited this page Jan 25, 2022 · 11 revisions

Create new keys (Developer)

  1. Open lib/l10n/app_en.arb.
  2. Add a new key. For example (and see more examples):
"helloWorld": "Hello, world!"
  1. Rebuild or restart the app (to regenerate files in .dart_tool/flutter_gen/gen_l10n/).
  • IMPORTANT: use Debug Anyway to ignore errors and force file regeneration
  1. Use the new key in code. For example:
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
..
final localization = AppLocalizations.of(context)!;
..
title: localization.helloWorld,
  1. Make and merge a PR against master.
  2. Merge master into weblate to automatically update the Weblate repo.

Translate (Translator)

  1. Go to https://translate.hypha.earth/projects/seeds-light-wallet/flutter-app/.
  2. Click Language > Translate.
  3. Translate strings.

Merge in translations (Developer)

  1. Weblate will periodically push changes to the weblate branch.
  2. Periodically create a PR from the Weblate push branch against master.