mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 09:11:17 +08:00
FIX: Generate ASCII slug with default locale
This commit is contained in:
@ -36,7 +36,9 @@ module Slug
|
||||
end
|
||||
|
||||
def self.ascii_generator(string)
|
||||
string.tr("'", "").parameterize
|
||||
I18n.with_locale(SiteSetting.default_locale) do
|
||||
string.tr("'", "").parameterize
|
||||
end
|
||||
end
|
||||
|
||||
def self.encoded_generator(string, downcase: true)
|
||||
|
Reference in New Issue
Block a user