Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Fix extraction of locale from translation files

Christophe Bliardcbf338bc07fe
diff --git a/spec/support/i18n_lazy_loading.rb b/spec/support/i18n_lazy_loading.rb
index 0a06b436049..2886b1c3a10 100644
--- a/spec/support/i18n_lazy_loading.rb
+++ b/spec/support/i18n_lazy_loading.rb
@@ -39,7 +39,7 @@ class I18n::Backend::LocaleExtractor
return if locale.nil?
- locale.tr("js-", "").to_sym
+ locale.delete_prefix("js-").delete_suffix(".seeders").to_sym
end
end