Skip to content

Commit

Permalink
fix: add bengali and arabic localization (#4482)
Browse files Browse the repository at this point in the history
* fix: add bengali localization

* fix: add bengali locale to all languages

* fix: add arabic translations

* fix: add arabic to other locales

* fix: update getfeedback translation
  • Loading branch information
ludtkemorgan authored Nov 20, 2024
1 parent 6525eb6 commit 6f1fcac
Show file tree
Hide file tree
Showing 10 changed files with 2,240 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
-- AlterEnum
-- This migration adds more than one value to an enum.
-- With PostgreSQL versions 11 and earlier, this is not possible
-- in a single migration. This can be worked around by creating
-- multiple migrations, each migration adding only one value to
-- the enum.
ALTER TYPE "languages_enum"
ADD
VALUE 'bn';

ALTER TYPE "languages_enum"
ADD
VALUE 'ar';
2 changes: 2 additions & 0 deletions api/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -975,6 +975,8 @@ enum LanguagesEnum {
vi
zh
tl
bn
ar
@@map("languages_enum")
}
Expand Down
1,143 changes: 1,143 additions & 0 deletions shared-helpers/src/locales/ar.json

Large diffs are not rendered by default.

1,068 changes: 1,068 additions & 0 deletions shared-helpers/src/locales/bn.json

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions shared-helpers/src/locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,8 @@
"housingCounselors.languageServices": "Servicios de idiomas: ",
"housingCounselors.subtitle": "Hable con un asesor de vivienda local en forma específica a sus necesidades.",
"housingCounselors.visitWebsite": "Visite a %{name}",
"languages.ar": "عربى",
"languages.bn": "বাংলা",
"languages.en": "English",
"languages.es": "Español",
"languages.tl": "Filipino",
Expand Down
2 changes: 2 additions & 0 deletions shared-helpers/src/locales/general.json
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,8 @@
"housingCounselors.languageServices": "Language Services: ",
"housingCounselors.subtitle": "Talk with a local housing counselor specific to your needs.",
"housingCounselors.visitWebsite": "Visit %{name}",
"languages.ar": "عربى",
"languages.bn": "বাংলা",
"languages.en": "English",
"languages.es": "Español",
"languages.tl": "Filipino",
Expand Down
2 changes: 2 additions & 0 deletions shared-helpers/src/locales/tl.json
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,8 @@
"housingCounselors.languageServices": "Mga Serbisyo ng Lengguwahe: ",
"housingCounselors.subtitle": "Makipag-usap sa lokal na tagapayo ng pabahay na para lang sa iyong mga pangangailangan.",
"housingCounselors.visitWebsite": "Bisitahin ang %{name}",
"languages.ar": "عربى",
"languages.bn": "বাংলা",
"languages.en": "English",
"languages.es": "Español",
"languages.tl": "Filipino",
Expand Down
2 changes: 2 additions & 0 deletions shared-helpers/src/locales/vi.json
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,8 @@
"housingCounselors.languageServices": "Các Dịch Vụ Ngôn Ngữ: ",
"housingCounselors.subtitle": "Nói chuyện với một cố vấn gia cư địa phương cụ thể cho nhu cầu của quý vị.",
"housingCounselors.visitWebsite": "Truy cập %{name}",
"languages.ar": "عربى",
"languages.bn": "বাংলা",
"languages.en": "English",
"languages.es": "Español",
"languages.tl": "Filipino",
Expand Down
2 changes: 2 additions & 0 deletions shared-helpers/src/locales/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,8 @@
"housingCounselors.languageServices": "語言服務: ",
"housingCounselors.subtitle": "根據您的特定需求,請與您當地的房屋顧問商談。",
"housingCounselors.visitWebsite": "請瀏覽 %{name}",
"languages.ar": "عربى",
"languages.bn": "বাংলা",
"languages.en": "English",
"languages.es": "Español",
"languages.tl": "Filipino",
Expand Down
4 changes: 4 additions & 0 deletions sites/public/src/lib/translations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import spanishTranslations from "@bloom-housing/shared-helpers/src/locales/es.js
import chineseTranslations from "@bloom-housing/shared-helpers/src/locales/zh.json"
import vietnameseTranslations from "@bloom-housing/shared-helpers/src/locales/vi.json"
import tagalogTranslations from "@bloom-housing/shared-helpers/src/locales/tl.json"
import bengaliTranslations from "@bloom-housing/shared-helpers/src/locales/bn.json"
import arabicTranslations from "@bloom-housing/shared-helpers/src/locales/ar.json"

import additionalGeneralTranslations from "../../page_content/locale_overrides/general.json"

Expand All @@ -12,6 +14,8 @@ export const translations = {
zh: chineseTranslations,
vi: vietnameseTranslations,
tl: tagalogTranslations,
bn: bengaliTranslations,
ar: arabicTranslations,
} as Record<string, any>

export const overrideTranslations = { en: additionalGeneralTranslations } as Record<string, any>

0 comments on commit 6f1fcac

Please sign in to comment.