搜尋套件、儲存庫與 APP 分類

GitHub 儲存庫lyrebird-app/launcher

啟動器

用 Dart 編寫的 Lyrebird CLI 啟動應用程式

啟動器 專案封面
星標
13
分支
1
最近推送(UTC)
2023年2月7日
專案狀態
未封存

原始 README

以下為英文專案原文快照,最新內容請造訪 GitHub。


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
Lyrebird GitHub avatar
GitHub 作者

Lyrebird ↗

The best tool for Dart & Flutter localizations.

語言C++CMakeDartHTMLCSwiftKotlinObjective-C

分類

此儲存庫發佈的套件

使用的依賴

依賴清單 7 項

如何選擇適合專案的儲存庫?

先依使用情境篩選,再比較專案活躍情況,最後到原始儲存庫確認使用要求。

  1. 透過儲存庫名稱、作者或描述搜尋,再依技術分類縮小範圍。
  2. 綜合星標、分支與最近推送比較專案;星標反映社群關注,不保證品質。
  3. 使用前在 GitHub 確認 README、授權條款與 Issues。

來源與維護

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