Lokvin Wiki
Advertisement

meteor

Discover Meteor

install bunlder

 gem install bundler

transleate CN for Discover Meteor

$git clone git@github.com:DiscoverMeteor/DiscoverMeteorStatic.git
$cd DiscoverMeteorStatic
$bundle install
$git submodule init
## for first time
$git submodule update
$git submodule foreach git pull origin master
$export DMLANG=zh
$bundle exec middleman
 $git clone git@github.com:DiscoverMeteor/DiscoverMeteorStatic.git
 $cd DiscoverMeteorStatic
 $bundle install
 #clone en to source/chapters/en
 $cd source/chapters
 $git clone git@github.com:DiscoverMeteor/DiscoverMeteor_En.git en
 $export DMLANG=en
 $bundle exec middleman


  • Access http://0.0.0.0:4567
  • Note, each time middle man generate for 1 language, the language config in /configure.rb
DEFAULTLANG = 'zh'
LANG = ENV['DMLANG'] || DEFAULTLANG
  • You can specify language by export DMLANG=zh , then restart middleman
$export DMLANG=zh
Advertisement