言語のために変な実装をしてコードを煩わしい状態にしたくなかったので、今回ちゃんとNode.jsでの多言語対応を行う. 使うのは “i18n”. https://github.com/mashpie/i18n-node まずはインストール npm install i18n –save 次はapp.jsの整備 以下のように書く.configureくらいしか設定することは特に無い.あとはapp.use(i18n.init)をする. 今回は日本語と英語の設定をする.デフォルトは日本語設定に. This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an edito