Logo
Explore Help
Register Sign In
akiba/BadNote
1
0
Fork 0
You've already forked BadNote
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
875dabcd893de1443cd2da10ad2131ba17d09b67
BadNote/l10n.yaml

8 lines
312 B
YAML
Raw Normal View History

feat(i18n): add English + Chinese localization The app had zero localization ("软件多语言做了吗" — no). Add Flutter's official gen-l10n pipeline and localize the core flow the user sees. - pubspec: flutter_localizations + intl + generate: true - l10n.yaml + lib/l10n/app_en.arb + app_zh.arb (37 strings) - main.dart: localizationsDelegates + supportedLocales (follows OS locale) - pen editor: all tool tooltips, page pill, error states localized - home: app bar actions + empty-state buttons localized Proven end-to-end: l10n_test pumps the same widget under Locale('en') and Locale('zh') and asserts English vs Chinese strings resolve. flutter analyze: 0 issues. l10n_test: 3/3 pass. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-23 09:35:26 +08:00
# Flutter gen-l10n config. Generates AppLocalizations from the ARB files in
# lib/l10n. `flutter pub get` / build runs the generator (pubspec `generate: true`).
arb-dir: lib/l10n
template-arb-file: app_en.arb
output-localization-file: app_localizations.dart
output-class: AppLocalizations
nullable-getter: false
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.5 Page: 39ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API