|
1 day ago | |
---|---|---|
android | 5 days ago | |
assets | 4 days ago | |
integration_test | 1 week ago | |
ios | 3 months ago | |
lib | 4 days ago | |
linux | 3 weeks ago | |
test | 5 days ago | |
test_driver | 3 weeks ago | |
windows | 2 weeks ago | |
.drone.yml | 1 day ago | |
.gitignore | 5 days ago | |
.metadata | 3 months ago | |
ARCH.md | 2 months ago | |
README.md | 2 weeks ago | |
SPEC.md | 2 weeks ago | |
l10n.yaml | 1 month ago | |
pubspec.lock | 1 week ago | |
pubspec.yaml | 5 days ago | |
regenerate_opaque_theme.sh | 2 months ago |
A new Flutter application.
click the play button in android studio
make linux
, libCwtch.so
should be in the link pathtor
should be in the PATHmake windows
, libCwtch.dll
should be placed in the source rootwindors/Tor
Strings are managed directly from our Lokalise(url?) project. Keys should be valid Dart variable names in lowerCamelCase. After adding a new key and providing/obtaining translations for it, follow the next step to update your local copy.
Only Open Privacy staff members can update translations automatically:
flutter pub run flutter_lokalise download -v --api-token "<X>" --project-id "<Y>"
This will download a bundle of translations from Lokalise and convert it to resource files in lib/l10n/intl_*.arb
.
The next time Flwtch is built, Flutter will notice the changes and update app_localizations.dart
accordingly (thanks to generate:true
in pubspec.yaml
).
Any widget underneath the main MaterialApp should be able to:
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
and then use:
Text(AppLocalizations.of(context).stringIdentifer),
API tokens are only available to Open Privacy staff at this time, who will perform the translation updates for you as part of merging your PRs.
With generate: true
in pubspec.yaml
, the Flutter build process checks l10n.yaml
for input/output filenames.