
Reactサンプルアプリ開発 プラニングポーカー (16) react-i18nextによる多言語対応
今回は、react-i18nextというライブラリを使ってプラニングポーカーアプリを多言語化してみる。こちらのブログを参考にさせて頂いた。 まずはパッケージのインストール。 $ yarn add i18next react-i18next 言語選択用のコンポーネント。 import React, { FunctionComponent } from "react"; export type LanguageSelectorProps = { languages: { code: string, name: string }[], selectedLanguage: stri…