1
0
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:
Peng DU 2016-09-05 16:26:28 +02:00
parent 9ed8542e5d
commit 6880ba9aa3
3 changed files with 9 additions and 0 deletions

View File

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

View File

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

View File

@ -0,0 +1,5 @@
fr:
app:
public:
common:
return: "test"