mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 00:27:58 +08:00
FEATURE: English locale with international date formats
Makes en_US the new default locale
This commit is contained in:
@ -105,7 +105,7 @@ class BulkImport::Base
|
||||
|
||||
def preload_i18n
|
||||
puts "Preloading I18n..."
|
||||
I18n.locale = ENV.fetch("LOCALE") { "en" }.to_sym
|
||||
I18n.locale = ENV.fetch("LOCALE") { SiteSettings::DefaultsProvider::DEFAULT_LOCALE }.to_sym
|
||||
I18n.t("test")
|
||||
ActiveSupport::Inflector.transliterate("test")
|
||||
end
|
||||
|
Reference in New Issue
Block a user