mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-23 14:01:37 +00:00
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:
parent
18a74c8e4d
commit
0b243b4ca9
5 changed files with 48 additions and 3 deletions
|
|
@ -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!(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue