-
Notifications
You must be signed in to change notification settings - Fork 668
docs: create a Lingo.dev CLI integration guide for Flutter #1514
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
docs: create a Lingo.dev CLI integration guide for Flutter #1514
Conversation
|
Hi 👋 Thanks for the submission. I'll follow this guide shortly and let you know if I have any feedback. 😄 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds a comprehensive Flutter CLI integration guide to help Flutter developers integrate Lingo.dev CLI for AI-powered translations using ARB (Application Resource Bundle) files.
Key changes:
- Complete step-by-step setup guide for Flutter localization with Lingo.dev
- Code examples for ARB files, configuration files, and Dart implementation
- Testing instructions and known limitations section
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| ), | ||
| const SizedBox(height: 20), | ||
| Text( | ||
| localizations.greeting('Flutter'), |
Copilot
AI
Nov 12, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] The example code passes 'Flutter' as a hardcoded string to the greeting method, but the ARB file defines the placeholder parameter as 'name'. For clarity in documentation, consider using a more obvious user name like 'John' (which matches the example in the ARB file at line 76) or 'User' to better illustrate that this is meant to be a dynamic value representing a person's name.
| localizations.greeting('Flutter'), | |
| localizations.greeting('John'), |
|
|
||
| ## Known limitations | ||
|
|
||
| - The locale codes that Flutter supports aren't guaranteed to match the locale codes that Lingo.dev supports. Flutter uses language codes like `en`, `es`, `fr`, while some locales may require country codes like `zh_CN` or `pt_BR`. |
Copilot
AI
Nov 12, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The explanation about locale code mismatches could be clearer. The statement implies Flutter uses simple language codes while 'some locales' need country codes, but Flutter actually supports both formats (e.g., Locale('zh', 'CN') and Locale('en')). Consider revising to clarify that both systems support language-only and language-country codes, but the specific supported locale codes may differ between the two platforms.
| - The locale codes that Flutter supports aren't guaranteed to match the locale codes that Lingo.dev supports. Flutter uses language codes like `en`, `es`, `fr`, while some locales may require country codes like `zh_CN` or `pt_BR`. | |
| - The locale codes supported by Flutter and Lingo.dev may not always match exactly. Both systems support language-only codes (like `en`, `es`, `fr`) and language-country codes (like `zh_CN`, `pt_BR`). However, the specific set of supported locale codes can differ between the two platforms, so you may need to adjust your locale configuration to ensure compatibility. |
What
This PR adds a comprehensive Flutter CLI integration guide following the structure and content of existing framework guides.
Why
Closes #1340
Flutter developers need a step-by-step guide to integrate Lingo.dev CLI with their Flutter applications using ARB (Application Resource Bundle) files.
How
The guide covers:
flutterbucket typeflutter runTesting