Fix CI error (4)
This commit is contained in:
parent
750e5ea21f
commit
003de0bbb1
@ -12,8 +12,8 @@ before_script:
|
|||||||
build site:
|
build site:
|
||||||
stage: build
|
stage: build
|
||||||
script:
|
script:
|
||||||
- bundle exec jekyll build -d public
|
- bundle exec jekyll build -d lorchess.ru
|
||||||
artifacts:
|
artifacts:
|
||||||
expire_in: 1 month
|
expire_in: 1 month
|
||||||
paths:
|
paths:
|
||||||
- public
|
- lorchess.ru
|
||||||
|
@ -4,7 +4,20 @@ module Jekyll
|
|||||||
safe true
|
safe true
|
||||||
priority :low
|
priority :low
|
||||||
|
|
||||||
include I18nFilter
|
LOCALE = :ru
|
||||||
|
|
||||||
|
def localize(input, format=nil)
|
||||||
|
load_translations
|
||||||
|
format = (format =~ /^:(\w+)/) ? $1.to_sym : format
|
||||||
|
I18n.l input, :format => format
|
||||||
|
end
|
||||||
|
|
||||||
|
def load_translations
|
||||||
|
unless I18n::backend.instance_variable_get(:@translations)
|
||||||
|
I18n.backend.load_translations Dir[File.join(File.dirname(__FILE__), '../_locales/*.yml')]
|
||||||
|
I18n.locale = LOCALE
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
# Generates the reviews file
|
# Generates the reviews file
|
||||||
def generate(site)
|
def generate(site)
|
||||||
|
Loading…
Reference in New Issue
Block a user