Skip to content

pawelsa/Flutter-Arb-Action

Repository files navigation

Flutter Arb Action

Plugin for IntelliJ-based IDEs (Android Studio).

Table of contents

Core features

  • Detects arb file based on l10n.yaml file
  • Moves strings to arb file
  • Supports interpolated string
  • Simple completion system based on currently entered keys in arb file
  • Sorts arb file
  • Compatibility

    IntelliJ IDEA, Android Studio

    Install

    Or you could install it inside your IDE:

    For Windows & Linux - File > Settings > Plugins > Marketplace > Search for "Flutter_arb_action" > Install Plugin > Restart IntelliJ IDEA

    For Mac - IntelliJ IDEA > Preferences > Plugins > Marketplace > Search for "Flutter_arb_action" > Install Plugin > Restart IntelliJ IDEA

    Screenshots

    Extension

    import 'package:example/locale/app_localizations.dart';
    import 'package:flutter/material.dart';
    
    extension ContextExtension on BuildContext {
      AppLocalizations get text => AppLocalizations.of(this)!;
    }

    Configuration (l10n.yaml)

    arb-dir: lib/locale
    template-arb-file: intl_en.arb
    output-localization-file: app_localizations.dart
    synthetic-package: false
    extension-import-path: package:example/core/extensions/context_extensions.dart
    extension-name: text

    Quick Fixes for String

    quick_fixes

    Move to arb dialog

    dialog

    dialog_completion

    Results

    dart_file

    dart_file

    About

    Intellij Flutter plugin that adds intention that moves string text from build methods to arb files

    Resources

    Stars

    Watchers

    Forks

    Packages

    No packages published

    Contributors 2

    •  
    •