Création initiale du projet Amber

This commit is contained in:
2018-09-03 23:08:32 +02:00
parent a2c4523880
commit 6d4cadc2ae
35 changed files with 781 additions and 2 deletions

View File

@ -0,0 +1,6 @@
require "granite/adapter/pg"
Granite::Adapters << Granite::Adapter::Pg.new({name: "pg", url: Amber.settings.database_url})
Granite.settings.logger = Amber.settings.logger.dup
Granite.settings.logger.progname = "Granite"

View File

@ -0,0 +1,24 @@
require "citrine-i18n"
Citrine::I18n.configure do |settings|
# Backend storage (as supported by i18n.cr)
# settings.backend = I18n::Backend::Yaml.new
# Default locale (defaults to "en" and "./src/locales/**/en.yml").
# For a new default locale to be accepted, it must be found by the
# backend storage and reported in "settings.available_locales".
# settings.default_locale = "en"
# Separator between sublevels of data (defaults to '.')
# e.g. I18n.translate("some/thing") instead of "some.thing"
# settings.default_separator = '.'
# Returns the current exception handler. Defaults to an instance of
# I18n::ExceptionHandler.
# settings.exception_handler = ExceptionHandler.new
# The path from where the translations should be loaded
settings.load_path += ["./src/locales"]
end
I18n.init