mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 19:27:52 +01:00
Various improvements (#332)
* Fix locale fallbacks * Make header links relative * Improve like button style * Other small improvements...
This commit is contained in:
committed by
GitHub
parent
a292b133b0
commit
747483cfa3
@@ -11,6 +11,9 @@ module App
|
||||
# Initialize configuration defaults for originally generated Rails version.
|
||||
config.load_defaults 6.0
|
||||
|
||||
# Set default locale
|
||||
config.i18n.default_locale = :en
|
||||
|
||||
# Settings in config/environments/* take precedence over those specified here.
|
||||
# Application configuration can go into files in config/initializers
|
||||
# -- all .rb files in that directory are automatically loaded after loading
|
||||
|
||||
@@ -3,8 +3,6 @@ I18n.load_path += Dir[Rails.root.join('config', 'locales', '**', '*.yml')]
|
||||
|
||||
I18n.available_locales = [:en, :it, :de, :fr, :es, 'zh-CN', :ru, :vi]
|
||||
|
||||
I18n.default_locale = :en
|
||||
|
||||
# Custom pluralization rules
|
||||
# Those must be mirrored in app/javascript/translations/index.js.erb
|
||||
I18n::Backend::Simple.include(I18n::Backend::Pluralization)
|
||||
|
||||
Reference in New Issue
Block a user