Skip to content

Conversation

@google-labs-jules
Copy link
Contributor

@google-labs-jules google-labs-jules bot commented Aug 10, 2025

Part of #554

This change adds support for international alternate names for crops.

It extends the AlternateName model with a language field and migrates existing alternate names to English ("en").

A Rake task is included to fetch and load international names from Wikidata's API, using the crop's Wikipedia URL to find its Wikidata ID.

The crop detail page is updated to display the language of each alternate name, and the search functionality is expected to work with the new names via the existing search indexing mechanism. The crops API is also updated to include the language in the JSON response.


  • CRUD for alternative names on the crop pages? Annoying jquery stuff

@CloCkWeRX CloCkWeRX marked this pull request as ready for review August 24, 2025 12:14
@CloCkWeRX CloCkWeRX merged commit ac1463e into dev Aug 24, 2025
16 checks passed
@CloCkWeRX CloCkWeRX deleted the add-international-crop-names branch August 24, 2025 12:14
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.

2 participants