Configure I18n

- Locale files will be kept in `lib/gollum/locales/[lang].yml`
- The available locales, to start, will be English (`en`).
This commit is contained in:
Benjamin Willems
2021-02-21 13:26:52 -08:00
committed by benjamin wil
parent d993676ca2
commit f3e17bb6a6
+5 -2
View File
@@ -5,6 +5,7 @@ require 'digest/sha1'
require 'ostruct'
# external
require 'i18n'
require 'github/markup'
require 'rhino' if RUBY_PLATFORM == 'java'
@@ -14,10 +15,13 @@ require File.expand_path('../gollum/uri_encode_component', __FILE__)
module Gollum
VERSION = '5.2.3'
::I18n.available_locales = [:en]
::I18n.load_path = Dir[File.expand_path("lib/gollum/locales") + "/*.yml"]
def self.assets_path
::File.expand_path('gollum/public', ::File.dirname(__FILE__))
end
class TemplateFilter
@@filters = {}
@@ -32,5 +36,4 @@ module Gollum
data
end
end
end