Skip to content

fixed missing projectMeta, fixed #1475#1476

Merged
sagararyal merged 1 commit into
developfrom
feature/fix_1475_and_projectMeta
May 6, 2022
Merged

fixed missing projectMeta, fixed #1475#1476
sagararyal merged 1 commit into
developfrom
feature/fix_1475_and_projectMeta

Conversation

@norbertschuler
Copy link
Copy Markdown
Collaborator

@norbertschuler norbertschuler commented Apr 27, 2022

Fixes #1475 and missing projectMeta in API call

TODO:

  • Test if all the project text fields use the translated content?

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 27, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
planet-webapp ✅ Ready (Inspect) Visit Preview Apr 27, 2022 at 10:48AM (UTC)

@tejassonar
Copy link
Copy Markdown
Contributor

image

The titles are translated but the data is not as the backend is not responding with the translated content even though we are passing locale in the query params.

@norbertschuler
Copy link
Copy Markdown
Collaborator Author

The titles are translated but the data is not as the backend is not responding with the translated content even though we are passing locale in the query params.

@tejassonar thank you for testing. This is a backend API issue then. The fields should return the translated content from the backend. For Yucatán there is translated content as you see in the staging backend admin UI at https://app-staging.plant-for-the-planet.org/backend/project/1/show.

Working fields:

  • name
  • description

Not working fields (formerly taken from projectMeta property):

  • degradationCause
  • longTermPlan
  • mainChallenge (this does not seem to be translated in the backend admin UI, why?)
  • motivation

Bildschirmfoto 2022-04-28 um 08 52 51

@jmiridis can you fix this?

@tejassonar
Copy link
Copy Markdown
Contributor

LGFM

@sagararyal sagararyal merged commit 2ca1f3f into develop May 6, 2022
@sagararyal sagararyal deleted the feature/fix_1475_and_projectMeta branch May 6, 2022 10:28
sunilsabatp added a commit that referenced this pull request May 13, 2022
…e/fix_1475_and_projectMeta"

This reverts commit 2ca1f3f, reversing
changes made to 3749f3b.
@mariahosfeld mariahosfeld mentioned this pull request May 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Formatting Project Data Site Ownership

3 participants