Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions shared-helpers/src/locales/ar.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
"account.settings.alerts.passwordSuccess": "تم تحديث كلمة المرور بنجاح",
"account.settings.confirmNewPassword": "تأكيد كلمة المرور الجديدة",
"account.settings.currentPassword": "كلمة المرور الحالي",
"account.settings.disclaimer": "يمكنك التواصل مع بلومنجتون لحذف معلومات حسابك والبيانات المرتبطة به في أي وقت. للقيام بذلك، يرجى التواصل عبر البريد الإلكتروني التالي: %{contactEmail}.",
"account.settings.myNotification": "إشعاراتي",
"account.settings.myProfile": "ملفي الشخصي",
"account.settings.newPassword": "كلمة المرور الجديدة",
Expand Down
1 change: 1 addition & 0 deletions shared-helpers/src/locales/bn.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
"account.settings.alerts.passwordSuccess": "পাসওয়ার্ড আপডেট সফল",
"account.settings.confirmNewPassword": "নিশ্চিত কর নতুন গোপননম্বর",
"account.settings.currentPassword": "বর্তমান পাসওয়ার্ড",
"account.settings.disclaimer": "আপনার অ্যাকাউন্টের তথ্য ও সংশ্লিষ্ট ডেটা মুছে ফেলার জন্য আপনি যেকোনো সময় ব্লুমিংটনের সাথে যোগাযোগ করতে পারেন। এর জন্য, অনুগ্রহ করে %{contactEmail}-এ যোগাযোগ করুন।",
"account.settings.myNotification": "আমার বিজ্ঞপ্তিগুলি",
"account.settings.myProfile": "আমার প্রোফাইল",
"account.settings.newPassword": "নতুন পাসওয়ার্ড",
Expand Down
1 change: 1 addition & 0 deletions shared-helpers/src/locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
"account.settings.alerts.passwordSuccess": "La contraseña se ha actualizado de manera exitosa",
"account.settings.confirmNewPassword": "Confirmar nueva contraseña",
"account.settings.currentPassword": "Contraseña actual",
"account.settings.disclaimer": "Puedes ponerte en contacto con Bloomington para solicitar la eliminación de la información de tu cuenta y los datos asociados en cualquier momento. Para ello, escribe a %{contactEmail}.",
"account.settings.myNotification": "Mis notificaciones",
"account.settings.myProfile": "Mi perfil",
"account.settings.newPassword": "Nueva contraseña",
Expand Down
1 change: 1 addition & 0 deletions shared-helpers/src/locales/fa.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
"account.settings.alerts.passwordSuccess": "به‌روزرسانی رمز عبور با موفقیت انجام شد",
"account.settings.confirmNewPassword": "رمز عبور جدید را تأیید کنید",
"account.settings.currentPassword": "رمز عبور فعلی",
"account.settings.disclaimer": "شما می‌توانید در هر زمانی برای حذف اطلاعات حساب کاربری و داده‌های مرتبط با آن با بلومینگتون تماس بگیرید. برای انجام این کار، لطفاً با %{contactEmail} تماس بگیرید.",
"account.settings.myNotification": "اعلان‌های من",
"account.settings.myProfile": "پروفایل من",
"account.settings.newPassword": "رمز عبور جدید",
Expand Down
1 change: 1 addition & 0 deletions shared-helpers/src/locales/general.json

@emilyjablonski emilyjablonski Jul 3, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

praise: In order for us to be able to remove these in a fork and not mess with alignment in the core translations files, these strings have to live only in the public overrides files

@ludtkemorgan ludtkemorgan Jul 6, 2026

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, it looks like my last commit didn't have the files in the override folder despite me updating that in the PR description 🤦 . I put empty strings in all of the languages and tested it out. It works as expected. The tIfExists returns null as expected so nothing gets rendered (That's why I accidentally pushed up that console log to test it) and if removed it renders the default string.

