i18n_ui 0.2.126

Terminal UI for translation progress with interactive concurrent panels and line-by-line fallback
Documentation
#![cfg_attr(docsrs, feature(doc_cfg))]

//! Terminal UI for i18n translation progress.
//!
//! - Interactive mode: a two-line ratatui inline scan viewport (files checked / found, Ctrl+C
//!   hint) that never takes over the screen, keeps the cursor hidden, and scrolls log lines above
//!   itself; then a ratatui elastic alternate-screen board (live token pool matrix,
//!   active translation stream with smart folding, and global footer with concurrency and token totals);
//!   finished and failed tasks scroll into terminal history.
//! - Non-interactive mode (CI, pipes, Node bindings): line-by-line stderr output, no color.
//!
//! Interruption is not wired to a signal inside this crate: the caller forwards its platform signal
//! to [`Ui::interrupt`], keeping the library independent of any async runtime.

mod board;
mod event;
mod i18n;
mod interrupt;
mod job;
mod plain;
mod text;
mod tty;
mod ui;

pub use event::{PoolStat, SlotMeta, SlotRow, SlotState};
pub use interrupt::Interrupt;
pub use job::{Job, Reply, Retry};
pub use ui::{Mode, Ui};

/// Emit a note immediately, with the same format as non-interactive mode
///
/// Used for messages before the UI starts (e.g. auto-generated config); bypasses the render thread and produces no summary.
pub fn note(text: &str) {
  plain::note(text);
}