chirimen-oh / chirimen-oh.github.io

CHIRIMENホームページのソースコード。github pages, jekyll拡張を利用。 Source code of CHIRIMEN homepage (using github pages and jekyll).
https://chirimen.org/
1 stars 9 forks source link

多言語対応してみる #1

Open MSakamaki opened 8 years ago

MSakamaki commented 8 years ago

これを利用

https://github.com/screeninteraction/jekyll-multiple-languages-plugin

MSakamaki commented 8 years ago

本家が動かない ( > jekyll 2.5 ) なので、

https://github.com/Anthony-Gaudino/jekyll-multiple-languages-plugin/blob/v1_4_0/lib/jekyll/multiple/languages/plugin.rb を利用

MSakamaki commented 8 years ago

カスタムプラグイン化してみたがjekillのルールでカスタムプラグインだとgh-page化できない事がわかったので他の手を考える必要が有る。

MSakamaki commented 8 years ago

jekill 3.x系対応だとコレを使う必要ありそう http://untra.github.io/polyglot/

dynamis commented 5 years ago

ghpages ではなく netlify でビルドするなら自由にプラグインその他のツールが使える。 その前提とした場合に編集が直感的に使いやすいそうなものを選定する。

候補: https://github.com/planetjekyll/awesome-jekyll-plugins#multi-language--multi-lingual

Multi Language / Multi Lingual

確認した結果 (随時追記):

Language

Polyglot

i18n Tags

Localization

その他

summary

やっぱ Polyglot ですかね。

dynamis commented 5 years ago

手元で Polyglot 使って多言語対応サイトがビルドできることを確認した。検証して分かったことメモ

note: オフィシャル GitHub Pages ではこちらの issue があるがやる気はなさそう https://github.com/github/pages-gem/issues/401

Polyglot については動作方法に課題があるという懸念の発言あり。まぁそうね。

The only possible problem with the Polyglot one, might be how it overrides the build https://github.com/untra/polyglot#how-it-works

dynamis commented 5 years ago

tutorial の方で導入してみた: https://github.com/chirimen-oh/tutorials/commit/26fe62dbf00b5c13e2a4f8ff478ff1c1ad820333