CrisisCleanup / crisiscleanup-3-web

[OLD] Crisis Cleanup Version 3 Web Application based on Vue 2. This version was launched March 27, 2020 and retired March 10, 2023 when it was superseded by a Vue 3 version.
https://crisiscleanup.org
Apache License 2.0
19 stars 7 forks source link

Localizations Not Implemented Correctly on Case Intake Form #97

Closed aarontitus closed 4 years ago

aarontitus commented 4 years ago

Bug Hard-coded English appears in intake form, rather than localizations. See #95 .

To Reproduce Steps to reproduce the behavior:

  1. Go to http://app.staging.crisiscleanup.io/incident/61/cases/new
  2. Notice that the postal_code field is labeled "Postal Code." However, in US English, it should be "Zip Code." I confirmed that all translations of postal_code were "Zip Code" in US English.
  3. This means that "Postal Code" must have been hard-coded, rather than implemented using localizations. The same thing applies to all of the top-level fields. E.g. "Location" should be localized, and should be "What3Words"

Expected behavior The localization should appear, rather than a hard-coded English version.

Screenshots Intake Form Not Translated

Desktop (please complete the following information):

Additional context To confirm localizations: SELECT * FROM core_localizations_text WHERE localization_id IN( SELECT id FROM core_localizations WHERE label = 'postal_code')

aarontitus commented 4 years ago

Approved.