搜索插件、代码仓与 APP 分类

插件详情v0.5.0+1

lyrebird

用于与 intl 包一起使用的应用程序资源包本地化文件的可视化编辑器。

macOSWindowsLinux
近 30 天下载
31
喜欢数
45
Pub 分数
150

安装插件

flutter pub add lyrebird

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

Lyrebird 是一个可视化编辑器,专为管理 Flutter 应用程序中与 intl 包一起使用的本地化资源包而设计。它提供了一个直观的界面,用于编辑、组织和维护多语言的翻译文件,无需手动处理 .arb 文件。该工具支持与 Flutter 开发工作流程无缝集成,并可在 macOS、Windows 和 Linux 上使用。开发者可以高效地协作翻译,实时预览更改,并确保不同语言版本之间的一致性。

适合场景

  • 可视化编辑 ARB 文件
  • 管理多语言翻译
  • 协作本地化内容
  • 与 intl 包工作流程集成
  • 预览上下文中的翻译

主要特点

  • ARB 文件编辑的图形用户界面
  • 实时翻译预览
  • 多平台支持
  • 与 intl 包约定同步
  • 导出和导入翻译包

适合对象

  • 使用 intl 包的 Flutter 开发人员
  • 管理大规模本地化的团队
  • 本地化专家
  • 跨平台应用程序开发者

使用建议

  • 需要手动设置 intl 包
  • 限制为 ARB 文件格式
  • 无云协作功能
  • 仅限桌面的应用程序
  • 不是翻译服务的替代品

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。


Lyrebird - Localization tool for Dart and Flutter

Website · Documentation · GitHub · pub.dev


A visual editor for Application Resource Bundle (.arb) localization files, enabling rapid development. It is specifically designed to be used for Dart and Flutter projects using the intl package.

The editor runs locally on your machine, meaning you can use familiar versioning tools like Git and do not have to upload or download localization files.

Warning: This project is very early in development, use with extreme caution! Make sure you have all important changes committed before trying it out.


Lyrebird editor screenshot


Contents

Features

Supported
  • Add and remove localization keys
  • Edit a localization keys' metadata
  • Add, edit, and remove placeholder variables
  • Edit the ICU value of a localization entry using a visual editor
    • Text blocks
    • Arguments
    • Select with branches
    • Plural with branches
      • Plural arguments
Planned
  • Proper error handling
  • A "try it out" section to test your localizations
  • Creating new files
  • Dark theme
  • Support for XML tags
  • Collapsable nodes
  • Textual ICU editor
  • A subscription service for automated machine translations (e.g. using DeepL)

Installation

To install the Lyrebird launcher, run the command:

dart pub global activate lyrebird

Or, if you are using the Flutter CLI, run:

flutter pub global activate lyrebird

Optionally, you can add Lyrebird to your PATH variable. Consult the Dart documentation for more information.

Configuration

Lyrebird uses the l10n.yaml configuration file defined by the Flutter team and obeyed by the flutter gen-l10n command as its project file. More specifically, the arb-dir field will be opened by Lyrebird for editing.

arb-dir: lib/l10n
template-arb-file: app_en.arb
output-localization-file: app_localizations.dart

If you are working on a pure-Dart project, don't worry! You can also create an l10n.yaml file without using Flutter.

Usage

Navigate to the directory containing the l10n.yaml file in your terminal. If you added Lyrebird to your PATH in the previous step, simply run

lyrebird

Otherwise, with the Dart CLI, run:

dart pub global run lyrebird

Or, using the Flutter CLI, run:

flutter pub global run lyrebird

Open the URL printed to the standard output in your browser. Use Ctrl+S (or Cmd+S on a Mac) to save your changes.

For more options, see

lyrebird --help

所属分类

依赖

依赖清单 6 项

源码仓库

使用此插件的项目

暂无相关数据。