Various improvements (#332)

* Fix locale fallbacks
* Make header links relative
* Improve like button style
* Other small improvements...
This commit is contained in:
Riccardo Graziosi
2024-05-09 19:23:45 +02:00
committed by GitHub
parent a292b133b0
commit 747483cfa3
32 changed files with 115 additions and 61 deletions

View File

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

View File

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