Add CSV input files and enhance syncback warning logic

- Introduced a new CSV input file with translation data for Spanish.
- Updated the `init.csv` file to include a new entry for "Rojo" with its context and example.
- Enhanced the syncback logic to conditionally emit warnings for duplicate child names based on the new `warn_duplicate_names` configuration in `SyncbackRules`.
- Added documentation for the new warning behavior in the `SyncbackRules` and `SyncbackSnapshot` implementations.
This commit is contained in:
Joe 2026-01-30 10:42:38 -06:00
parent 18a74c8e4d
commit 0b243b4ca9
5 changed files with 48 additions and 3 deletions

View file

@ -153,7 +153,7 @@ pub fn syncback_dir_no_meta<'sync>(
.map(|(name, _)| name)
.collect();
if !duplicate_names.is_empty() {
if !duplicate_names.is_empty() && snapshot.warn_duplicate_names() {
let inst_path = crate::syncback::inst_path(snapshot.new_tree(), snapshot.new);
let duplicate_list: Vec<&str> = duplicate_names.iter().map(|s| s.as_str()).collect();
log::warn!(