Skip to content

Data: Add Google Translate Support Indicator#689

Open
cchandram wants to merge 1 commit into
masterfrom
data/google-translate-available-languages
Open

Data: Add Google Translate Support Indicator#689
cchandram wants to merge 1 commit into
masterfrom
data/google-translate-available-languages

Conversation

@cchandram

Copy link
Copy Markdown
Contributor

Part of #538

Summary: Add Google Translate support data to language records as part of the digital support indicators

Changes

  • User experience
    • Added a Google Translate support indicator with a hover tooltip listing the available entries.
  • Logical changes
    • Loaded Google Translate TSV data during supplemental data loading.
    • Extended language and shared data types to store Google Translate metadata.
  • Data
    • Added Google Translate language coverage data from public/data/google/gtranslate.tsv.

Out of scope/Future work: Possible connection with Locales and Writing Systems.

Test Plan

How to test the changes in this PR: Run the app, open a language table view, and select the Google Translate option in the list of available digital support indicators. The status appears in the table with the expected hover text.

Page/View with link Description of Changes Screenshot After
Languages Table view Google Translate as column
screen1
Languages Table columns Google Translate as a digital support indicator
grafik

Checklist

Summary

  • Clear description of what and why
  • Scope kept focused; note follow-ups if any
  • Set yourself as assignee
  • Mention the issue

Testing

  • npm run lint
  • npm run build
  • npm run test
  • npm run dev -- tried out the website directly

Changes

Visual changes

  • Since more views can be reproduced by just sharing the URL -- add links (eg. link) to the relevant page and/or conditions to reproduce the view.

Data changes

  • TSV edits in public/data/
  • Load/connect/compute updates in src/features/data/ including how we aggregate data or compute derived values

Internal changes

  • Logical changes

Docs

  • Code is self-documenting, or if not, comments are added where needed.

@cchandram cchandram requested a review from a team as a code owner June 25, 2026 13:44
@cchandram cchandram self-assigned this Jun 25, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Cloudflare Pages preview

@cchandram cchandram changed the title Added data, import pipeline, and view Add Google Translator Support Indicator Jun 25, 2026
@cchandram cchandram changed the title Add Google Translator Support Indicator Add Google Translate Support Indicator Jun 25, 2026
@cchandram cchandram changed the title Add Google Translate Support Indicator Data: Add Google Translate Support Indicator Jun 25, 2026

@conradarcturus conradarcturus left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Minor changes, nonetheless this looks great :)

Also, we should add this to LanguageDetailsVitalityAndViability

but you can do these now or go back to it later.

const GoogleTranslateSupportStatus: React.FC<{ lang: LanguageData }> = ({ lang }) => {
if (!lang.googleTranslate || lang.googleTranslate.length === 0) {
return (
<XCircleIcon style={{ color: 'var(--color-red)', verticalAlign: 'middle' }} size={'1em'} />

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

There seems to be some layout differences between this and the one below -- that's because the one below is part of a inline-flex component, this is not.

However I wouldn't worry about this, I filed #690 to make a hoverable icon component (or something) to standardize this better.

Comment on lines +49 to +50
zho Chinese (Simplified)
zho Chinese (Traditional)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

mark it as zho/cmn for both

Comment on lines +127 to +129
kmr Kurdish (Kurmanji)
ckb Kurdish (Sorani)
kir Kyrgyz

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Use https://translation-commons.github.io/lang-nav/data?objectType=Census&view=Reports&reportID=2 to mark macrolanguages. For example this these two are kur/kmr and kur/ckb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants