From eec9c1d7506c3b692d1b16a8a292a6565952c29a Mon Sep 17 00:00:00 2001 From: Jon Tzeng Date: Tue, 28 Oct 2025 13:50:06 -0700 Subject: [PATCH] Rename "Province" label to "State" for US --- src/components/scenes/RampKycFormScene.tsx | 9 ++++++++- src/locales/en_US.ts | 1 + src/locales/strings/enUS.json | 1 + 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/components/scenes/RampKycFormScene.tsx b/src/components/scenes/RampKycFormScene.tsx index 01965f57da3..3b0403a2010 100644 --- a/src/components/scenes/RampKycFormScene.tsx +++ b/src/components/scenes/RampKycFormScene.tsx @@ -5,6 +5,7 @@ import { useHandler } from '../../hooks/useHandler' import { lstrings } from '../../locales/strings' import { GuiFormField } from '../../plugins/gui/components/GuiFormField' import { GuiFormRow } from '../../plugins/gui/components/GuiFormRow' +import { useSelector } from '../../types/reactRedux' import type { BuySellTabSceneProps } from '../../types/routerTypes' import { ErrorCard } from '../cards/ErrorCard' import { SceneWrapper } from '../common/SceneWrapper' @@ -59,6 +60,12 @@ export const RampKycFormScene = React.memo((props: Props) => { onCancel } = params + const countryCode = useSelector(state => state.ui.settings.countryCode) + const stateFieldLabel = + countryCode === 'US' + ? lstrings.form_field_title_address_state + : lstrings.form_field_title_address_state_province_region + const [firstName, setFirstName] = React.useState(initialFirstName) const [lastName, setLastName] = React.useState(initialLastName) const [email, setEmail] = React.useState(initialEmail) @@ -231,7 +238,7 @@ export const RampKycFormScene = React.memo((props: Props) => {