Skip to content

Fix machine translations at the API#9652

Merged
andreslucena merged 2 commits intodecidim:developfrom
mainio:fix/9592
Nov 25, 2022
Merged

Fix machine translations at the API#9652
andreslucena merged 2 commits intodecidim:developfrom
mainio:fix/9592

Conversation

@ahukkanen
Copy link
Copy Markdown
Contributor

🎩 What? Why?

Currently the machine translations are represented incorrectly at the API as described by #9592.

This fixes the issue and also introduces a new machineTranslated field at the LocalizedStringType indicating whether the string is machine translated or not.

📌 Related Issues

Testing

@ahukkanen ahukkanen added module: core module: api type: fix PRs that implement a fix for a bug labels Aug 2, 2022
@andreslucena
Copy link
Copy Markdown
Member

Saw this bug while reviewing #10114. I thought that we already had merged this one, sorry!! 😄

Copy link
Copy Markdown
Member

@andreslucena andreslucena left a comment

Choose a reason for hiding this comment

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

I've merged with develop locally as this is an old PR.
I tried it locally with the query

{
  participatoryProcesses {
    id
    slug
    title {
      translations {
        locale
        text
      }
    }
  }
}

Also with the one from #10114

Everything looks 👌🏽

@andreslucena andreslucena merged commit f68c490 into decidim:develop Nov 25, 2022
@ahukkanen ahukkanen deleted the fix/9592 branch November 25, 2022 10:21
entantoencuanto added a commit that referenced this pull request Nov 28, 2022
* develop:
  Redesign: verifications (#9759)
  Fix machine translations at the API (#9652)
  Add title and description to the attachment API type (#10114)
  Correct the "voted for this" string in the budgets component (#10113)
  Fix filter URL not updated with the text search input (#9618)
  Improve README design and contents (#10065)
  Update bulletin board to 0.24 for Ruby 3.1 compatibility (#9766)
  Fix some oversights in the release notes for the next release (#10078)
  Fix bug regarding user group moderation action logs (#10085)
  Fix wrong capitalization in i18n values and add missing keys (#10072)
  Enhance templates engine (#10015)
  Add slash in PR linter configuration (#10074)
  Allow blocking a UserGroup (#10021)
  Enable newsletters for admin on seeds (#10073)
entantoencuanto added a commit that referenced this pull request Nov 28, 2022
* develop:
  Redesign: verifications (#9759)
  Fix machine translations at the API (#9652)
  Add title and description to the attachment API type (#10114)
  Correct the "voted for this" string in the budgets component (#10113)
  Fix filter URL not updated with the text search input (#9618)
  Improve README design and contents (#10065)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

module: api module: core type: fix PRs that implement a fix for a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Machine translations appear in the API incorrectly

2 participants