about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFire Demon <firedemon@creature.cafe>2020-07-15 20:23:50 -0500
committerFire Demon <firedemon@creature.cafe>2020-08-30 05:41:03 -0500
commita3a7c6e0ec6a80ea1989176f15224b1a27916338 (patch)
tree38c8aeec9a62e5e838e4386676d708c93f1302d1
parent6abeb96a572b0bcd8bc18f84ef47e03d61e3eea4 (diff)
[Localization] Set default locale to en-MP if unset
-rw-r--r--config/application.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/application.rb b/config/application.rb
index a3f4a855c..6b679f5be 100644
--- a/config/application.rb
+++ b/config/application.rb
@@ -117,7 +117,7 @@ module Mastodon
       :'zh-TW',
     ]
 
-    config.i18n.default_locale = ENV['DEFAULT_LOCALE']&.to_sym
+    config.i18n.default_locale = ENV.fetch('DEFAULT_LOCALE', 'en-MP')&.to_sym
     config.i18n.fallbacks = [:en]
 
     unless config.i18n.available_locales.include?(config.i18n.default_locale)