mirror of
https://github.com/ankitects/anki.git
synced 2025-11-16 17:47:11 -05:00
* Add Rust bin to deprecate unused ftl entries * Align function names with bin names * Support passing in multiple ftl roots * Use source instead of jsons for deprecating * Fix CargoRun not working more than once (dae) * Add ftl:deprecate (dae) * Deprecate some strings (dae) This is not all of the strings that are currently unused * Check json files before deprecating; add allowlist (dae) The scheduler messages we'll probably want to reuse for the v2->v3 transition, so I'd prefer to keep them undeprecated for now. * Deprecate old bury options (dae) * Support gathering usages from Kotlin files for AnkiDroid (dae) * Update json scripts (dae) * Remove old deprecation headers * Parameterize JSON roots to keep * Tweak deprecation message (dae)
11 lines
533 B
Rust
11 lines
533 B
Rust
// Copyright: Ankitects Pty Ltd and contributors
|
|
// License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|
|
|
/// Extract references from all Rust, Python, TS, Svelte and Designer files in
|
|
/// the given roots, convert them to ftl names case and write them as a json to
|
|
/// the target file.
|
|
/// First argument is the target file name, following are source roots.
|
|
fn main() {
|
|
let args: Vec<String> = std::env::args().collect();
|
|
anki_i18n_helpers::garbage_collection::write_ftl_json(&args[2..], &args[1]);
|
|
}
|