-
Notifications
You must be signed in to change notification settings - Fork 332
Open
Labels
Milestone
Description
It would be really nice to have support for the new internationalization process documented there.
I tried to use the Flutter Intl plugin for IntelliJ but it creates ARB files in a completely different location and it simply ignores the configuration in l10n.yaml
. The most useful part of this plugin that I would love to see replicated in the native Flutter plugin is an intention action that lets me add an entry to my ARB files from a dart file, similar to what "Internationalize" does in Java for example.
It would:
- open a dialog that lets me specify a description for my messsage, as well as a key
- detect if there are any placeholders in the string I want to internationalize and let me select their type and specify an example
- if type is DateTime, int or double, let me choose a format and specify potential parameters
- replace the raw string in my dart file with
AppLocalizations.of(context).key(args)
, taking the configuration inl10n.yaml
into account - add the
app_localizations.dart
import if it's missing
Additionally, if it contained an ARB editor that lets me see translations in a table instead of having to open all my ARB files side by side, that would be perfect (similar to the translation editor for Android native projects).
maxlobanov, HansMuller, Zazo032, KlausJokisuo, benkenewbie and 7 more