Chore: defaults localizationForPlugins behavior (#109778)

* Chore: defaults localizationForPlugins behavior

* chore: fixes backend tests

* chore: fix backend tests

* chore: fix some more backend tests
This commit is contained in:
Hugo Häggmark
2025-08-18 13:57:28 +02:00
committed by GitHub
parent 3dccd29f89
commit 6fb6cf4f1d
5 changed files with 59 additions and 41 deletions
@@ -78,10 +78,8 @@ func (f *DefaultPluginFactory) newPlugin(p plugins.FoundPlugin, class plugins.Cl
return nil, err
}
if f.features.LocalizationForPlugins {
if err := setTranslations(plugin, f.assetPath, info); err != nil {
return nil, err
}
if err := setTranslations(plugin, f.assetPath, info); err != nil {
return nil, err
}
return plugin, nil