FIX: Generate ASCII slug with default locale

This commit is contained in:
Gerhard Schlager
2019-04-29 18:29:45 +02:00
parent b75720d911
commit 56f6065393
2 changed files with 9 additions and 1 deletions

View File

@ -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)