FEATURE: English locale with international date formats

Makes en_US the new default locale
This commit is contained in:
Gerhard Schlager
2019-05-15 23:43:00 +02:00
parent a58aa9b4bf
commit b788948985
44 changed files with 274 additions and 90 deletions

View File

@ -8,7 +8,7 @@ module DiscourseNarrativeBot
def self.generate(user)
quote, author =
if user.effective_locale != 'en'
if !user.effective_locale.start_with?('en')
translation_key = "discourse_narrative_bot.quote.#{rand(1..10)}"
[