Module utils

Module utils 

Source
Expand description

Utility functions shared across CLI commands.

Modules§

ui

Functions§

count_ftl_resources
Counts the number of FTL resources (message keys) for a specific crate.
discover_crates
Discovers all crates in a workspace (or single crate) that have i18n.toml. This is a convenience wrapper around discover_workspace that returns just the crates.
discover_workspace
Discovers workspace information including root, target dir, and all crates with i18n.toml. This is used by the monolithic temp crate approach for efficient inventory collection.
filter_crates_by_package
Filter crates by package name if specified.
get_all_locales
Get all locale directories from an assets directory.
partition_by_lib_rs
Partition crates into valid (has lib.rs) and skipped (missing lib.rs).