From 5d4ef8e094a0ecc8108278165952eaf614d84d9f Mon Sep 17 00:00:00 2001 From: "makabe.t" Date: Mon, 13 Mar 2023 10:40:32 +0000 Subject: [PATCH] =?UTF-8?q?Merged=20PR=2011:=20=E3=82=BF=E3=82=B9=E3=82=AF?= =?UTF-8?q?=201482:=20AADB2C=E3=81=AE=E3=83=AD=E3=82=B0=E3=82=A4=E3=83=B3?= =?UTF-8?q?=E7=94=BB=E9=9D=A2=E3=81=A7=E3=80=81=E8=A8=80=E8=AA=9E=E5=A4=89?= =?UTF-8?q?=E6=9B=B4=E3=81=A7=E3=81=8D=E3=82=8B=E4=BB=95=E7=B5=84=E3=81=BF?= =?UTF-8?q?=E3=82=92=E5=85=A5=E3=82=8C=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## 概要 [タスク 1482: [手が空いたらor簡単なら] AADB2Cのログイン画面で、言語変更できる仕組みを入れる](https://paruru.nds-tyo.co.jp:8443/tfs/ReciproCollection/OMDSDictation/_workitems/edit/1482) - ログイン画面の言語がトップ画面の言語選択と対応するようにしました。 - クライアントでの言語選択状態をそのままクエリパラメータui_localesで渡すことで言語選択を実現しています(参考:[Azure Active Directory B2C での言語のカスタマイズ](https://learn.microsoft.com/ja-jp/azure/active-directory-b2c/language-customization?pivots=b2c-user-flow)) ## レビューポイント - 言語選択実現方法として適切か ## UIの変更 - ログイン画面の言語 - [Task1482](https://ndstokyo.sharepoint.com/:f:/r/sites/Piranha/Shared%20Documents/General/OMDS/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88/Task1482?csf=1&web=1&e=lHBZZJ) ## 動作確認状況 - ローカルからログイン画面の言語が変わることを確認 --- dictation_client/src/pages/TopPage/index.tsx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/dictation_client/src/pages/TopPage/index.tsx b/dictation_client/src/pages/TopPage/index.tsx index 7602aef..db2f4ca 100644 --- a/dictation_client/src/pages/TopPage/index.tsx +++ b/dictation_client/src/pages/TopPage/index.tsx @@ -44,7 +44,15 @@ const TopPage: React.FC = (): JSX.Element => {
Already have an account?
{/* eslint-disable */} - instance.loginRedirect(loginRequest)}> + { + // AADB2Cのサインイン画面に言語選択情報を渡す追加のクエリパラメータを設定 + loginRequest.extraQueryParameters = { + ui_locales: i18n.language, + }; + instance.loginRedirect(loginRequest); + }} + > Sign in