搜尋套件、儲存庫與 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 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。