mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-17 06:52:27 +01:00
allow load locales for subdirectories
This commit is contained in:
parent
9ed8542e5d
commit
6880ba9aa3
@ -1,6 +1,7 @@
|
||||
# Changelog Fab Manager
|
||||
|
||||
## next release
|
||||
- Load locales for subdirectories
|
||||
- Add wallet to user, client can pay total/partial reservation or subscription by wallet
|
||||
- Public calendar for show all trainings/machines/events
|
||||
- Display 'draft' badge on drafts in project galleries
|
||||
|
@ -63,6 +63,9 @@ module Fablab
|
||||
config.web_console.whitelisted_ips << '10.0.2.2' #vagrant
|
||||
end
|
||||
|
||||
# load locales for subdirectories
|
||||
config.i18n.load_path += Dir[Rails.root.join('config', 'locales', '**/*.yml').to_s]
|
||||
|
||||
# enable the app to find locales in plugins locales directory
|
||||
config.i18n.load_path += Dir["#{Rails.root}/plugins/*/config/locales/*.yml"]
|
||||
|
||||
|
5
config/locales/my_locales/override.yml
Normal file
5
config/locales/my_locales/override.yml
Normal file
@ -0,0 +1,5 @@
|
||||
fr:
|
||||
app:
|
||||
public:
|
||||
common:
|
||||
return: "test"
|
Loading…
x
Reference in New Issue
Block a user