My preference would be to have default text in the main translation files and then strings that we anticipate to have turned off by default to override to empty in the override folder. That way we know that it exists with an example of the text, but it won't impact any other jurisdiction. I know you mentioned earlier there is an issue with this route so let me know if I'm missing something

Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
"account.settings.alerts.passwordSuccess": "Password update successful",
"account.settings.confirmNewPassword": "Confirm new password",
"account.settings.currentPassword": "Current password",
"account.settings.disclaimer": "You can contact Bloomington to have your account information and associated data deleted at any time. To do so, please reach out to %{contactEmail}.",
"account.settings.myNotification": "My notifications",
"account.settings.myProfile": "My profile",
"account.settings.newPassword": "New password",
Expand Down
1 change: 1 addition & 0 deletions shared-helpers/src/locales/hy.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
"account.settings.alerts.passwordSuccess": "Գաղտնաբառի թարմացումը հաջողվեց",
"account.settings.confirmNewPassword": "Հաստատեք նոր գաղտնաբառը",
"account.settings.currentPassword": "Ընթացիկ գաղտնաբառ",
"account.settings.disclaimer": "Դուք կարող եք կապվել Բլումինգտոնի հետ՝ ձեր հաշվի տեղեկությունները և դրանց հետ կապված տվյալները ջնջելու համար ցանկացած պահի: Դրա համար խնդրում ենք կապվել %{contactEmail}-ի հետ:",
"account.settings.myNotification": "Իմ ծանուցումները",
"account.settings.myProfile": "Իմ պրոֆիլը",
"account.settings.newPassword": "Նոր գաղտնաբառ",
Expand Down
1 change: 1 addition & 0 deletions shared-helpers/src/locales/ko.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
"account.settings.alerts.passwordSuccess": "비밀번호 업데이트가 완료되었습니다.",
"account.settings.confirmNewPassword": "새 비밀번호를 확인하세요",
"account.settings.currentPassword": "현재 비밀번호",
"account.settings.disclaimer": "계정 정보 및 관련 데이터 삭제를 원하시면 언제든지 블루밍턴에 문의하실 수 있습니다. 삭제를 원하시면 %{contactEmail}로 연락해 주세요.",
"account.settings.myNotification": "내 알림",
"account.settings.myProfile": "내 프로필",
"account.settings.newPassword": "새 비밀번호",
Expand Down
1 change: 1 addition & 0 deletions shared-helpers/src/locales/tl.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
"account.settings.alerts.passwordSuccess": "Matagumpay na na-update ang password",
"account.settings.confirmNewPassword": "Kumpirmahin ang bagong password",
"account.settings.currentPassword": "Kasalukuyang password",
"account.settings.disclaimer": "Maaari kang makipag-ugnayan sa Bloomington upang mabura ang impormasyon ng iyong account at mga kaugnay na datos anumang oras. Para magawa ito, mangyaring makipag-ugnayan sa %{contactEmail}.",
"account.settings.myNotification": "Aking Mga Abiso",
"account.settings.myProfile": "Aking Profile",
"account.settings.newPassword": "Bagong password",
Expand Down
1 change: 1 addition & 0 deletions shared-helpers/src/locales/vi.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
"account.settings.alerts.passwordSuccess": "Cập nhật mật khẩu thành công",
"account.settings.confirmNewPassword": "Xác nhận mật khẩu mới",
"account.settings.currentPassword": "Mật khẩu hiện tại",
"account.settings.disclaimer": "Bạn có thể liên hệ với Bloomington để yêu cầu xóa thông tin tài khoản và dữ liệu liên quan bất cứ lúc nào. Để làm vậy, vui lòng liên hệ với %{contactEmail}.",
"account.settings.myNotification": "Thông báo của tôi",
"account.settings.myProfile": "Hồ sơ của tôi",
"account.settings.newPassword": "Mật khẩu mới",
Expand Down
1 change: 1 addition & 0 deletions shared-helpers/src/locales/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
"account.settings.alerts.passwordSuccess": "密碼更新成功",
"account.settings.confirmNewPassword": "確認新密碼",
"account.settings.currentPassword": "目前密碼",
"account.settings.disclaimer": "您可以随时联系布卢明顿,要求删除您的帐户信息和相关数据。为此,请联系 %{contactEmail}。",
"account.settings.myNotification": "我的通知",
"account.settings.myProfile": "我的个人资料",
"account.settings.newPassword": "新密碼",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from "react"
import userEvent from "@testing-library/user-event"
import { useRouter } from "next/router"
import { user } from "@bloom-housing/shared-helpers/__tests__/testHelpers"
import { AuthContext } from "@bloom-housing/shared-helpers"
import { AuthContext, tIfExists } from "@bloom-housing/shared-helpers"
import { User, UserService } from "@bloom-housing/shared-helpers/src/types/backend-swagger"
import Edit from "../../../src/pages/account/edit"
import { render, screen, waitFor } from "../../testUtils"
Expand All @@ -11,6 +11,14 @@ jest.mock("next/router", () => ({
useRouter: jest.fn(),
}))

