diff --git a/agent/i18n/i18n.go b/agent/i18n/i18n.go index e6ff73dd..46af1070 100644 --- a/agent/i18n/i18n.go +++ b/agent/i18n/i18n.go @@ -342,8 +342,8 @@ func TranslateGlobal(locale string, input any) any { } // Fallback logic: for "en-us", try "en" - parts := strings.Split(locale, "-") - if len(parts) > 1 { + parts := strings.Split(locale, "-") + if len(parts) > 1 { // Try the language code (e.g., "en" for "en-us") if fallbackI18n, hasFallback := i18ns[parts[0]]; hasFallback { result := fallbackI18n.Parse(input) diff --git a/trace/manager.go b/trace/manager.go index df1a064a..e78639a1 100644 --- a/trace/manager.go +++ b/trace/manager.go @@ -165,7 +165,7 @@ func (m *manager) Add(input types.TraceInput, option types.TraceNodeOption) (typ } } } - } + } // Collect parent IDs from all current nodes (supports implicit join) parentIDs := make([]string, 0, len(currentNodes))