2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-08-17 18:04:11 +08:00

DEV: Remove precompile for locale js (#32799)

The Rails asset pipeline isn't used for locale bundles any more. Plus,
`assets.precompile` isn't used for anything since we switched to
propshaft.
This commit is contained in:
David Taylor 2025-05-19 11:08:01 +01:00 committed by GitHub
parent 5cf6ebf70c
commit d86b4ff298
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1446,7 +1446,6 @@ class Plugin::Instance
if valid_locale?(opts)
DiscoursePluginRegistry.register_locale(locale, opts)
Rails.configuration.assets.precompile << "locales/#{locale}.js"
else
msg = "Invalid locale! #{opts.inspect}"
# The logger isn't always present during boot / parsing locales from plugins