jest.mock("@bloom-housing/shared-helpers", () => {
const actual = jest.requireActual("@bloom-housing/shared-helpers")
return {
...actual,
tIfExists: jest.fn(actual.tIfExists),
}
})

const mockUserService = {
retrieve: jest.fn(),
updatePublic: jest.fn(),
Expand Down Expand Up @@ -406,4 +414,34 @@ describe("EditPublicAccount", () => {
expect(consoleWarnSpy).toHaveBeenCalled()
})
})

describe("Disclaimer section", () => {
beforeEach(() => {
;(tIfExists as jest.Mock).mockReset()
})

it("renders disclaimer when account.settings.disclaimer string exists", async () => {
;(tIfExists as jest.Mock).mockReturnValue("Disclaimer text")

renderEditPage()

await waitFor(() => {
expect(screen.getByDisplayValue("First")).toBeInTheDocument()
})

expect(screen.getByText(/You can contact Bloomington/i)).toBeInTheDocument()
})

it("does not render disclaimer when account.settings.disclaimer string does not exist", async () => {
;(tIfExists as jest.Mock).mockReturnValue(null)

renderEditPage()

await waitFor(() => {
expect(screen.getByDisplayValue("First")).toBeInTheDocument()
})

expect(screen.queryByText(/You can contact Bloomington/i)).not.toBeInTheDocument()
})
})
})
1 change: 1 addition & 0 deletions sites/public/page_content/locale_overrides/ar.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"account.settings.disclaimer": "",
"account.create.initialDisclaimer": "إذا كنت تعاني من التشرد، أو معرضًا لخطر التشرد، أو تسكن في مسكن غير آمن، يُرجى الضغط على <a href='https://www.exygy.com' target='_blank'>هذا الرابط</a> لمشاركة معلوماتك مع هيئة خدمات المشردين في بلومنجتون (BHSA) ومالكي ومديري العقارات التابعة لنظام الدخول المنسق (CES) التي قد تتوفر فيها وحدات سكنية شاغرة. بذلك، فإنك تمنح الإذن بمشاركة معلوماتك مع هذه الجهات.",
"advocateAccount.agencyNotListed": "<a href='mailto:%{contactEmail}'>اتصل بالدعم</a> إذا لم تكن وكالتك مدرجة.",
"application.confirmation.expiredDetailsWarning": "إذا تغيرت تفاصيل أسرتك منذ تقديم طلبك، يرجى التواصل مع العقار مباشرةً. من الشائع أن تتغير تفاصيل الأسرة بمرور الوقت، ولن يُؤخذ عليك أي معلومة لم تعد محدّثة. إمكانية تعديل الطلب بعد تقديمه قيد التطوير حالياً، وستتمكن من إجراء تغييرات على طلب موجود في تاريخ لاحق.",
Expand Down
1 change: 1 addition & 0 deletions sites/public/page_content/locale_overrides/bn.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"account.settings.disclaimer": "",
"account.create.initialDisclaimer": "আপনি যদি গৃহহীন হন, গৃহহীন হওয়ার ঝুঁকিতে থাকেন, বা অনিরাপদ বাসস্থানে থাকেন, তাহলে ব্লুমিংটন হোমলেস সার্ভিস অথরিটি (BHSA) এবং কোঅর্ডিনেটেড এন্ট্রি সিস্টেম (CES)-এর যেসব সম্পত্তিতে শূন্যপদ থাকতে পারে, সেগুলোর মালিক ও সম্পত্তি ব্যবস্থাপকদের সাথে <a href='https://www.exygy.com' target='_blank'>আপনার</a> তথ্য শেয়ার করতে অনুগ্রহ করে এই লিঙ্কটি নির্বাচন করুন। এটি করার মাধ্যমে, আপনি এই পক্ষগুলোর সাথে আপনার তথ্য শেয়ার করার অনুমতি দিচ্ছেন।",
"advocateAccount.agencyNotListed": "আপনার এজেন্সি তালিকাভুক্ত না থাকলে <a href='mailto:%{contactEmail}'>সহায়তার সাথে যোগাযোগ করুন</a>",
"application.confirmation.expiredDetailsWarning": "যদি আপনার আবেদন জমা দেওয়ার পর থেকে আপনার পরিবারের বিবরণ পরিবর্তিত হয়ে থাকে, তাহলে সরাসরি সম্পত্তির সাথে যোগাযোগ করুন। সময়ের সাথে সাথে পরিবারের বিবরণ পরিবর্তন হওয়া স্বাভাবিক, এবং যে তথ্য আর বর্তমান নয় তা আপনার বিরুদ্ধে ব্যবহার করা হবে না। জমা দেওয়ার পরে আবেদন সম্পাদনা করার সুবিধাটি বর্তমানে উন্নয়নাধীন এবং আপনি পরবর্তী তারিখে একটি বিদ্যমান আবেদনে পরিবর্তন করতে সক্ষম হবেন।",
Expand Down
1 change: 1 addition & 0 deletions sites/public/page_content/locale_overrides/es.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"account.settings.disclaimer": "",
"account.create.initialDisclaimer": "Si se encuentra en situación de calle, en riesgo de quedarse sin hogar o en una vivienda insegura, haga clic en <a href='https://www.exygy.com' target='_blank'>este enlace</a> para compartir su información con la Autoridad de Servicios para Personas sin Hogar de Bloomington (BHSA) y con los propietarios y administradores de propiedades del Sistema de Acceso Coordinado (CES) que puedan tener una vacante. Al hacerlo, autoriza que su información se comparta con estas entidades.",
"advocateAccount.agencyNotListed": "<a href='mailto:%{contactEmail}'>Comuníquese con el soporte</a> si su agencia no está en la lista",
"application.confirmation.expiredDetailsWarning": "Si los detalles de su hogar han cambiado desde que envió su solicitud, comuníquese directamente con la propiedad. Es común que los detalles del hogar cambien con el tiempo, y la información que ya no está vigente no se usará en su contra. La capacidad de editar una solicitud después de enviarla está actualmente en desarrollo y podrá realizar cambios en una solicitud existente en una fecha posterior.",
Expand Down
1 change: 1 addition & 0 deletions sites/public/page_content/locale_overrides/fa.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"account.settings.disclaimer": "",
"account.create.initialDisclaimer": "اگر بی‌خانمان هستید، در معرض خطر بی‌خانمانی هستید یا در مسکن ناامن زندگی می‌کنید، لطفاً <a href='https://www.exygy.com' target='_blank'>این لینک را</a> انتخاب کنید تا اطلاعات خود را با سازمان خدمات بی‌خانمان‌های بلومینگتون (BHSA) و مالکان و مدیران املاک سیستم ورود هماهنگ (CES) که ممکن است جای خالی داشته باشند، به اشتراک بگذارید. با انجام این کار، شما اجازه می‌دهید اطلاعات شما با این اشخاص به اشتراک گذاشته شود.",
"advocateAccount.agencyNotListed": "اگر آژانس شما در لیست نیست، <a href='mailto:%{contactEmail}'>با پشتیبانی تماس بگیرید</a>",
"application.confirmation.expiredDetailsWarning": "اگر جزئیات خانوار شما از زمان ارسال درخواستتان تغییر کرده است، لطفاً مستقیماً با ملک تماس بگیرید. تغییر جزئیات خانوار در طول زمان امری رایج است و اطلاعاتی که دیگر به‌روز نیستند علیه شما به‌کار گرفته نخواهند شد. قابلیت ویرایش درخواست پس از ارسال در حال حاضر در مرحله توسعه است و شما در تاریخی بعدی قادر خواهید بود تغییراتی در درخواست موجود ایجاد کنید.",
Expand Down
1 change: 1 addition & 0 deletions sites/public/page_content/locale_overrides/general.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"account.settings.disclaimer": "",
"account.create.initialDisclaimer": "If you are experiencing homelessness, at risk of homelessness, or in unsafe housing, please select <a href='https://www.exygy.com' target='_blank'>this link</a> to share your information with the Bloomington Homeless Service Authority (BHSA) and owners and property managers of Coordinated Entry System (CES) properties that may have a vacancy. By doing so, you are giving permission for your information to be shared with these parties.",
"advocateAccount.agencyNotListed": "<a href='mailto:%{contactEmail}'>Contact support</a> if your agency is not listed",
"advocateAccount.resendLinkSuccess": "If there is an approved advocate account with that email, you'll receive an email with a new link to confirm your account. Be aware, the link will expire in 24 hours. If you do not receive an email, you may not have an account under that email and would need to request one. If you have any questions in the meantime, please reach out to example@email.com.",
Expand Down
1 change: 1 addition & 0 deletions sites/public/page_content/locale_overrides/hy.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"account.settings.disclaimer": "",
"account.create.initialDisclaimer": "Եթե դուք անօթևան եք, գտնվում եք անօթևանության վտանգի տակ կամ գտնվում եք անապահով բնակարանում, խնդրում ենք ընտրել <a href='https://www.exygy.com' target='_blank'>այս հղումը</a> ՝ ձեր տեղեկատվությունը Բլումինգտոնի անօթևանների սպասարկման մարմնի (BHSA) և համակարգված մուտքի համակարգի (CES) այն գույքի սեփականատերերի և կառավարիչների հետ կիսվելու համար, որտեղ կարող է թափուր տեղ լինել: Այդպիսով դուք թույլատրում եք ձեր տեղեկատվությունը կիսվել այդ կողմերի հետ:",
"advocateAccount.agencyNotListed": "<a href='mailto:%{contactEmail}'>Կապվեք աջակցության ծառայության հետ</a>, եթե ձեր գործակալությունը ցուցակում չէ",
"application.confirmation.expiredDetailsWarning": "Եթե ձեր տնային տնտեսության տվյալները փոխվել են հայտը ներկայացնելուց հետո, խնդրում ենք անմիջապես կապ հաստատել գույքի հետ։ Սովորական է, որ տնային տնտեսության տվյալները ժամանակի ընթացքում փոխվեն, և այն տեղեկությունները, որոնք այլևս արդիական չեն, ձեր դեմ չեն օգտագործվի։ Ներկայացումից հետո հայտը խմբագրելու հնարավորությունը ներկայումս մշակման փուլում է, և դուք կկարողանաք փոփոխություններ կատարել գոյություն ունեցող հայտում ավելի ուշ ամսաթվով։",
Expand Down
1 change: 1 addition & 0 deletions sites/public/page_content/locale_overrides/ko.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"account.settings.disclaimer": "",
"account.create.initialDisclaimer": "노숙자이거나 노숙 위험에 처해 있거나 안전하지 않은 주거 환경에 계신 경우, <a href='https://www.exygy.com' target='_blank'>이 링크를</a> 클릭하여 블루밍턴 노숙자 지원 기관(BHSA) 및 공실이 있을 수 있는 통합 입소 시스템(CES) 시설의 소유주 및 관리자와 정보를 공유해 주십시오. 링크를 클릭하시면 귀하의 정보가 해당 기관들과 공유되는 것에 동의하시는 것입니다.",
"advocateAccount.agencyNotListed": "소속 기관이 목록에 없는 경우 <a href='mailto:%{contactEmail}'>지원팀에 문의하십시오</a>.",
"application.confirmation.expiredDetailsWarning": "신청서를 제출한 이후 가구 정보가 변경된 경우, 해당 시설에 직접 연락하시기 바랍니다. 가구 정보는 시간이 지남에 따라 변경되는 것이 일반적이며, 더 이상 최신이 아닌 정보로 인해 불이익을 받지 않습니다. 제출 후 신청서를 수정하는 기능은 현재 개발 중이며, 추후 기존 신청서를 변경할 수 있게 될 예정입니다.",
Expand Down
Loading
Loading