You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
💬 Follow up of #4423 (comment) by @khavinshankar @rithviknishad as a follow-up to this issue, can you make an epic issue that tracks multiple issues for adding localization support across the platform for all hardcoded string
The below sub-issues can be assigned to yourself 😃
Procedure for each sub-issues of this epic
All static/hardcoded strings that are rendered should be taken from the localizations.
Do check if the translation already exists, if not add the translation for en locale first. Other locales will be added later on eventually by translators.
While adding the translations, add it to their respective JSON files.
Texts that may potentially be common across the platform shall be added to Common.json.
Others shall be added to their respective JSON files (for example if text is present inside /src/Components/Patients/*.tsx, it can be added to src/Locale/en/Patient.json)
// src/Components/Patient/DailyRounds.tsxconst{ t }=useTranslations();<FieldLabel>{t("SPO2")+" %"}{getStatus(90,t("Low"),100,t("High"),"ventilator_spo2")}</FieldLabel>
Feel free to further break down each sub-issue to multiple sub-issues if there's lots of translations to be done in one sub-issue itself.
If so, link the issue in the sub-issues section by editing the first comment.
The below sub-issues can be assigned to yourself 😃
Procedure for each sub-issues of this epic
en
locale first. Other locales will be added later on eventually by translators.Common.json
./src/Components/Patients/*.tsx
, it can be added tosrc/Locale/en/Patient.json
)For example:
Before
After:
Sub-issues to be done in separate PRs:
Assets
#4472Auth
#4473CriticalCareRecording
#4474DeathReport
#4475ErrorPages
#4476ExternalResult
#4477Facility/Consultations
#4478Facility/FacilityFilter
#4479Facility
#4480Hub
#4481Notifications
#4482Patient
#4483Resource
#4484Shifting
#4485Users
#4486cc: @gigincg @khavinshankar
The text was updated successfully, but these errors were encountered: